← All guides
Developers · MCP

MCP server for music analysis: connect Claude, Cursor or ChatGPT to a song

October 17, 2026 · 6 min read

Clients, MCP server, songClaudeCursorChatGPTSongbrain MCPapi.songbrain.ai/v1/mcpstreamable HTTP · 7 toolsbeats + downbeatssections A B A Cbest moment 2:14lyrics, word-timedshot plan

The short version

1

One URL, nothing to install. The Songbrain MCP server is hosted at api.songbrain.ai/v1/mcp and speaks streamable HTTP. Add it to Claude, Cursor or ChatGPT and your assistant can read a song.

2

Four tools work without a key. List example songs, open a full example analysis or its shot plan, and read the pricing. Good for seeing the format before you spend anything.

3

Three tools need a free key. analyze_song takes a public audio URL, get_song returns the document, get_account shows what's left. 5 songs a month are free, then $0.50 a song.

4

Local alternatives exist for raw signal work. hugohow/mcp-music-analysis runs librosa on your machine. The Music Collection MCP manages a local library's metadata. Neither returns downbeats, sections with labels, best moments or lyrics.

Add it to Claude Code in one line

claude mcp add --transport http songbrain https://api.songbrain.ai/v1/mcp

Get a free API key →

What the server can do

The server exposes seven tools. The first four answer without any key, so an assistant can show you a real response on the first try. Registry name: io.github.songbrain-ai/songbrain in the official MCP Registry. The older path /mcp still answers too.

ToolKeyWhat it returns
list_example_songsno keyReal analyses of Songbrain's own songs, to see the format before you spend a song.
get_example_analysisno keySong DNA, beat grid and sections, best moments, lyrics, scores, story, shot plan. Summary view by default; view="full" adds word timings and beat arrays.
get_example_shot_planno keyThe beat-synced shot plan: every scene with start/end seconds, act, framing, motion, the lyric under it and a ready image/video prompt.
get_pricingno keyFree songs per month, price per song, limits.
analyze_songkeyStart an analysis from a public audio URL (MP3, WAV, FLAC, M4A, AAC, OGG, AIFF; 30 s to 10 min). Optional lyrics text for the exact words. Returns a song_id.
get_songkeyStatus, then the full document once done (typically 60–90 s).
get_accountkeyFree songs left, credit balance, price per song.

Check it yourself without a client:

curl -X POST https://api.songbrain.ai/v1/mcp \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Connect it

Leave the header out to use the example tools only. Add it with a key from the Developer Console to analyse your own songs.

Claude Code
claude mcp add --transport http songbrain https://api.songbrain.ai/v1/mcp \
  --header "Authorization: Bearer sb_live_YOUR_KEY"
Claude Desktop — Settings → Connectors → Add custom connector (URL only, no key needed for examples)
https://api.songbrain.ai/v1/mcp
Claude Desktop — claude_desktop_config.json via the mcp-remote bridge (when you need the key header)
{
  "mcpServers": {
    "songbrain": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.songbrain.ai/v1/mcp",
               "--header", "Authorization: Bearer sb_live_YOUR_KEY"]
    }
  }
}
Cursor — .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "songbrain": {
      "url": "https://api.songbrain.ai/v1/mcp",
      "headers": { "Authorization": "Bearer sb_live_YOUR_KEY" }
    }
  }
}
ChatGPT — Settings → Connectors → Advanced → Developer mode → Create; paste the URL
https://api.songbrain.ai/v1/mcp

Then ask: "Open the Songbrain example 'the-fallen-heroes', tell me where the chorus starts and which 15 seconds you'd use for a Reel."

What the assistant gets back

One document per song, times in seconds from the start. The summary view fits in a chat; view="full" adds every beat and every word timing.

The other music MCP servers, honestly

Songbrainhugohow/mcp-music-analysisMusic Collection MCP
Runshosted (nothing to install)locally, Python via uvx or Smitherylocally, against your music folders
Inputpublic audio URL (MCP) or file upload (REST)local file path; URL and YouTube listed, partly on the to-do listyour library on disk
Beatsevery beat + downbeats + time signaturebeat times via librosa—
Sectionsyes, with repeat letters and energy——
Best momentsranked, with reasons——
Lyricsword-timedWhisper on the to-do list—
Alsostory, palette, shot plan, scoresduration, MFCC, spectral centroid, onsetsalbum type classification (8 types), collection health score
Licence / price5 songs a month free, then $0.50MIT, freeopen source, free

Sources, read on October 17, 2026: hugohow/mcp-music-analysis ("Integrate librosa, whisper with LLMs to analyze music audio", MIT) and gorums/music-mcp-server("Music Collection MCP Server", metadata management and album classification for a local library). Pick the librosa server when you want raw measurements on files that never leave your machine. Pick the Music Collection MCP to tidy a library. Pick Songbrain when the assistant should understand the song: where the chorus is, which part to use, what is sung, what to show.

Good prompts to start with

Common questions

Is there an MCP server for music analysis I can use with Claude?+

Yes. Songbrain runs a hosted one at https://api.songbrain.ai/v1/mcp (streamable HTTP). Without an API key Claude can open real example analyses: beat grid, sections, best moments, lyrics, story and a shot plan. With a free key (5 songs a month) it can analyse your own song from a public audio URL with the analyze_song tool. In Claude Code: claude mcp add --transport http songbrain https://api.songbrain.ai/v1/mcp. It is listed in the official MCP Registry as io.github.songbrain-ai/songbrain.

Does the Songbrain MCP server work with Cursor and ChatGPT?+

Yes. Cursor reads a mcpServers entry with the URL and an optional Authorization header. ChatGPT connects remote MCP servers as custom connectors in developer mode (Settings → Connectors → Advanced); availability depends on your ChatGPT plan, so check OpenAI's current help pages for the exact menu. Any other client that speaks streamable HTTP works the same way.

What is the difference between Songbrain's MCP and hugohow/mcp-music-analysis?+

hugohow/mcp-music-analysis runs on your own machine with librosa and returns signal measurements (beats, onsets, duration, MFCCs, spectral centroid) for local files. It is MIT-licensed and free. Songbrain is hosted, so nothing to install, and returns interpreted results on top of the signal: downbeats, sections with repeat letters, the best moments with reasons, word-timed lyrics, the song's story and a shot plan. It costs $0.50 a song after 5 free songs a month.

Does the MCP server need my audio to be public?+

The analyze_song tool takes a public http(s) URL because MCP clients can't upload files through the protocol yet. For private files, use the REST API (POST /v1/songs with a multipart upload) and read the result with get_song in the MCP, or just use the REST API end to end.

What does an analysis cost through MCP?+

Same as the REST API: every account has 5 free songs a month, then 25 credits (about $0.50) a song. The example tools and get_pricing are free and don't need a key. Uploaded audio is used for the analysis only, never for training, and is deleted within 24 hours.