Skip to main content
Glama
spotify-mcp

spotify-mcp

by codebyotto

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SPOTIFY_CLIENT_IDYesYour 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

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_tracksA

Search the Spotify catalog for tracks.

Returns unique, ranked, compact track entries. Each uri (spotify:track:…) can be passed directly to add_tracks_to_playlist.track_uris. Read-only; nothing in the user's account changes.

list_my_playlistsA

List playlists in the signed-in user's library (owned, collaborative and followed).

Each playlist's id is the playlist_id for add_tracks_to_playlist. Only playlists with can_edit: true (owned by the user or collaborative) accept new tracks. Read-only.

get_recently_playedA

List the signed-in user's recently played tracks (Spotify keeps only the last ~50 plays).

Each uri can be passed to add_tracks_to_playlist.track_uris. Read-only. For "what does the user listen to over the last weeks", prefer get_my_top_tracks.

get_my_top_tracksA

List the signed-in user's most played tracks for a time range, ranked by Spotify.

Each uri can be passed to add_tracks_to_playlist.track_uris. Read-only.

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 id is the playlist_id for add_tracks_to_playlist. Check warnings and tell the user about them before adding tracks.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 6 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count4/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues