Spotify MCP server: what Spotify offers and how agents connect
T. Krause ·
A Spotify MCP server is a server that gives an AI client tools to search Spotify, manage playlists or control playback. Spotify runs one itself, but only as its connector inside Claude. For advertisers, Spotify has a second MCP server for the Ads API, in closed beta. For the Spotify Web API there is no official MCP server you can add to Claude Code, Cursor or your own agent. Spotify's Building with AI page for the Web API offers an OpenAPI spec and a prompt for coding assistants instead.
So "Spotify MCP" means one of four things, depending on who you are and what the agent should do. This guide covers each, then the Web API rules that decide what any self-built or third-party server can do, then Prompt TM's Spotify toolkit. The Spotify details come from developer.spotify.com, newsroom.spotify.com and the server's own metadata as of November 2026.
Four things "Spotify MCP" can mean
| For | Who runs it | Can you add it to any MCP client? | |
|---|---|---|---|
| Spotify connector in Claude | Listeners in claude.ai and the Claude apps | Spotify | Spotify documents it for Claude only |
| Spotify app in ChatGPT | Listeners in ChatGPT | Spotify | No, it's a ChatGPT app |
| Spotify Ads API MCP server | Advertisers and agencies | Spotify, closed beta | Spotify names Claude.ai, ChatGPT, Cursor "and any MCP-compatible client" |
| A server on the Web API | Developers building an agent | You, a community project, or a connector platform | Yes, it's your server |
The first two are for people who want music recommendations in a chat. The third is for ad campaigns and has nothing to do with playlists. Only the fourth gives a developer an agent with Spotify tools that it controls.
Spotify's connector in Claude
Spotify announced the Claude integration on 23 April 2026. Per the announcement, you can ask Claude for music or podcasts, preview or save what it finds, play it, open it in the Spotify app, and use Spotify Connect to "see where Spotify is playing and switch or control your devices". Both Free and Premium listeners can use it. Premium listeners can also describe a mood and get a playlist built for that prompt. It's available on Claude Free, Pro and Max, on web, desktop and mobile. You decide whether Spotify is connected and can disconnect it at any time.
Behind the connector is an MCP server that Spotify runs. Claude's connector directory lists Spotify as the developer and the server at https://mcp-gateway-external-pilot.spotify.net/mcp, with six tools:
searchfetch_tracksget_currently_playingcreate_playlistadd_to_libraryremove_from_library
The server answers an unauthenticated request with 401 and points to its protected resource metadata. That metadata names accounts.spotify.com as the authorization server and lists eight scopes: user-read-playback-state, user-modify-playback-state, app-remote-control, user-library-read, user-library-modify, user-follow-read, user-follow-modify and playlist-modify-private. So you sign in with your own Spotify account, and the connector acts as you.
Using the same URL in Claude Code or Cursor is a different matter. Spotify doesn't document the server for any client other than Claude, and the hostname says "pilot". The authorization server's metadata at accounts.spotify.com/.well-known/oauth-authorization-server lists no registration endpoint, so an MCP client that expects to register itself through dynamic client registration has nowhere to do it. If you need Spotify tools in a coding agent or in your own product, plan on one of the options below.
The Spotify app in ChatGPT
Spotify launched its ChatGPT app on 6 October 2025. You mention Spotify in a prompt, connect your account the first time, and ask for songs, artists, playlists or podcast episodes. Free users get picks from Spotify's existing playlists. Premium users can have Spotify build a new selection from a longer prompt. It works inside ChatGPT only.
The Spotify Ads API MCP server
The Ads API is a separate API for building and reporting on Ads Manager campaigns. Its Building with AI page describes two ways to reach it from an AI tool.
The MCP server is in closed beta. Spotify describes it as one connection for a whole team, with central admin control and an audit trail, aimed at agencies and enterprise teams. To get access, you contact your Spotify representative. Technical questions go to ads-api-support@spotify.com.
The plugin installs per user. It needs a Spotify developer app with Ads API access and an Ads Manager ad account.
In Claude Code:
claude plugin i spotify-ads-api
In OpenAI Codex:
codex plugin marketplace add spotify/ads-agentic-tools
In Antigravity CLI:
agy plugin install https://github.com/spotify/ads-agentic-tools
After installing, /spotify-ads-api:configure sets up authentication. Since version 1.9.0 (October 2026) the recommended method is the Authorization Code flow with PKCE, which needs your client ID and no client secret, and refreshes tokens on its own. The plugin's skills cover campaigns, drafts, reporting, assets, audiences, measurement and bulk changes.
If you searched for "Spotify Ads MCP", this is the answer. Everything below is about the Web API, which covers the catalogue, playlists, libraries and playback.
The Web API rules any Spotify agent runs into
A self-built MCP server, a community server and a connector platform all call the same Spotify Web API with an app registered in the Spotify Developer Dashboard. Since February 2026 that app's quota mode decides most of what the agent can do. The details are in Spotify's February 2026 migration guide and quota modes page.
Development Mode is where every new app starts. The app owner needs an active Spotify Premium subscription. If it lapses, the app stops working until the owner subscribes again. A new app can have at most 5 users, each added by name and Spotify email under Users Management in the app's settings. Spotify warns that a user who isn't on that list may still be able to sign in, but their API calls answer 403. Since a July 2026 update, a developer account can create up to 25 Client IDs, and all of them share one quota. A call over that quota answers 429 with "reason": "QUOTA_EXCEEDED", which tells it apart from an ordinary rate limit.
Extended quota mode removes the user limit, but only for companies. Since 15 May 2025 Spotify takes applications from organisations only, and the listed requirements include a registered business, a launched service and at least 250,000 monthly active users.
Some endpoints changed for Development Mode apps. The type-specific save and remove endpoints became one PUT and DELETE /me/library that takes Spotify URIs. Playlist paths moved from /tracks to /items. Batch lookups such as GET /tracks?ids=..., new releases, category browsing and artist top tracks are gone, and search returns at most 10 results per type instead of 50. User profiles no longer include email, country or plan. Apps in extended quota mode keep the old behaviour.
In practice, an agent you build for yourself or a handful of people works fine in Development Mode. An agent for a public product with thousands of Spotify users needs extended quota mode, whichever MCP server sits in front of the API.
The Developer Terms apply too. Spotify's Building with AI page asks you not to cache content beyond immediate use, to attribute content to Spotify, and not to use the API to train machine learning models on Spotify data.
Prompt TM's Spotify toolkit
Prompt TM serves Spotify tools on the same MCP URL as the agent's other toolkits. It calls the Spotify Web API (api.spotify.com/v1) with an OAuth token it stores encrypted, so the agent never sees the token. The toolkit was built on the endpoints that remain after the February 2026 changes. It uses /me/library and /playlists/{id}/items, and its search tool takes up to 10 results per type.
It has 29 tools, 19 that only read and 10 that write:
| Area | Tools |
|---|---|
| Profile | Get the current user |
| Catalogue | Search the catalogue, get a track, album, artist, show or episode, list album tracks, an artist's albums and a show's episodes |
| Playlists | List my playlists, get a playlist, list playlist items, create a playlist, update a playlist, add items, remove items |
| Library and history | List saved tracks, save to library, remove from library, check the library, list top artists or tracks, list recently played tracks |
| Playback | Get playback state, list available devices, start or resume playback, pause, skip to next, add to queue |
The four playback controls need Spotify Premium on the connected account. One limit comes from the Web API itself. Reading the items of a playlist only works for one the user owns or collaborates on, and Spotify answers 403 for others.
Spotify's connector is built for a person chatting in Claude, and Spotify decides which tools it has. The toolkit is for an agent you write and run, and you choose per MCP server which of its 29 tools the agent sees. Examples are an agent that keeps a team playlist up to date, one that queues a podcast episode on a set device, or one that reports what a user listened to this week.
Holding the calls that change something
Three tools can remove or overwrite something: Update a playlist, Remove items from a playlist and Remove from library. An MCP server set to Ask a person before destructive calls holds those three. Set to Ask a person before any call that changes something, it holds all ten tools that write, including creating playlists, saving to the library and every playback control. A held call returns approval_required: true and runs nothing until a person approves it from the link sent to your webhook and the dashboard. The agent never gets that link. The router docs explain the modes.
Connect Spotify to Prompt TM
The Spotify toolkit signs in with OAuth through a Spotify app you register. That app is in Development Mode until Spotify grants it extended quota, so the limits above apply: you need Premium as the app owner, and up to 5 Spotify accounts can connect.
1. Register a Spotify app. In the Spotify Developer Dashboard, create an app and add https://www.prompt-tm.com/api/v3/auth/callback as a redirect URI. Copy the client ID and client secret. Add the Spotify accounts of the other people who should connect under Users Management.
2. Add an auth config for Spotify. In the Prompt TM dashboard, open Auth configs → New, choose Spotify and OAuth 2.0, and enter the client ID and secret. Or with the API:
curl -X POST https://www.prompt-tm.com/api/v3/auth_configs \
-H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
-d '{ "toolkit": { "slug": "spotify" },
"auth_config": { "type": "use_custom_auth", "auth_scheme": "OAUTH2",
"credentials": { "client_id": "...", "client_secret": "..." } } }'
Without scopes, the sign-in asks for the toolkit's 14 default scopes, which cover every tool. Spotify recommends requesting only the scopes you use. For an agent that only reads, pass a shorter list in credentials.scopes, such as ["user-read-private", "playlist-read-private", "user-library-read", "user-read-recently-played"]. Tools whose scope is missing then answer 403 from Spotify.
3. Send the connect link. For each user, create a link and send it to them:
curl -X POST https://www.prompt-tm.com/api/v3/connected_accounts/link \
-H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
-d '{ "auth_config_id": "ac_...", "user_id": "me" }'
The redirect_url in the answer is a connect page on prompt-tm.com that sends the user to Spotify's sign-in. After the user agrees, Spotify sends them back to Prompt TM, which stores the token for that user_id. The link expires after one hour.
4. Create an MCP server and add it to your client. In MCP servers → New, choose Custom, tick Spotify, and under Only some tools pick what the agent should see. Then add the server URL to Claude Code:
claude mcp add --transport http prompt-tm-spotify \
"https://www.prompt-tm.com/mcp/mcp_...?user_id=me" \
--header "x-api-key: $PROMPT_TM_KEY"
Claude Desktop, claude.ai, Cursor, VS Code and the agent SDKs are in the MCP client docs. The Spotify toolkit page lists every tool with its parameters.
Which one to use
- You want music recommendations while you chat in Claude. Turn on Spotify's connector in Claude's settings. Nothing to build.
- You manage ad campaigns. Install the Ads API plugin in Claude Code or Codex, or ask your Spotify contact about the closed-beta MCP server.
- You want Spotify tools in Claude Code or Cursor for yourself. Register a Spotify app and connect it through Prompt TM or a self-hosted server. Development Mode allows up to 5 users per app.
- You're building an agent for many Spotify users. The agent needs an app in extended quota mode, which Spotify grants to companies only. Once you have it, an auth config with that app's credentials connects each user through the same link.
Frequently asked questions
Does Spotify have an official MCP server?
Yes, two. One runs Spotify's connector in Claude and is documented only for Claude. The other is for the Ads API and is in closed beta. Spotify has no official MCP server for the Web API that you can add to any client.
Is the Spotify MCP server free?
The Claude connector works for Spotify Free and Premium listeners on Claude Free, Pro and Max. Some features, like mood-based playlists, need Premium. A Web API app in Development Mode needs the app owner to have Premium, and playback control through the Web API needs Premium on the connected account.
Can I use Spotify's MCP server in Claude Code or Cursor?
Spotify doesn't document a way to do that. Its server is set up as Claude's connector, and its authorization server offers no dynamic client registration. For a coding agent, use a server built on the Web API with your own Spotify app.
Why does my Spotify MCP server answer 403 for some users?
In Development Mode, only users added to the app under Users Management can call the API. Others may get through the sign-in and then receive 403 on every call. A missing scope or reading the items of someone else's playlist also answers 403.