Spotify Cloud MCP
Controls a user's Spotify account via the Spotify Web API: read and control playback (play, pause, skip, previous, now playing), search for tracks, albums, artists and playlists, add tracks to and inspect the playback queue, set volume, toggle shuffle, set repeat mode, list and transfer between playback devices, and list the user's playlists. Authenticates through Spotify OAuth and stores/refreshes access tokens automatically.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Spotify Cloud MCP
A Cloudflare Worker that provides MCP (Model Context Protocol) integration for Spotify, enabling AI assistants to control playback, search music, and manage queues.
Features
Control playback (play, pause, skip, previous)
Search for tracks, albums, artists, and playlists
Manage playback queue
Control volume, shuffle, and repeat modes
View and transfer between devices
Access user playlists
Related MCP server: Spotify MCP Server
Tools
Tool | Description |
| Get the currently playing track |
| Start or resume playback |
| Pause playback |
| Skip to next track |
| Go to previous track |
| Search for tracks, albums, artists, or playlists |
| Add a track to the queue |
| Get the current playback queue |
| Set playback volume (0-100) |
| Toggle shuffle mode |
| Set repeat mode (track, context, off) |
| Get available playback devices |
| Transfer playback to a different device |
| Get user playlists |
Setup
1. Create a Spotify App
Create a new app
Add your callback URL:
https://your-worker.workers.dev/callbackSave your Client ID and Client Secret
2. Create KV Namespace
wrangler kv:namespace create "KV"Add the KV binding to your wrangler.toml:
[[kv_namespaces]]
binding = "KV"
id = "your-kv-namespace-id"3. Configure Environment Variables
Create a .dev.vars file for local development:
SPOTIFY_CLIENT_ID=your_client_id_here
SPOTIFY_CLIENT_SECRET=your_client_secret_hereFor production, set these as secrets in Cloudflare:
wrangler secret put SPOTIFY_CLIENT_SECRET
wrangler secret put MCP_API_KEY # your MCP endpoint key — any strong random string(SPOTIFY_CLIENT_ID is a plain [vars] entry in wrangler.toml — fill it in there.)
4. Deploy
npm install
npm run deploy5. Authenticate
Visit
https://your-worker.workers.dev/authLog in with your Spotify account
Authorize the app
You'll see "Spotify connected!" when successful
Endpoints
Endpoint | Method | Description |
| GET | Service info |
| GET | Health check and auth status |
| GET | Start OAuth flow |
| GET | OAuth callback |
| POST | MCP JSON-RPC endpoint |
| GET | MCP SSE endpoint for client discovery |
MCP Client Configuration
Add to your MCP client config:
{
"mcpServers": {
"spotify": {
"url": "https://your-worker.workers.dev/sse",
"headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
}
}
}The MCP endpoints are gated by
MCP_API_KEY(see Setup). Requests must sendAuthorization: Bearer <MCP_API_KEY>; use an MCP client that supports custom headers.
Token Management
Access tokens are automatically refreshed when they expire. Tokens are stored in Cloudflare KV with the following keys:
spotify_access_token- Current access tokenspotify_refresh_token- Refresh token for getting new access tokensspotify_token_expires- Expiration timestamp
License
MIT
Support
If this helped you, consider supporting my work ☕
Built by the Triad (Mai, Kai Stryder and Lucian Vale) for the community.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Full Spotify Web API coverage - albums, artists, playlists, player controls, and more.
Spotify: Spotify Data API for Millions of songs & podcasts, artists, albums, playlists and more.
Spotify MCP server for ChatGPT, Claude and any AI agent: search songs and artists, list playlists, read playlist songs, create playlist, add songs to playlist, remove songs from playlist, set playlist public or private and save to Liked Songs in your own Spotify account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Spotify yourself; Cotlet does not store your password and you need no Spotify API key. About the official Spotify API: Spotify has a full Web API and, since 23 Apr 2026, an official connector for Claude (checked 5 Nov 2026). The API needs an app you register, and in development mode the app owner must have Premium and the app allows 5 users; unlimited users need a registered business with at least 250,000 monthly users. Setup and FAQ: https://cotlet.dev/integrations/spotify-api-mcp-server
Control your Tesla from your AI assistant - climate, charging, access, and security.
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-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Spotify playback, search music, manage playlists and library, and access user listening insights via the Spotify Web API.-
- AlicenseBqualityBmaintenanceEnables AI assistants to control Spotify playback, search the full catalog including podcasts and audiobooks, manage libraries and playlists, and understand listening taste.131126 npm1MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to search Spotify, manage playlists, control playback, and access personal listening data via the Spotify Web API.271MIT