Spotify MCP Server
MCP server connecting LLMs to Spotify, with smart-batching and large-playlist tools
Spotify scores 70 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Media. GitHub shows 13 stars. Package registries report about 72 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 7 + 10 + 4 + 7 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 7 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jamiew-spotify-mcp": { "command": "uvx", "args": [ "spotify-mcp-jamiew" ], "env": { "SPOTIFY_CLIENT_ID": "YOUR_SPOTIFY_CLIENT_ID", "SPOTIFY_CLIENT_SECRET": "YOUR_SPOTIFY_CLIENT_SECRET", "SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8888" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
SPOTIFY_CLIENT_IDSecret | Required | Spotify app Client ID from developer.spotify.com |
SPOTIFY_CLIENT_SECRETSecret | Required | Spotify app Client Secret from developer.spotify.com |
SPOTIFY_REDIRECT_URI | Required | OAuth redirect URI registered in your Spotify app |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About

spotify-mcp
mcp-name: io.github.jamiew/spotify-mcp
A local Python MCP server for searching Spotify, controlling playback, and managing playlists and Liked Songs from your MCP client. Runs over stdio with your Spotify account. This is a supported fork of varunneal/spotify-mcp.
The TypeScript edition supports local and hosted use, with a different MCP surface.
Setup
Requires Python 3.12+, uv, and Spotify Premium for playback.
- Create an app in the Spotify developer dashboard.
- Register
http://127.0.0.1:8888as its redirect URI, exactly as written. - Copy the app's Client ID and Client Secret into your MCP client's configuration:
{
"mcpServers": {
"spotify": {
"command": "uvx",
"args": ["spotify-mcp-jamiew"],
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id",
"SPOTIFY_CLIENT_SECRET": "your_client_secret",
"SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8888"
}
}
}
}
Restart the client. On first use, a browser opens for Spotify authorization; the token is cached locally. Keep the client secret and token cache private. Playback needs an available Spotify Connect device, so open Spotify on the device you want to control.
Client-specific setup: Claude Desktop, Claude Code, and Codex. Use the same command and environment variables in each client's format.
Run from source
The package command above uses the published package, which may lag this README's source changes. To run the current checkout:
git clone https://github.com/jamiew/spotify-mcp.git
cd spotify-mcp
uv sync
In the config above, change command to uv and args to
["--directory", "/absolute/path/to/spotify-mcp", "run", "spotify-mcp"].
Keep the same environment variables. Without cloning, use
uvx --from git+https://github.com/jamiew/spotify-mcp.git spotify-mcp.
Reauthorization: artist-follow checks need user-follow-read, and following or
unfollowing artists and playlists needs user-follow-modify. Existing grants do not
receive new scopes automatically. Restart and complete Spotify authorization when prompted;
if access is still denied, review the app's grant in your Spotify account and reauthorize.
Do not automatically delete the auth cache.
Features
48 tools, six resources (user, playback, track, playlist, artist, album), and five prompts. Tools provide typed outputs and behavior annotations; large playlist reads report progress. Playlist removal asks for confirmation where supported, reordering uses snapshot guards, and playback control attempts best-effort read-after-write confirmation, not guaranteed success.
Tools
| Tool | Does |
|---|---|
get_me | Read your profile |
search_music | Search tracks, albums, artists, or playlists with filters and pagination |
get_tracks | Read up to 50 tracks; individual reads when batching is unavailable |
get_artist | Read up to 50 artists; top tracks for a single artist |
get_album | Read up to 20 albums; track list for a single album |
get_playback_state | Read current track or episode, device, progress, shuffle, and repeat |
control_playback | Play tracks, episodes or a context; pause, skip, seek, volume, shuffle, repeat |
list_devices | List Spotify Connect devices |
transfer_playback | Move playback to another device |
get_queue | Read now playing and upcoming tracks and episodes |
add_to_queue | Queue a track or podcast episode |
list_playlists | List your playlists with pagination |
get_playlist | Read playlist metadata without tracks |
get_playlist_tracks | Read up to 1000 playlist tracks per call; continue from next_offset |
create_playlist | Create a private playlist; set public=true to publish |
update_playlist_details | Change name, description, or visibility |
add_tracks_to_playlist | Add up to 100 tracks or episodes |
remove_tracks_from_playlist | Remove tracks or episodes with confirmation where supported |
reorder_playlist | Move a block of tracks |
follow_playlist | Follow (save) a playlist |
unfollow_playlist | Unfollow a playlist, including your own |
get_saved_tracks | Read Liked Songs with pagination |
save_tracks | Like tracks |
remove_saved_tracks | Unlike tracks |
check_saved_tracks | Check up to 50 tracks against Liked Songs |
check_saved_albums | Check up to 20 saved albums |
check_following_artists | Check up to 50 followed artists |
get_saved_albums | Read saved albums with pagination |
save_albums | Save up to 20 albums |
remove_saved_albums | Remove up to 20 saved albums |
get_followed_artists | Read followed artists with cursor pagination |
follow_artists | Follow up to 50 artists |
unfollow_artists | Unfollow up to 50 artists |
get_saved_shows | Read saved podcast shows with pagination |
save_shows | Save up to 50 podcast shows |
remove_saved_shows | Remove up to 50 saved podcast shows |
check_saved_shows | Check up to 50 saved podcast shows |
get_show_episodes | Read a show's episodes with resume points and pagination |
get_saved_episodes | Read saved podcast episodes with pagination |
check_saved_episodes | Check up to 50 saved podcast episodes |
save_episodes | Save up to 50 podcast episodes |
remove_saved_episodes | Remove up to 50 saved podcast episodes |
get_saved_audiobooks | Read saved audiobooks with pagination |
check_saved_audiobooks | Check up to 50 saved audiobooks |
save_audiobooks | Save up to 50 audiobooks |
remove_saved_audiobooks | Remove up to 50 saved audiobooks |
get_top_items | Read top artists or tracks over a time range |
get_recently_played | Read recently played tracks with timestamps |
Behavior to know
- New playlists default to private. Existing playlists are unchanged. Spotify can report unexpected visibility, so confirm sensitive playlists in the Spotify app.
- Library writes (tracks, artists, shows, episodes, audiobooks) and membership checks accept 50 items, sent upstream in batches of 40. Album saves, removals and checks accept 20. Membership results preserve input alignment; incomplete chunks fail. Writes are not atomic across chunks: earlier changes may remain after an error. Check membership before retrying.
- Restricted apps cap search pages at 10. Advance by the returned
offset + limit, not the requested size. Individual-track fallback can make up to 50 Spotify requests. - Playlist pagination counts positions, including unresolved rows and local files with
id: null. Local files also setis_local; positions remain valid for reordering.
Spotify access and policy
- Permissions and app access mode determine available endpoints and playlist access. A 403 may mean missing permission, not a retired endpoint. Existing integrations' February restrictions were postponed; restricted apps use the February 2026 API routes.
- Development Mode normally allows five allowlisted users and requires a Premium app owner; older larger allowlists may be grandfathered. Extended access is not routine hobby-project approval: criteria include an organization, a legal entity, a launched service, and 250,000 monthly active users. A public URL does not remove these limits.
- All Development Mode apps on a developer account share one quota, even with the
25 permitted Client IDs.
This server surfaces 429 errors without retries, including
QUOTA_EXCEEDEDand ordinary rate limits withRetry-Afterwhen provided. No guaranteed quota reset time is specified. - This server uses one local identity. Do not share its token cache or expose it as an unauthenticated public service. Other users should self-host and authorize their own accounts.
- AI policy is a separate constraint. Spotify Developer Policy III.14 restricts training or otherwise ingesting Spotify Content into AI/ML models; "no training" or "metadata only" is not automatic clearance. III.13 restricts analysis and derived metrics; III.3 restricts voice-control assistants. Seek Spotify clarification or approval before public AI access. This is a risk notice, not legal advice or permission.
Moving between implementations
Shared versions and tool names do not imply drop-in compatibility with other implementations. Check arguments, limits, and result shapes before switching. Preserve any workflow that relies on this server's resources, five prompts, snapshot guards, removal confirmation, or playback confirmation; those behaviors are not universal.
Credits
MIT license, copyright 2025 Varun Neal Srivastava. Thanks to @varunneal for the original project, @jamiew, @jonico, @tedeuxx, and @karimStekelenburg.
Banner made with Glif.
Frequently asked questions
What is Spotify MCP Server?
MCP server connecting LLMs to Spotify, with smart-batching and large-playlist tools
How do I install Spotify MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Spotify MCP Server runs locally from the PyPI package spotify-mcp-jamiew with the command uvx spotify-mcp-jamiew.
Is Spotify MCP Server free and open source?
Yes. Spotify MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Spotify MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Spotify MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Spotify MCP Server's trust score calculated?
Spotify MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
