Spotify MCP
Provides tools for searching tracks, albums, artists, and playlists, managing liked songs, saved albums, and playlists, and controlling playback and queue on Spotify.
Click on "Deploy 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 MCPsearch for 'Bohemian Rhapsody' and add it to my Liked Songs"
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.
Spotify MCP
Spotify MCP server with OAuth authentication, built on Cloudflare Workers.
Connect your Spotify account to a compatible remote MCP client to search music, manage your library and playlists, and control playback. The server is not exclusive to Grok: client support depends on remote HTTP MCP and OAuth capabilities.
Features
Search tracks, albums, artists, and playlists.
Read and manage liked songs, saved albums, and playlists.
Inspect playback, queue, and available devices.
Control playback and queue tracks (subject to Spotify account and device requirements).
Per-user Spotify authorization, token refresh, and encrypted token storage in Workers KV.
Related MCP server: Spotify Universal MCP Server
Documentation
Deployment and recovery: deploy your own instance or restore an existing one.
AI handoff: context and checks for an assistant or future maintainer.
Quick start
You need Node.js LTS, a Cloudflare account, and a Spotify developer application.
npm ci
npx wrangler login
npx wrangler whoamiConfigure your own account and KV namespaces in wrangler.jsonc, then add the three required Worker secrets:
npx wrangler secret put SPOTIFY_CLIENT_ID
npx wrangler secret put SPOTIFY_CLIENT_SECRET
npx wrangler secret put APP_ENCRYPTION_SECRET
npx wrangler types
npx tsc --noEmit
npm test -- --run
npx wrangler deployThe configuration currently contains the maintainer's deployment identifiers. Replace them when deploying to a different account; they are identifiers, not credentials. Follow the complete setup instructions before deploying.
Register this exact redirect URI in your Spotify application:
https://<your-worker>.<your-subdomain>.workers.dev/spotify/callbackThen add this server URL to your MCP client and complete Spotify authorization:
https://<your-worker>.<your-subdomain>.workers.dev/mcpProject structure
src/ Worker entrypoint, Spotify integration, tools, and authorization UI
test/ Automated tests
scripts/ Optional live, read-only verification helper
docs/ Deployment, recovery, and maintainer notesSecurity and backups
Credentials belong in Cloudflare Worker secrets, never in this repository. Source code is not a backup of live KV data or secrets. Keep your Cloudflare account, Spotify application, and encryption key available to preserve existing authorizations. Do not upload local environment files, tokens, caches, or dependency folders.
Origin
Based on guirguispierre/spotifyMCP, with Spotify API compatibility fixes, additional tests, and recovery documentation. This repository does not declare an additional license for the upstream code.
This server cannot be deployed
Maintenance
Related MCP Connectors
Spotify MCP — Web API via client_credentials OAuth
Full Spotify Web API coverage - albums, artists, playlists, player controls, and more.
An authenticated remote MCP server for user-owned devices and one-shot capability invocation.
Sonos MCP server: control your Sonos speakers from any MCP client. Play songs, artists and playlists, set volume, group rooms, move music to another room, switch to TV, spoken announcements and reminders. 27 tools, English and Chinese. Works through the official Sonos cloud, so there is no home bridge to install; sign in with OAuth. Requires the free ZoneFoundry iOS app.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables control of Spotify playback, search, and playlist management through MCP tools and Apple Shortcuts/Siri integration via HTTP bridge.12-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Spotify's services and tools through a standardized MCP interface, allowing control of music streaming and playback.MIT
- AlicenseNot gradedqualityDmaintenanceEnables control of Spotify playback, track search, and user profile retrieval via MCP tools with automatic OAuth token management.132 npm3MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Spotify through MCP, providing tools for searching tracks, artists, albums, playlists, and accessing user data like top tracks and recently played.-