← 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

Four tools need a free key. analyze_song takes a public audio URL and a mode, get_song returns the document, add_video_direction adds the story and shot plan later, get_account shows what's left. 5 songs a month are free, then $0.20 a song for Song DNA or $0.50 with the video direction.

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.

The 4-minute version

How to Analyze a Song Inside Claude or ChatGPT — the Songbrain MCP Server (2026)

The whole guide on a real song: what the server is, the one-line connect for each client, and the answers Claude gives once it can hear the track.

Click to load the player from YouTube (no-cookie mode). Your IP address is then sent to Google — details in our privacy policy.

  1. 0:00Can Claude hear my song?
  2. 0:48What an MCP server is
  3. 1:18Connect it in one line (Claude Code, Claude Desktop, Cursor, ChatGPT)
  4. 1:57Ask it about a song (best 15 seconds, loudness for Spotify, lyrics, a Kling prompt)
  5. 2:58Your own song (free key, public URL, 60–90 seconds)
  6. 3:37What it is, and what it isn't
  7. 3:58Recap

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 eight 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. mode "dna" ($0.20) or "full" (default, $0.50, adds story and shot plan). Returns a song_id.
get_songkeyStatus, then the full document once done (typically 60–90 s).
add_video_directionkeyAdds the story and beat-synced shot plan to a finished Song DNA song. 15 credits (about $0.30), refunded if it fails.
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. Apps that connect with a sign-in instead of a header (claude.ai, Claude Desktop, ChatGPT) use https://api.songbrain.ai/v1/mcp/auth: you sign in to Songbrain once, click Allow, and get the same tools.

Claude Code
claude mcp add --transport http songbrain https://api.songbrain.ai/v1/mcp \
  --header "Authorization: Bearer sb_live_YOUR_KEY"
claude.ai / Claude Desktop — Settings → Connectors → Add custom connector, then Connect and sign in to Songbrain
https://api.songbrain.ai/v1/mcp/auth
Claude Desktop — claude_desktop_config.json via the mcp-remote bridge (with your own key instead of the sign-in)
{
  "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, choose OAuth and sign in
https://api.songbrain.ai/v1/mcp/auth

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.20 (Song DNA) or $0.50 (with video direction)MIT, 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.ai, Claude Desktop or ChatGPT use https://api.songbrain.ai/v1/mcp/auth instead: you sign in to Songbrain once and get the same tools without copying a key. 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. After 5 free songs a month it costs $0.20 a song for Song DNA, or $0.50 with the story and shot plan.

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, in either mode. After that, analyze_song with mode "dna" (Song DNA only) costs 10 credits (about $0.20) a song, and the default mode "full" (with story and shot plan) costs 25 credits (about $0.50). add_video_direction adds the story and shot plan to a Song DNA song later for 15 credits (about $0.30). 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.