Mozart Developers

How to make a song from Claude Code

To make a song from Claude Code, add a music MCP server with one claude mcp add command, sign in with /mcp, and ask for the song in plain words. If you would rather keep it in the shell, Claude Code can also call a music REST API with curl and save the MP3 into your project.

With Mozart, either route makes 2 songs per request for 25 credits, using the Hans 2.0 song model. In our test on 28 November 2026, both songs from a REST request sent from a shell were finished and ready to download 157 seconds after the request.

Connect the MCP serverRead the setup guide

The MCP server signs in with your Mozart account and spends your plan's credits. Making songs needs Creator or above. The mozart CLI is coming soon. The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits.

Updated November 28, 2026

On this page

What are the ways to make a song from Claude Code?

Claude Code writes text and code, so a song needs a song model it can call. These are the routes that work from the terminal today, as each provider describes them on 28 November 2026.

RouteSetup in Claude CodeSung vocalsWhere the audio is madeWhat you need
Mozart MCP serverclaude mcp add, then /mcpYes, or instrumentalMozart's serversMozart Creator, Pro, Premium or Enterprise
Mozart REST API with curlAn API key in your shellYes, or instrumentalMozart's serversA monthly API plan
Suno MCPclaude mcp add, then /mcpYesSuno's serversA Suno account and Suno credits
claude-music skillgit clone, then bash install.shYesYour own machineAn NVIDIA GPU is recommended

Use MCP when you want to ask in plain words and let Claude Code pick the tools. Use the REST API when the song is part of a script or build step that should run without a chat. If you are still deciding whether Claude can make music at all, start with Can Claude make music?, which covers claude.ai and Claude Desktop too.

How do I connect a music MCP server to Claude Code?

Run this in your terminal:

Terminal
claude mcp add --transport http mozart https://api.mozartai.com/mcp

Then start Claude Code, run /mcp, choose mozart and sign in to your Mozart account. There is no API key to copy. Any Mozart account can connect; making songs needs Mozart Creator, Pro, Premium or Enterprise. Steps for other clients are under connect the MCP server.

Check the connection by asking Claude Code to run whoami. Then ask for a song:

Make a 60-second instrumental lo-fi track for the menu screen of this game and save it to ./assets/audio.

Claude Code calls create_song, checks the job with get_job, and once the job has succeeded it calls get_download_link and fetches the file. Before it spends anything, it can price the request with estimate_cost. The full tool list is in the MCP tool and API reference.

What should I put in CLAUDE.md?

A few lines in your project's CLAUDE.md keep every session consistent: where audio goes, when to ask, and which tools to use. Paste this and edit the folder:

markdown
## Music

- To make music, use the `mozart` MCP server. Do not write synthesis code.
- Before `create_song`, run `estimate_cost` and tell me the credits. Wait for my yes.
- Default to `instrumental: true` unless I give lyrics or ask for vocals.
- When the job has succeeded, call `get_download_link` and save both songs to
  `assets/audio/` as `<short-name>-1.mp3` and `<short-name>-2.mp3`.
- Never commit audio over 10 MB. Never print or commit an API key.

The estimate_cost step matters because each request makes 2 songs and spends credits. If you use the REST route instead, replace the first line with the curl flow below and keep MOZART_API_KEY in your shell environment.

Can Claude Code call the music API directly?

Yes. Every MCP tool is also a REST endpoint, so Claude Code can run the same flow with curl. This is the exact request we sent on 28 November 2026, through our test environment, with the key removed:

Terminal
export MOZART_API_KEY=mzk_...
curl https://api.mozartai.com/v1/songs \
  -H "Authorization: Bearer $MOZART_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"model": "hans-2", "prompt": "lo-fi hip hop loop for a coding stream, mellow keys, soft drums, vinyl crackle", "instrumental": true}'

The call answered with HTTP 202 and a queued job, already listing both song ids (ids shortened):

JSON
{
  "dry_run": false,
  "job": {
    "object": "job",
    "kind": "song",
    "status": "queued",
    "playable": false,
    "song_ids": ["c3b37dd5-...", "32afa608-..."],
    "outputs": [],
    "poll_after_seconds": 5
  }
}

Then three more steps, the same ones the MCP tools run:

  1. Price it first (optional). The same body with "dry_run": true returned credits_required and the balance after, without starting a job.
  2. Wait. POST /v1/jobs/wait with job_ids holds the request for up to 25 seconds and returns once the job has succeeded, with the finished files in outputs. Call it again while all_settled is false.
  3. Download. POST /v1/songs/{song_id}/download returns a short-lived signed link that curl saves as an MP3.

Send the same Idempotency-Key if a call times out, so a retry does not start a second job. The first of the two songs from this request:

Prompt shown above the player: "lo-fi hip hop loop for a coding stream, mellow keys, soft drums, vinyl crackle", instrumental, unedited Hans 2.0 output.

How long did a song take in our test?

We timed one request from a shell on 28 November 2026. Seconds are counted from the moment the first call was sent.

StepCallWhen it returned
Price checkPOST /v1/songs with dry_run0.6 seconds
Job startedPOST /v1/songs2.1 seconds
Both songs finishedPOST /v1/jobs/wait157 seconds
First download linkPOST /v1/songs/{song_id}/download158 seconds

We did not pass duration_seconds, and both songs came back at full length (2:40 and 2:33), titled "Patch Notes" and "Compile Dust", each with cover art. You cannot ask for a shorter song: hans-2 picks its own length and refuses duration_seconds.

This is one run in a test environment, not a benchmark. Times change with load, and a longer song or a vocal song can take longer.

How does this compare with Suno in Claude Code?

Suno announced its own MCP server as a beta on 28 October 2026, for Claude, ChatGPT, Claude Code and other MCP clients (Suno release notes). The Claude Code setup has the same shape as Mozart's: claude mcp add --transport http suno https://api.suno.com/mcp, then /mcp to sign in, with no API key (Suno's MCP page).

The differences are in what each service does once connected:

Mozart MCPSuno MCP
AccountMozart Creator, Pro, Premium or EnterpriseAny Suno plan, per Suno's help article
SongsNew songs with vocals or instrumental, lyrics, cover artSongs from text or uploaded audio, covers, mashups, extensions
After the songStems, MIDI and mastering as files for your DAWArt and looping visuals on paid Suno plans
From a script without a chatA documented REST API with keysSuno lists MCP clients; see does Suno have an API?

Pick Suno if you already pay for Suno and want its catalog features. Pick Mozart if the song is going into code, or if you need stems, MIDI or mastering from the same session.

Can I make music in Claude Code on my own GPU?

Yes. claude-music is an open-source Claude Code skill (MIT) that runs the ACE-Step 1.5 model locally and sings vocals. You install it with git clone, then bash install.sh, which downloads about 5 GB of models after asking. Its README lists an NVIDIA GPU with 4 GB of VRAM as the minimum, 8 GB recommended, and says CPUs work but are slow; macOS and AMD users follow ACE-Step's own setup notes. The README quotes about 15 seconds a track on its Turbo setting.

The trade is hardware and upkeep against per-song credits: a hosted server needs nothing on your machine, while a local model needs a capable GPU that you maintain.

What can't Mozart do from Claude Code?

Plain limits, so you can decide before you connect:

  • You need a paid Mozart account. Making songs over the MCP server needs Mozart Creator or above, and the REST API needs a monthly API plan. The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits.
  • It does not run offline. Every song is made on Mozart's servers, so Claude Code needs a network connection and the job takes tens of seconds, not milliseconds.
  • It makes new music and hands back files. It doesn't edit a song's audio, make music videos, or control a DAW. Stems and MIDI come back as files you open yourself.
  • Download links expire. Save the MP3 into your project when the job finishes rather than storing the link.

Songs save privately to your Mozart library, grouped into one project per agent session. For credit costs per operation, see Mozart API pricing.

Claude Code music FAQ

What is the quickest way to make a song in Claude Code?

Run claude mcp add --transport http mozart https://api.mozartai.com/mcp, run /mcp to sign in to your Mozart account, then ask Claude Code for a song. It calls create_song, waits on the job and gives you a download link. Making songs over the MCP server needs Mozart Creator or above.

Can I use Suno in Claude Code?

Yes. Suno's MCP page gives claude mcp add --transport http suno https://api.suno.com/mcp, then /mcp to sign in to your Suno account, with no API key. Songs use the credits on your Suno plan (Suno's MCP page, checked 28 November 2026). Suno and Mozart are separate services.

Do I need an API key to make music in Claude Code?

Not for the MCP route. Mozart's MCP server signs in with OAuth through your Mozart account, so there is nothing to paste into Claude Code. You need an API key only when Claude Code calls the REST API with curl, and that key belongs in an environment variable, not in a file Claude Code commits.

Can Claude Code save the song into my project?

Yes. Over MCP, Claude Code gets a download link from get_download_link and can fetch it into a folder you name. Over the REST API, POST /v1/songs/{song_id}/download returns a short-lived link that curl can save as an MP3. Put the folder in your CLAUDE.md so every session uses the same place.

How long does a song take from Claude Code?

In our one test on 28 November 2026, both songs were finished 157 seconds after the request. That is one run, not a benchmark, and times vary with load and song length.

Can Claude Code make an instrumental for a game or app?

Yes. Ask for an instrumental and Claude Code passes instrumental: true to create_song or the REST call. Our test prompt was a lo-fi loop for a coding stream, sent as an instrumental.

Can I make music in Claude Code without a cloud service?

Yes, with claude-music, an open-source Claude Code skill that runs ACE-Step 1.5 on your own machine. Its README lists an NVIDIA GPU with 4 GB of VRAM as the minimum, 8 GB recommended, and about 10 GB of disk; CPUs work but are slow (claude-music on GitHub, checked 28 November 2026).

Connect Claude Code to Mozart

Connect the MCP serverRead the setup guide

The MCP server signs in with your Mozart account and spends your plan's credits. Making songs needs Creator or above. The mozart CLI is coming soon. Third-party pages cited here were checked on 28 November 2026.

Claude and Claude Code are trademarks of Anthropic. ChatGPT is a trademark of OpenAI. Suno is a trademark of Suno, Inc. Mozart is not affiliated with or endorsed by them.