Song JSON · Claude
Write a song with Claude. Or let Claude open the project for you.
Have Claude write a song as Song JSON and open it in SoundGen's browser studio, or connect SoundGen to Claude and it creates the project for you.
01
Connect SoundGen, or paste the instructions
In claude.ai or Claude Desktop: Settings → Connectors → Add custom connector, paste SoundGen's MCP URL (below), then Connect and sign in. Without the connector, paste the instructions on this page, as with any chat AI.
02
Ask for the song
Describe it: genre, tempo, key, instruments, length. Connected, Claude writes the Song JSON and imports it with SoundGen's import_song_json tool, which creates a new project in your account.
03
Open it in the Studio
Connected, Claude answers with a Studio link to the new project. Otherwise, in the Studio, Export ▾ → Song JSON (from an AI)… and paste its answer.
Connect SoundGen to Claude
In claude.ai or Claude Desktop, open Settings → Connectors → Add custom connector, paste this URL, then Connect and sign in with your SoundGen account.
https://soundgen.ai/api/mcp-serverDeveloper details and every tool the connector offers: API and MCP.
The instructions for Claude
One document with everything Claude needs to write a song SoundGen can open: the format, every field, the instrument, drum, effect and chord names it accepts, how timing works, complete examples and the mistakes to avoid. Paste it, or upload the file, before you ask for the song.
The format, field by field, with examples: Song JSON.
Or a short prompt for a quick sketch — replace the line in angle brackets:
Write a SoundGen Song JSON v1 file for: <describe the song: genre, mood, tempo, instruments, length>
Reply with only the JSON (one object, no commentary). I will import it into the SoundGen Studio and edit it there.
SoundGen Song JSON v1 — rules
- Output ONE JSON object, no comments: {"format":"soundgen-song","version":1,"title":…,"bpm":…,"key":"A minor","timeSignature":"4/4","sections":[…],"tracks":[…],"master":{…}}.
- sections (optional): [{"name":"Intro","bars":4},{"name":"Verse","bars":8},…] in order; they become markers.
- Track types: "instrument" (notes), "chords" (a chord loop), "drums" (step patterns), "audio" (a part to generate later).
- instrument: piano, epiano, organ, keys, bass, guitar, pluck, strings, brass, flute, bell, pad, lead, accordion. Drums: "kit":"acoustic" or "techno".
- Notes: {"pitch":"C4","start":0,"duration":1,"velocity":0.8}. C4 = middle C. start and duration are in beats (quarter notes) from the start of the part; durations may also be "1/8", "1/16", "1/4.".
- Chords: "chords":["Am","F","C","G"] = one chord per bar ("C G" splits a bar); "style": block | pulse | stabs | arp | broken | strum | oompah | root-bass | octave-bass | walking-bass. The loop repeats to fill.
- Drums: "pattern":{"kick":"x---x---x---x---","snare":"----x-------x---","hat":"x-x-x-x-x-x-x-x-"}: 16 steps per 4/4 bar, x = hit, X = accent, g = ghost, - = rest. Drum names: kick, snare, rim, clap, hat, openHat, pedalHat, ride, crash, lowTom, midTom, highTom, shaker, tambourine, cowbell, conga, bongo.
- Arrange with named "parts" and "clips": "parts":{"verse":{"bars":4,"notes":[…]}}, "clips":[{"part":"verse","at":"Verse"},{"part":"verse","bar":17,"repeat":2}]. "at" places a clip in every section with that name; a clip's "bars" repeats its part to fill. Without clips, a track's own notes play once from bar 1, and a pattern or chord loop fills the song.
- Mix: "volume" in dB (-6), "pan" -1…1, "effects":[{"type":"reverb","mix":0.3,"decay":2.5},{"type":"delay","time":"1/8.","feedback":0.3,"mix":0.2},{"type":"eq","lowCut":100,"high":2},{"type":"compressor","threshold":-18,"ratio":3},"chorus","distortion","saturation","filter","phaser","limiter"]. "master":{"volume":-1,"effects":[…]}.
- Audio you cannot write as notes (vocals, textures): {"type":"audio","name":"Vocal","generate":{"prompt":"…","seconds":30},"bar":9} — the user generates it in the Studio at the normal price.
- Keep every note inside its part; keep melodies in a singable range; give every track a name.
Schema: https://soundgen.ai/schemas/soundgen-song-v1.jsonTracks
Up to 32 named tracks, each an ordinary Studio track with its volume, pan and effects — nothing locked or flattened.
Melodies and bass lines
MIDI notes on a built-in voice: bass, piano, epiano, organ, accordion, keys, guitar, pluck, strings, brass, flute, bell, pad and lead. Change the voice, or edit any note in the piano roll.
Chords
A chord loop — one chord per bar, by name — played as real notes in a style: block, pulse, stabs, arp, broken, strum, oompah, root-bass, root-fifth-bass, walking-bass, approach-bass, octave-bass, offbeat-bass, rolling-bass, tumbao-bass and log-drum-bass.
Drums
Step patterns (x for a hit, X for an accent, g for a ghost note) played as MIDI on the acoustic or the techno kit, with a name for every piece from the kick drum to the congas and shaker.
Sections
Intro, Verse, Chorus and the rest become markers on the timeline, and a part can be placed in every section with a given name.
Mix
Levels in dB, pan, and effects on each track and the master, by name: reverb, delay, eq, compressor, glue, distortion, saturation, chorus, phaser, flanger, filter, limiter, bitcrusher and tremolo.
Other ways in
Claude Code: /plugin marketplace add aw3-technology/soundgen-claude, then /plugin install soundgen@soundgen and /mcp to sign in. The SoundGen skill (soundgen-skill.zip on the API page) teaches Claude SoundGen's prices, licensing and Song JSON; upload it under Settings → Capabilities → Skills.
Connected, Claude can also check a song before importing it (validate_song_json) and read one of your projects back as Song JSON to revise it (export_song_json).
Questions
- Does it cost anything?
- Creating a project from Song JSON never costs credits, connected or not. Paid actions Claude can take through the connector, like generating audio, spend your credits. You need a free SoundGen account to open the Studio; a new account also gets 100 credits once, for the things that do cost credits, like generating audio.
- Which Claude apps can connect?
- claude.ai, Claude Desktop and Claude Code connect with just the URL and ask you to sign in to SoundGen. The connection then shows under Settings → Integrations in SoundGen, where you can revoke it.
- Does Claude make the audio?
- No. Claude writes the notes, chords, drum patterns and arrangement as text, and the Studio plays them on its built-in instruments. A part that can't be written as notes, like a vocal or a texture, arrives as an empty audio track with a Generate this part button, which generates it at the normal price.
- Can Claude change a song I already made?
- Yes. Connected, it reads the project as Song JSON (export_song_json) and imports the revised version as a new project. Without the connector, Export ▾ → Song JSON (for an AI) in the Studio saves the file to hand to Claude.
- How long can the song be?
- A Song JSON can hold up to 32 tracks and 1,024 bars, with up to 8,192 notes a clip, in a file of up to 2 MB.
Let Claude write it.
Finish it in the Studio.
Import the song, play it, change any note, and mix it in a multi-track studio in your browser.