Spotify MCP Server (Python)
Provides tools for searching and retrieving Spotify data, including tracks, artists, albums, playlists, and user profile information such as playlists, top tracks, top artists, and recently played items.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spotify MCP Server (Python)show my top tracks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Spotify MCP Server (Python)
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
Related MCP server: Spotify Universal MCP Server
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/callbackCopy your Client ID
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables interaction with Spotify through OAuth 2.0 authentication, supporting search for tracks/artists/albums/playlists, user profile access, and playlist management including creation and adding tracks.Last updated6
- Alicense-qualityDmaintenanceEnables interaction with Spotify's services and tools through a standardized MCP interface, allowing control of music streaming and playback.Last updatedMIT
- Alicense-qualityDmaintenanceEnables control of Spotify playback, track search, and user profile retrieval via MCP tools with automatic OAuth token management.Last updated1703MIT
- Flicense-qualityDmaintenanceExposes Spotify controls as MCP tools for playback, playlist management, and AI playlist generation; includes a web app and supports multi-user profiles.Last updated
Related MCP Connectors
Spotify MCP — Web API via client_credentials OAuth
MCP server for Suno AI music generation, lyrics, and covers
Podcast Index MCP — wraps the Podcast Index API (podcastindex.org)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/argotdev/spotify-mcp-py'
If you have feedback or need assistance with the MCP directory API, please join our Discord server