spotify-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SPOTIFY_CLIENT_ID | Yes | Your Spotify app's public Client ID (from the Spotify Developer Dashboard). The client secret is not needed because the server uses PKCE. Set it in `.env` or in the MCP server's `env` block. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Spotify tools for finding music and building playlists for the signed-in user. To learn the user's taste, use get_my_top_tracks / get_recently_played. Typical chain: search_tracks -> (list_my_playlists | create_playlist) -> add_tracks_to_playlist (dry_run=true first, then dry_run=false after the user confirms). IDs and URIs must come from the outputs of these tools.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_tracksA | Search the Spotify catalog for tracks. Returns unique, ranked, compact track entries. Each |
| list_my_playlistsA | List playlists in the signed-in user's library (owned, collaborative and followed). Each playlist's |
| get_recently_playedA | List the signed-in user's recently played tracks (Spotify keeps only the last ~50 plays). Each |
| get_my_top_tracksA | List the signed-in user's most played tracks for a time range, ranked by Spotify. Each |
| create_playlistA | Create a new, empty playlist owned by the signed-in user. WRITE: this changes the user's Spotify account immediately and cannot be undone by these
tools. Calling it twice creates two playlists. Only call it when the user asked for a new
playlist; to extend an existing one, use list_my_playlists instead.
The returned |
| add_tracks_to_playlistA | Preview (dry_run=true, the default) or perform adding tracks to one of the user's playlists. Both modes check that the playlist exists, that the user can edit it, and that every track URI exists, and they return the resolved track names. A dry run changes nothing. With dry_run=false the tracks are added to the live playlist. This is not idempotent: repeating the call adds the tracks again as duplicates. Recommended flow: search_tracks -> list_my_playlists/create_playlist -> this tool with dry_run=true -> user confirms -> same arguments with dry_run=false. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct resource+action: catalog search, playlist listing, recently played, top tracks, playlist creation, and track addition. The only potential confusion is between get_recently_played and get_my_top_tracks, but the descriptions explicitly cross-reference each other to steer selection.
All names use a clear, readable snake_case verb_noun pattern (search_tracks, create_playlist, add_tracks_to_playlist). The only deviation is the inconsistent inclusion of 'my' in list_my_playlists and get_my_top_tracks versus the plain forms elsewhere, but this is minor and never ambiguous.
Six tools is a tight, well-scoped set for a read-heavy Spotify integration with a single write path, and each tool clearly earns its place. It sits at the low end of the ideal 3-15 range but is not thin enough to hurt usability.
The create/search/add flow is well covered, but the surface has notable gaps: there is no way to read the contents of an existing playlist, remove or reorder tracks, or undo the warned-about non-idempotent add. An agent can build playlists but cannot inspect or clean them up afterward, creating dead ends.