Enables creation of Spotify playlists based on text descriptions, with OAuth authentication handling for accessing Spotify's API.
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:
- Install the required dependencies:
- Set up your Spotify Developer credentials:
- Go to Spotify Developer Dashboard
- Create a new application
- Set up your environment variables:
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: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:
Now you can use the Spotify MCP commands in Cursor to create and manage playlists directly from your editor!
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables creating Spotify playlists based on text descriptions by connecting Cursor editor to Spotify's API through OAuth authentication.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityEnables interaction with Spotify's music catalog via the Spotify Web API, supporting searches, artist information retrieval, playlist management, and automatic token handling.Last updated -2654712TypeScriptMIT License
- AsecurityFlicenseAqualityA FastMCP tool that enables control of Spotify through natural language commands in Cursor Composer, allowing users to manage playback, search for content, and interact with playlists.Last updated -215Python
- AsecurityFlicenseAqualityA lightweight Model Context Protocol server that enables AI assistants like Cursor & Claude to control Spotify playback and manage playlists.Last updated -1296TypeScript
- AsecurityFlicenseAqualityA tool that connects to the Spotify API and enables Claude to access artist information for enhanced music discovery through natural language queries.Last updated -1TypeScript