Mozart Developers

How to add a music MCP server to Cursor

To add a music MCP server to Cursor, put the server's address in ~/.cursor/mcp.json (or .cursor/mcp.json for one project), save, and sign in when Cursor asks. Then ask the Cursor agent for a song in plain words and it calls the server's tools.

For Mozart, the address is https://api.mozartai.com/mcp, sign-in is OAuth with your Mozart account and there is no API key. One song request is 25 credits and returns 2 songs made with Hans 2.0; in our test on 28 November 2026, the first song was playable after 39 seconds.

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.

Updated November 28, 2026

On this page

What do I add to mcp.json?

Cursor reads MCP servers from two files (Cursor's MCP docs): ~/.cursor/mcp.json in your home folder for every project, and .cursor/mcp.json inside a repo for that project only. A hosted server needs only a url.

Add Mozart to ~/.cursor/mcp.json, then sign in to Mozart when asked:

JSON
{
  "mcpServers": {
    "mozart": {
      "url": "https://api.mozartai.com/mcp"
    }
  }
}

If the file already lists other servers, add the "mozart" entry inside the existing mcpServers object. There is no headers block and no key: the server signs in with OAuth through your Mozart account. 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.

You can also add the server from the editor: Cursor's MCP docs say servers are installed and managed from the Customize page or configured in mcp.json.

How do I sign in and check it works?

  1. Save mcp.json. Cursor starts the server and opens a Mozart sign-in in your browser.
  2. Sign in with your Mozart account and approve the connection.
  3. Back in Cursor, open Customize and check that mozart is turned on and its tools are listed under Available Tools.
  4. In a chat, ask: "Run whoami on the mozart server." The agent calls whoami and shows your account.

By default Cursor asks you to approve each MCP tool call before it runs. If nothing connects, the MCP Logs in the Output panel show the server's start-up and every tool call.

Steps for Claude, ChatGPT, Claude Code and Codex are under connect the MCP server.

What can I ask the Cursor agent for?

Ask in plain words. The agent reads the tool names and picks the right ones:

  • "Make a 60-second instrumental synthwave loop for the onboarding screen and save it to assets/audio." The agent calls create_song, waits with get_job, then get_download_link.
  • "Write a short chorus about a build going green, then make it a song." write_lyrics, then create_song with the lyrics.
  • "How many credits would that cost?" estimate_cost prices the request without running it.
  • "Split the first song into four stems." separate_stems returns a file per stem. See the stem separation API.
  • "Turn this recording into MIDI." create_upload_link brings the file in, then audio_to_midi. See the audio to MIDI API.

The full tool list, with inputs and costs, is in the MCP tool and API reference.

A Cursor rule for music

A project rule keeps every chat consistent. Save this as .cursor/rules/music.mdc and edit the folder:

markdown
---
description: How to make music in this repo
alwaysApply: false
---
- 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 the songs to
  `assets/audio/` as `<short-name>-1.mp3` and `<short-name>-2.mp3`.

How long did a song take in our test?

We sent one song request through Mozart's REST API, the same job the create_song tool starts, on 28 November 2026 from our test environment. Seconds are counted from the first call.

StepCallWhen it returned
Price checkPOST /v1/songs with dry_run0.4 seconds
Job startedPOST /v1/songs1.7 seconds
First song playablePOST /v1/jobs/wait, until: playable39 seconds
Both songs finishedPOST /v1/jobs/wait, until: complete161 seconds
First download linkPOST /v1/songs/{song_id}/download162 seconds

The request below made two full-length instrumentals, "Boot Sequence" and "Cursor Bloom", each with cover art. We did not pass duration_seconds. This is one run, not a benchmark; a longer song or a busy hour can take longer.

Terminal
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": "upbeat synthwave instrumental for the onboarding screen of a code editor, pulsing bass, bright arpeggios", "instrumental": true}'

The call answered with HTTP 202, a queued job and both song ids, before any audio existed. The first song from that request:

<!-- ASSET: embed song-1.mp3 -->

Prompt shown above the player: "upbeat synthwave instrumental for the onboarding screen of a code editor, pulsing bass, bright arpeggios", instrumental, unedited Hans 2.0 output.

The REST route needs an API key instead of the OAuth sign-in. The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits. Use it when the song is part of a build script rather than a chat.

Which music MCP servers work in Cursor?

Any MCP server works in Cursor, but they do different jobs. These are the music routes for Cursor as each provider describes them on 28 November 2026.

RouteEntry in mcp.jsonSign-inWhere audio is madeAfter the song
Mozart MCP server"url": "https://api.mozartai.com/mcp"OAuth, Mozart accountMozart's serversStems, MIDI and mastering as files
Suno MCP"url": "https://api.suno.com/mcp"Suno accountSuno's serversCovers, mashups, extensions and visuals
A local server from GitHubA command that runs the codeOften a key you setYour own machineDepends on the project

Suno announced Suno MCP as a beta on 28 October 2026 (Suno release notes) and its help article says it works on every Suno plan (Suno MCP FAQ). For how the two hosted servers differ, see Does Suno have an API?. If you work in the terminal instead, the Claude Code music guide covers the same setup there.

What can't Mozart do in Cursor?

Plain limits, so you can decide before you connect:

  • Making songs needs Creator or above. 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. Any Mozart account can connect.
  • It needs a network connection. Every song is made on Mozart's servers, and a 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.
  • Every song request spends credits. Each request makes 2 songs for 25 credits, and daily caps count your whole Mozart account, not each client.
  • Download links expire. Save the file into your repo when the job finishes rather than keeping the link.

Songs save privately to your Mozart library, grouped into one project per agent session. Credit costs for every tool are in Mozart API pricing.

Music MCP in Cursor FAQ

How do I add a music MCP server to Cursor?

Add the server to ~/.cursor/mcp.json under mcpServers with its url, save the file, and sign in when Cursor asks. For Mozart the entry is "mozart": { "url": "https://api.mozartai.com/mcp" }. Then ask the agent for a song.

Do I need an API key to use Mozart in Cursor?

No. Mozart's MCP server signs in with OAuth through your Mozart account, and Cursor supports OAuth for remote MCP servers. There is no key to paste into mcp.json, so there is nothing secret in the file if you commit it.

Should I use the global or the project mcp.json?

Use ~/.cursor/mcp.json to have the music server in every project. Use .cursor/mcp.json inside a repo when only that project, for example a game, needs music. Both take the same mcpServers entry.

How do I know Cursor connected to the music server?

Open Customize in the Cursor sidebar and check the server is turned on and its tools appear under Available Tools. Then ask the agent to run whoami; it returns your Mozart account. If the server does not start, the MCP Logs in the Output panel show why.

Can I use Suno in Cursor?

Yes. Suno's MCP page lists Cursor and gives the same shape of entry, "suno": { "url": "https://api.suno.com/mcp" }, with a Suno sign-in and no API key (Suno's MCP page, checked 28 November 2026). Suno and Mozart are separate services, and you can add both.

How long does a song take from Cursor?

In our one REST test on 28 November 2026, the first song was playable after 39 seconds and both songs were finished after 161 seconds. The MCP tools run the same jobs. That is one run, not a promise, and times vary with load and song length.

Can the Cursor agent save the song into my repo?

Yes. Once the job has succeeded, the agent calls get_download_link and can fetch the file into a folder you name, such as assets/audio. Put that folder in a Cursor rule so every chat uses the same place.

Connect Cursor 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.

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