MCP Hub
Back to servers

spotify-mcp

An MCP server that enables users to control Spotify playback, search for music, and manage playlists through MCP-compatible clients. It supports features like track recommendations and playback management using secure OAuth authentication.

glama
Updated
Mar 30, 2026

spotify-mcp

An MCP (Model Context Protocol) server for Spotify. Control playback, search for music, manage playlists, and get personalized recommendations -- all through any MCP-compatible client like Claude.

Tools

ToolDescription
auth-spotifyAuthenticate with Spotify via OAuth
search-spotifySearch for tracks, albums, artists, or playlists
get-current-playbackGet the current playback state (track, device, progress)
play-trackPlay a specific track on an active device
pause-playbackPause playback
next-trackSkip to the next track
previous-trackSkip to the previous track
get-user-playlistsList the user's playlists
create-playlistCreate a new playlist
add-tracks-to-playlistAdd tracks to a playlist
get-playlist-tracksGet the tracks in a playlist
rename-playlistRename a playlist (and optionally update description/visibility)
unfollow-playlistUnfollow (or delete) a playlist
get-recommendationsGet track recommendations based on seed tracks, artists, or genres
get-top-tracksGet the user's top played tracks over a time range

Environment Variables

VariableRequiredDescription
SPOTIFY_CLIENT_IDYesSpotify app client ID
SPOTIFY_CLIENT_SECRETYesSpotify app client secret
SPOTIFY_REDIRECT_URINoOAuth redirect URI (defaults to http://127.0.0.1:8888/callback)

Create a Spotify app at developer.spotify.com and add your redirect URI to the app's settings.

Setup

npm ci

Usage

Stdio mode (for MCP clients that launch the server directly)

node build/index.js

HTTP mode (using mcp-proxy)

mcp-proxy --port 8002 -- node build/index.js

Authentication

On first use, call the auth-spotify tool. It will open a browser window for Spotify OAuth. Tokens are persisted to ~/.spotify-mcp/tokens.json so you only need to authenticate once.

License

MIT

Reviews

No reviews yet

Sign in to write a review