Skip to main content
Glama

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

Quick start

You need Node.js LTS, a Cloudflare account, and a Spotify developer application.

npm ci
npx wrangler login
npx wrangler whoami

Configure 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 deploy

The 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/callback

Then add this server URL to your MCP client and complete Spotify authorization:

https://<your-worker>.<your-subdomain>.workers.dev/mcp

Project 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 notes

Security 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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/deprised/spotify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server