Blog

Games guide

Add music and sound effects to your game without leaving Claude Code

6 min read·Oct 6, 2026

A developer workflow: generate level music and sound effects from Claude Code with the SunoBoard MCP, download them into your project and wire them into Unity, Godot or the web.

01Why do it from the editor

Placeholder audio is where indie projects stall. You are in Claude Code building the jump mechanic, and the game is silent because finding a fitting jump sound means another tab, another account and another license page. With the SunoBoard MCP in Claude Code, the same session that writes the player controller can also generate the jump sound and drop the file into assets/audio. To hear examples and compare models first, see the AI game music generator and the AI sound effects generator, or the game music in Claude Code page for the whole workflow.

02One-time setup

Create an sb_ API key in SunoBoard Settings (Pro plan) and register the server:

copy

claude mcp add --transport http sunoboard https://mcp.sunoboard.com/mcp --header "Authorization: Bearer sb_YOUR_KEY"

03Ask for audio the way you ask for code

Give Claude the game context once. It can then pick sensible styles for every cue and sound:

prompt 1

This is a cozy pixel-art farming game. Use SunoBoard to generate a calm looping track for the farm map (ukulele, glockenspiel, soft shaker, 90 BPM, no big ending, instrumental). When it is ready, download the first variation to assets/audio/music/farm_loop.mp3.

prompt 2

Use SunoBoard sound effects to make: a coin pickup (1s), a soft UI click (0.5s), a watering-can splash (2s) and a chicken cluck (1s). Save them in assets/audio/sfx with snake_case names and tell me the paths.

04Convert to the format your engine likes

SunoBoard delivers MP3. Godot and Unity both import MP3, but OGG is the usual choice for music and WAV for very short effects. Claude Code can run FFmpeg for you:

copy

for f in assets/audio/music/*.mp3; do ffmpeg -y -i "$f" -c:a libvorbis -q:a 6 "${f%.mp3}.ogg"; done

copy

for f in assets/audio/sfx/*.mp3; do ffmpeg -y -i "$f" "${f%.mp3}.wav"; done

05Wire it up

  • Godot 4
    select the OGG in the FileSystem dock, open the Import tab, enable Loop and reimport. Play it from an AudioStreamPlayer set to Autoplay.
  • Unity
    drag the clip onto an AudioSource, tick Loop for music, and keep short SFX as "Decompress On Load".
  • Web (Phaser, Three.js, plain JS)
    preload the files and keep music and effects on separate volume controls.

06Iterate like code

Every SunoBoard track keeps the prompt that made it. When a playtester says the boss music should be "more urgent", ask Claude to search your library for the boss track, reuse its prompt with a higher BPM and heavier percussion, and replace the file. Same loop you already use for code: change, test, commit.

💻 “game” tracks you can use now31

The Cursed Music Box (alt take) dark cinematic, horror, music box, strings, eerie choir
Instrumental2:18
The Music Box Waltz dark cinematic, horror, music box, strings, eerie choir
Instrumental1:59
The Music Box Waltz
dark cinematichorror
Puzzle Garden puzzle game, calm, marimba, playful
Instrumental2:33
Puzzle Garden
puzzle gamecalm
Slime Cave Dungeon chiptune, dungeon, retro game, mysterious
Instrumental2:14
Slime Cave Dungeon
chiptunedungeon
The Music Box Waltz (alt take) dark cinematic, horror, music box, strings, eerie choir
Instrumental1:53
The Music Box Waltz (alt take)
dark cinematichorror
Slime Cave Dungeon (alt take) chiptune, dungeon, retro game, mysterious
Instrumental2:37
Yarn Monster Chase (alt take) horror game, chase, industrial, dissonant strings, pounding drums
Instrumental2:08
Dusk Beacon
Vocal1:16
Dusk Beacon
by Ander
Wistful Wonder classical, orchestral, ethereal
Vocal3:14
Wistful Wonder
classicalorchestral
Smoky Cauldron lo-fi, dark jazz, halloween, vinyl, cozy
Instrumental2:00
Smoky Cauldron
lo-fidark jazz
Menu Loop Mysterious video game soundtrack, rhythmic electronic music, cinematic orchestral, melodic synths, atmospheric adventure, suspense, instrumental game menu music
Instrumental2:04
Menu Loop
Mysterious video game soundtrackrhythmic electronic music
VOIDGATE Threshold
Instrumental2:52
8-bit Adventure chiptune, 8-bit, loopable, ambient
Instrumental1:33
8-bit Adventure
chiptune8-bit
Victory Fanfare victory, fanfare, orchestral, game
Instrumental1:02
Victory Fanfare
victoryfanfare

Keep reading

TRY IT IN CLAUDE.

Connect SunoBoard in one minute (free plan included), or browse ready-made tracks first.