This is a Python-based MCP (Model Context Protocol) server that allows AI agents (like Claude, Cursor) to create, manage, and populate Spotify playlists using the Spotify Web API.
- You can create new private playlists
- Can search songs by name
- Add tracks to playlists
- Fully compatible with MCP client tool systems like Claude Desktop, Cursor, or your custom client
git clone https://github.com/HimanshuSharmaKUL/mcp-spotify.git
cd mcp-spotifyCreate a .env file in the repo and collect the following credentials for Spotify API integration
CLIENT_ID=your_spotify_client_id
CLIENT_SECRET=your_spotify_client_secret
REDIRECT_URI=http://localhost:8888/callbackFrom the official uv installation guide For windows use
pipx install uvuv pip install -r requirements.txtnpx @modelcontextprotocol/inspector uv run mcpspotify_server.pyAdd the following in your the config.json of your Claude Desktop. Add it under the mcpServers
"mcp-spotify": {
"command": "uv",
"args": [
"--directory",
"C:\\Path\\To\\mcp-spotify-playlist",
"run",
"mcpspotify_server.py"
]
}