
Spotify Model Context Protocol
Enables creating Spotify playlists based on text descriptions by connecting Cursor editor to Spotify's API through OAuth authentication.
Tools
create_playlist
Create a new playlist on Spotify and add tracks to it. Args: name: Name of the playlist track_uris: List of Spotify track URIs to add to the playlist description: Optional description for the playlist public: Whether the playlist should be public (default: False)
get_track_uris
Look up Spotify track URIs for a list of songs. Args: songs: List of dictionaries containing song information. Each dictionary should have 'name' and 'artist' keys. Example: [{"name": "Yesterday", "artist": "The Beatles"}] Returns: List of Spotify track URIs for the found songs. Songs that couldn't be found will be skipped.
update_playlist
Update an existing Spotify playlist's details and/or tracks. Args: playlist_id: The Spotify ID of the playlist to update name: New name for the playlist (optional) track_uris: New list of track URIs to replace the playlist's tracks (optional) description: New description for the playlist (optional) public: New public/private status for the playlist (optional)
README
Spotify Model Context Protocol (MCP)
A Spotify MCP for creating playlists based on a description.
Prerequisites
- Python 3.6 or higher
- Spotify Developer credentials (Client ID and Client Secret)
Setup
-
Clone this repository:
git clone https://github.com/yourusername/spotify-mcp.git cd spotify-mcp
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your Spotify Developer credentials:
- Go to Spotify Developer Dashboard
- Create a new application
- Set up your environment variables:
echo SPOTIFY_CLIENT_ID='your_client_id' >> .env echo SPOTIFY_CLIENT_SECRET='your_client_secret' >> .env
Usage
Starting the Authentication Server
-
Set up your redirect URI in the Spotify Developer Dashboard:
- Go to your app in the Spotify Developer Dashboard
- Click "Edit Settings"
- Add
http://localhost:5000/callback
to the Redirect URIs - Save the changes
-
Start the authentication server:
python main.py
This will start a local server on port 5000 that handles Spotify OAuth authentication.
-
Visit
http://localhost:5000
in your browser to authenticate with Spotify. After successful authentication, your access token will be saved for use with the MCP.
Integrating with Cursor
- Open Cursor and go to Settings
- Navigate to the "Model Context Protocols" section
- Click "Add MCP"
- Enter the following details in your mcp.json, replacing PATH-TO-BASE-DIR:
{
"mcpServers": {
"spotify": {
"command": "uv",
"args": [
"--directory",
"PATH-TO-BASE-DIR/spotify-mcp",
"run",
"spotify.py"
]
}
}
}
Now you can use the Spotify MCP commands in Cursor to create and manage playlists directly from your editor!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.