Start playback of a specific track, album, artist, or playlist
Pause the current playback
Skip to the next track in the queue
Search for tracks, albums, artists, or playlists
Get information about a track, album, artist, or playlist
Add or remove items from the Spotify queue
Create, update, or modify playlists
The Spotify MCP provides a seamless interface between your LLM and Spotify's music streaming service. Built on top of the spotipy-dev API, it enables comprehensive control over your Spotify experience directly through conversational AI. With this integration, you can search for music, control playback, manage queues, and organize playlists without leaving your AI assistant. The MCP requires Spotify Premium and proper API credentials to function, providing a powerful way to enhance your music listening experience through natural language.
The Spotify MCP allows you to control Spotify through your LLM, enabling a seamless music experience through natural language. This integration lets you search for music, control playback, manage your queue, and organize playlists without switching between applications.
uv
package manager (recommended version ≥0.54)http://127.0.0.1:8080/callback
(you can use a different port if needed)Clone the repository to your local machine:
git clone https://github.com/varunneal/spotify-mcp.git
Add the Spotify MCP to your LLM client's configuration file:
Edit ~/Library/Application\ Support/Claude/claude_desktop_config.json
Edit %APPDATA%/Claude/claude_desktop_config.json
Add the following configuration, replacing the placeholders with your actual values:
"spotify": {
"command": "uv",
"args": [
"--directory",
"/path/to/spotify_mcp",
"run",
"spotify-mcp"
],
"env": {
"SPOTIFY_CLIENT_ID": "YOUR_CLIENT_ID",
"SPOTIFY_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8080/callback"
}
}
After configuring the MCP, restart your LLM client (e.g., Claude Desktop) to apply the changes.
If you encounter issues with the Spotify MCP:
uv
package manager is updated to version 0.54 or newerchmod -R 755 /path/to/spotify_mcp
~/Library/Logs/Claude
You can also use the MCP Inspector for debugging:
npx @modelcontextprotocol/inspector uv --directory /path/to/spotify_mcp run spotify-mcp
If problems persist, consider opening an issue on the GitHub repository.
Once configured, you can interact with Spotify through natural language commands like:
The MCP handles the translation between your natural language requests and the appropriate Spotify API calls.