SpotifyMCP
Allows creating playlists and searching songs on Spotify.
Click on "Deploy 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., "@SpotifyMCP create 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: MCP Spotify Player
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
Available Tools
2 toolscreate_playlistB
Create a new Spotify playlist and return the URI to ALWAYS present to the user as a hyperlink
Inputs: name (required), tracks (required), description, public.
search_songsC
Search for songs on Spotify
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one creates playlists, the other searches for songs. There is no overlap or ambiguity.
Both tool names follow a consistent verb_noun pattern (create_playlist, search_songs) with clear and predictable structure.
With only 2 tools, the surface is too thin for a comprehensive music service like Spotify. This falls in the borderline range for tool count.
The set lacks many essential operations such as playing music, managing playlists (get, update, delete), and user library actions, leaving significant gaps.
Maintenance
Related MCP Connectors
Builds narrated, playable music stories, explores sample lineage, and saves verified playlists.
Find active Spotify playlists for a song and check a playlist's integrity. No curator contacts.
AI playlist engine that turns music prompts into real YouTube playlists and filters bad versions.
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with Spotify Web API through the Model Context Protocol, allowing users to search tracks, control playback, and manage playlists programmatically.118 npmMIT
- AlicenseNot gradedqualityDmaintenanceControl Spotify directly from your AI assistant using the Model Context Protocol.22MIT
- AlicenseAqualityDmaintenanceEnables searching, managing playlists, getting recommendations, and downloading music from TIDAL through natural language commands via the Model Context Protocol.16MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables searching and managing Spotify music, playlists, artists, albums, and audiobooks through natural language.2457 npmMIT