SpotiPy MCP
Allows searching for tracks, artists, and albums, managing playlists (create, delete, add/remove tracks), and retrieving track details and artist top tracks.
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., "@SpotiPy MCPsearch for songs by Taylor Swift"
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.
SpotiPy MCP
An MCP server for searching Spotify and managing your playlists from Claude (or any MCP client). Built on spotipy.
Features
Search
search_tracks,search_artists,search_albums(supports advanced filters likeartist:,year:,genre:)get_track_details,get_artist_top_tracks
Playlist management
list_my_playlists,get_playlist_tracksadd_tracks_to_playlist,remove_tracks_from_playlistcreate_playlist,delete_playlist— delete a playlist you ownunfollow_playlist— remove a playlist (typically one you don't own) from your library without deleting itsearch_and_add— find the top match for a query and add it in one step
Related MCP server: Spotify MCP Server
Setup
1. Install dependencies
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt2. Register the redirect URI
In the Spotify Developer Dashboard, open your app → Settings → Redirect URIs, and add:
http://127.0.0.1:8888/callback(Must match SPOTIFY_REDIRECT_URI in .env.)
3. Authorize once
python auth_setup.pyA browser window opens; log in and grant access. A refresh token is cached to
.cache so you never have to log in again (the server refreshes it silently).
4. Register with Claude Desktop / Claude Code
Add this to your MCP client config (for Claude Desktop, claude_desktop_config.json).
Use absolute paths:
{
"mcpServers": {
"spotipy": {
"command": "~\\SpotiPy\\.venv\\Scripts\\python.exe",
"args": ["~\\SpotiPy\\server.py"]
}
}
}For Claude Code:
claude mcp add spotipy -- "~\SpotiPy\.venv\Scripts\python.exe" "~\SpotiPy\server.py"Restart the client, and the SpotiPy MCP tools become available.
Configuration (.env)
Key | Purpose |
| Your app's client id |
| Your app's client secret |
| Must match the dashboard; default |
| OAuth scopes granted at authorization; default (if unset) is |
Security notes
.envand.cachehold secrets and are git-ignored. Do not commit them.If your client secret was ever exposed, rotate it in the Spotify dashboard.
Note on discovery endpoints
Spotify deprecated the Recommendations, Audio Features, Audio Analysis, and
Related Artists endpoints for newly-created apps (Nov 2024). SpotiPy MCP therefore
relies on search filters and get_artist_top_tracks for discovery rather than
those endpoints.
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.
Latest Blog Posts
- 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/MikeChuckRoast/SpotiPyMcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server