Control your Spotify music playback through conversations using the Spotify API.
A Model Context Protocol (MCP) server that connects Claude to Spotify, allowing you to control your music directly from conversations.
http://127.0.0.1:8080/callback
For enhanced music discovery features:
Note: Enhanced features will work without Last.fm API key, but with limited external metadata.
git clone https://github.com/varunneal/spotify-mcp.git
cd spotify-mcp
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"spotify": {
"command": "uv",
"args": [
"--directory",
"/path/to/spotify-mcp",
"run",
"spotify-mcp"
],
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id_here",
"SPOTIFY_CLIENT_SECRET": "your_client_secret_here",
"SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8080/callback",
"LASTFM_API_KEY": "your_lastfm_api_key_here"
}
}
}
}
You: "Play some jazz music"
Claude: [Searches for jazz, starts playing]
You: "What's currently playing?"
Claude: [Shows current track info]
You: "Find me artists similar to Radiohead"
Claude: [Uses Last.fm data to find similar artists with match scores]
You: "Do an enhanced search for 'Bohemian Rhapsody'"
Claude: [Combines Spotify data with Last.fm genre tags, MusicBrainz metadata, and additional context]
You: "Add this to my favorites playlist"
Claude: [Adds current track to specified playlist]
You: "Skip to the next song"
Claude: [Skips track]
Test your setup before using with Claude:
# Test authentication and basic functionality
python test_auth.py
# If you need to authenticate, run with the code:
python test_auth.py YOUR_AUTH_CODE_HERE
"No active device": Open Spotify on any device (phone, computer, etc.)
"Authentication failed": Use the Authentication tool to get a new auth URL
"Permission denied": Make sure you have Spotify Premium
~/Library/Logs/Claude/
npx @modelcontextprotocol/inspector uv --directory /path/to/spotify-mcp run spotify-mcp
The server automatically handles all Spotify operations through natural conversation. You can:
PRs welcome! This project is actively maintained.
MIT License - see LICENSE file for details
Need help? Open an issue on GitHub or check the troubleshooting section above.
A Todo and Task Manager server for creating, updating, and managing tasks, using a SQLite database.
Notion official MCP server
A server for managing local prompt files, allowing AI models to create, retrieve, update, and delete them.
Time and timezone conversion capabilities
AnkiConnect MCP server for interacting with Anki via AnkiConnect.
Manage Google Tag Manager accounts, containers, and tags via its API, with built-in Google OAuth.
Connects AI agents to the Feishu/Lark platform to automate document processing, conversation management, and calendar scheduling via its OpenAPI.
A simple tool to pause execution for a specified number of seconds.
Trello Desktop MCP server that enables Claude Desktop to interact with Trello boards, cards, lists, and team members through natural language commands.
Monitor team productivity, usage, and spending for AI assistants using the Cursor Admin API.