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













