Add to Claude Code
132 addsAdd this MCP server to Claude Code.
Name: Spotify MCP
Merge into: ~/.claude/mcp.json under mcpServers
---
{
"mcpServers": {
"spotify": {
"command": "npx",
"args": ["-y", "spotify-mcp"],
"env": {
"SPOTIFY_CLIENT_ID": "<YOUR_CLIENT_ID>",
"SPOTIFY_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
"SPOTIFY_REDIRECT_URI": "http://localhost:3000/callback"
}
}
}
}
// ── Setup ────────────────────────────────────────────────────────────────────
// 1. Create a Spotify App at https://developer.spotify.com/dashboard
// 2. Set the redirect URI to http://localhost:3000/callback
// 3. Copy the Client ID and Client Secret
// 4. On first use, authorize via browser to grant playback and playlist access
//
// Required scopes:
// user-read-playback-state, user-modify-playback-state,
// playlist-read-private, playlist-modify-public, playlist-modify-private,
// user-library-read, user-top-read
//
// ── Available tools ──────────────────────────────────────────────────────────
// search_tracks search for tracks by name, artist, or album
// get_current_playback get the currently playing track
// play_track play a specific track or URI
// pause_playback pause the current playback
// skip_next skip to the next track
// get_playlists list user's playlists
// create_playlist create a new playlist
// add_to_playlist add tracks to a playlist
// get_recommendations get recommended tracks based on seeds
// get_top_tracks get the user's top tracks
Paste into Claude Code to connect this MCP server.
How to add
Full guide →Click Add, then paste into Claude Code. Claude will connect the MCP server in your settings.
Target: .claude/mcp.json → mcpServers