SpotifyMCP
Allows creating playlists and searching songs on Spotify.
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., "@SpotifyMCPcreate a playlist called 'Summer Hits' with songs by Dua Lipa"
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.
SpotifyMCP MCP Server
This is a TypeScript-based MCP server for Spotify based on the Model Context Protocol.
Features
Tools
create_playlist- Create a new Spotify playlist.Takes name, description, tracks, and public status as parameters.
Returns the URI of the created playlist.
Prompts
search_songs- Search for songs on Spotify.Takes a search query and an optional limit for results.
Related MCP server: Spotify MCP Server
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchInstallation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"SpotifyMCP": {
"command": "node",
"args": [
"/Users/your_username/Documents/SideProjects/MCPs/spotify-mcp/build/index.js"
],
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id_here",
"SPOTIFY_CLIENT_SECRET": "your_client_secret_here",
"SPOTIFY_REFRESH_TOKEN": "your_refresh_token_here"
}
},
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Setup Instructions
Create a Spotify Developer Account
Visit Spotify Developer and create an account.Create a New Application
After logging in, create a new application to obtain your Client ID and Client Secret.Set Up Redirect URI
In your Spotify application settings, configure the redirect URI to:http://localhost:8888/callbackCreate a
.envFile
In the root of your project, create a.envfile and add the following environment variables:SPOTIFY_CLIENT_ID=your_client_id_here SPOTIFY_CLIENT_SECRET=your_client_secret_here SPOTIFY_REDIRECT_URI=http://localhost:8888/callbackGet Your Spotify Token
Run the following command to obtain your Spotify token:npx ts-node src/scripts/get-spotify-token.tsLogin to Your Application
Visit http://localhost:8888/login in your browser Copy the refresh token and set it in your environment variables: SPOTIFY_REFRESH_TOKEN=your_refresh_token_here
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
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/carllapierre/spotify-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server