Spotify Server (Python)
FreeNot checkedEnables interaction with Spotify through MCP, providing tools for searching tracks, artists, albums, playlists, and accessing user data like top tracks and rece
About
Enables interaction with Spotify through MCP, providing tools for searching tracks, artists, albums, playlists, and accessing user data like top tracks and recently played.
README
MCP server for Spotify integration using PKCE authentication.
Features
- PKCE authentication (no client secret needed)
- Automatic token caching and refresh
- 14 Spotify tools for search, user data, and more
Installation
cd spotify-mcp-py
pip install -e .
Setup
Create Spotify App at https://developer.spotify.com/dashboard:
- Add redirect URI:
http://127.0.0.1:8888/callback - Copy your Client ID
- Add redirect URI:
Configure Claude Desktop at
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"spotify": {
"command": "python",
"args": [
"-m",
"spotify_mcp.server"
],
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id_here"
}
}
}
}
- Restart Claude Desktop - browser will open for Spotify login on first use
Available Tools
search_tracks- Search for tracksget_track- Get track detailssearch_artists- Search for artistsget_artist- Get artist detailsget_artist_top_tracks- Get artist's top trackssearch_albums- Search for albumsget_album- Get album detailssearch_playlists- Search for playlistsget_playlist- Get playlist detailsget_current_user- Get user profileget_user_playlists- Get user's playlistsget_user_top_tracks- Get user's top tracksget_user_top_artists- Get user's top artistsget_recently_played- Get recently played tracks
Token Cache
Tokens are cached in ~/.spotify-mcp/token-cache.json and automatically refreshed.
Install Spotify Server (Python) in Claude Desktop, Claude Code & Cursor
unyly install spotify-mcp-server-pythonInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add spotify-mcp-server-python -- uvx spotify-mcpFAQ
Is Spotify Server (Python) MCP free?
Yes, Spotify Server (Python) MCP is free — one-click install via Unyly at no cost.
Does Spotify Server (Python) need an API key?
No, Spotify Server (Python) runs without API keys or environment variables.
Is Spotify Server (Python) hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Spotify Server (Python) in Claude Desktop, Claude Code or Cursor?
Open Spotify Server (Python) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Omni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
by buildwithtazaARA
Generate images, video and audio from any AI agent — one connector.
by ARAYouTube
Transcripts, channel stats, search
by YouTubeEverArt
AI image generation using various models.
by modelcontextprotocolCompare Spotify Server (Python) with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
