Spotify Model Context Protocol
Enables creation of Spotify playlists based on text descriptions, with OAuth authentication handling for accessing Spotify's API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spotify Model Context Protocolcreate a chill study playlist with lo-fi beats and ambient sounds"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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)
Related MCP server: Spotify MCP Node Server
Setup
Clone this repository:
git clone https://github.com/yourusername/spotify-mcp.git cd spotify-mcpInstall the required dependencies:
pip install -r requirements.txtSet up your Spotify Developer credentials:
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/callbackto the Redirect URIsSave the changes
Start the authentication server:
python main.pyThis will start a local server on port 5000 that handles Spotify OAuth authentication.
Visit
http://localhost:5000in 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!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables interaction with Spotify through LLMs using OAuth2 authentication. Supports music search, playback control, playlist management, and device management through natural language commands.142MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to control Spotify playback, manage playlists, search music, and access listening history. Requires Spotify Premium and uses secure OAuth 2.0 with PKCE authentication.13116MIT
- FlicenseAqualityDmaintenanceEnables interaction with Spotify through OAuth 2.0 authentication, supporting search for tracks/artists/albums/playlists, user profile access, and playlist management including creation and adding tracks.6
- Alicense-qualityDmaintenanceEnables AI agents to create, manage, and populate Spotify playlists using the Spotify Web API.3MIT
Related MCP Connectors
Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect your Oura Ring account to enable secure, authenticated access in your workflows. Generate…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/belljustin/spotify-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server