Spotify MCP Server
Controls Spotify playback, searches music, manages playlists and albums, and plans DJ sets using BPM, key, and energy data.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spotify MCP ServerReorder my house playlist into a set that warms up, peaks, then cools down"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A Model Context Protocol server that lets Cursor, Claude, and other AI assistants control Spotify playback, manage playlists, and plan DJ sets from BPM, key, and energy data. Ships with the agent skills that drive those tools.
Started from marcelmarais/spotify-mcp-server and since rewritten from scratch. Follow this setup, not upstream's. MIT licensed.
Example interactions
"Play Elvis's first song"
"Create a Taylor Swift / Slipknot fusion playlist"
"Copy the techno tracks from my workout playlist into my work playlist"
"Reorder my house playlist into a set that warms up, peaks, then cools down"
"What's the BPM and key of everything in this playlist?"
Related MCP server: Spotify MCP Server
What it does
Playback control, search, playlist and album editing, and listening history through 30 tools. See Tools.
On top of that sit the DJ tools. analyzeDjPlaylist reads BPM, Camelot key, and playlist-relative energy for a playlist and names the source behind every value. planDjSet turns that into a set order you can review, honouring harmonic mixing, an energy curve, artist spacing, and anchors you pin by hand. applyDjSetPlan writes it, defaulting to a dry run, checking the snapshot before and after, and keeping a receipt so a half-applied reorder rolls back. See DJ sets.
Quick start
You need Node.js 18+, a Spotify Premium account, and a Spotify Developer app with http://127.0.0.1:8888/callback registered as a Redirect URI.
git clone https://github.com/martin-gomola/spotify-mcp-server.git
cd spotify-mcp-server
npm install && npm run build
cp spotify-config.example.json spotify-config.json # add your client ID and secret
npm run authThen point your client at build/index.js. Setup covers each step, the client config for Claude Desktop, Cline, and Cursor, and the optional SoundNet key.
Documentation
Guide | Covers |
Spotify app, credentials, OAuth, connecting a client | |
Read, playback, playlist, and album tools with parameters | |
Audio features, the analyze/plan/apply flow, set shaping, restore | |
The bundled skills and how to use them outside this repo | |
Scripts, layout, the Spotify API rules, local data |
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables AI assistants to control Spotify playback, search for music, manage playlists, and interact with your Spotify library through natural language commands.19
- FlicenseAqualityDmaintenanceEnables AI assistants to control Spotify playback, search for music, manage playlists, and access library information through the Spotify API. Requires Spotify Premium for playback control features.4
- AlicenseBqualityDmaintenanceEnables AI assistants to control Spotify playback, manage playlists, search music, and access listening history. Requires Spotify Premium and uses secure OAuth 2.0 with PKCE authentication.13106MIT
- Flicense-qualityDmaintenanceEnables AI assistants to control Spotify playback, search music, manage playlists and library, and access user listening insights via the Spotify Web API.
Related MCP Connectors
Privacy-first audio intelligence: BPM, key, waveform. Audio never stored. Pay per second.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Create and track AI music videos and audio-reactive visuals from songs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/martin-gomola/spotify-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server