spotify-mcp
MCP server by XavierFabregat Community
Lets AI assistants control Spotify by conversation: play music, manage the queue, devices, playlists and your library. Built for people who use Claude Desktop, Claude Code, Cursor or other MCP clients.
Install spotify-mcp
Built from the published package, never by AI.
claude mcp add spotify-mcp -- npx -y @xavifabregat/spotify-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"spotify-mcp": {
"args": [
"-y",
"@xavifabregat/spotify-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"spotify-mcp": {
"args": [
"-y",
"@xavifabregat/spotify-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"spotify-mcp": {
"args": [
"-y",
"@xavifabregat/spotify-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add spotify-mcp -- npx -y @xavifabregat/spotify-mcp{
"mcpServers": {
"spotify-mcp": {
"args": [
"-y",
"@xavifabregat/spotify-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add spotify-mcp npx -y @xavifabregat/spotify-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the spotify-mcp block.
About
spotify-mcp is an MCP server that lets AI assistants control Spotify through conversation. It can play music from a free-text query or Spotify URI, control playback, manage the queue and devices, search, work with playlists, and save items to your library. It works with Claude Desktop, Claude Code, Cursor and other MCP clients.
Tools are built around intents, so a request like playing an artist takes one tool call. Each user creates their own free Spotify developer app and logs in with OAuth PKCE, and tokens are stored locally in ~/.spotify-mcp/. The project targets the post-February 2026 Spotify Web API and requires Spotify Premium and Node.js 20 or later. It suits people who want hands-free Spotify control from their AI tools.
Written from the project's README and checked against it.
Tools it gives your assistant
playPlays by free-text query (search, best match, play) or Spotify URI.playbackPauses, resumes, skips, seeks, sets volume, and changes shuffle or repeat.now_playingShows the current track, progress, device and playback mode.queueAdds a track to the queue so it plays next.devicesLists available devices and transfers playback between them.searchBrowses tracks, albums, artists and playlists, up to 10 per type.get_playlistsLists your playlists.get_playlist_itemsShows the tracks in a playlist you own or collaborate on.modify_playlistCreates a playlist and adds tracks to it.librarySaves, removes or checks items in your Spotify library.
What you need
- Spotify Premium account
- Free Spotify developer app with a Client ID
- Node.js 20 or later
- An MCP client such as Claude Desktop, Claude Code or Cursor
Try asking
- Play something like early Bill Evans
- Queue the whole album and save this song to my library
- Show my playlists and list the tracks in the first one
Good to know
- Requires Spotify Premium for playback control and creating the developer app.
- Search returns at most 10 results per type because of an API cap.
- Playlist items can only be shown for playlists you own or collaborate on.
- Playback needs an active Spotify device, since the API can only control a running app.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to spotify-mcp
All alternatives →HyperFrames is HeyGen's open-source AI video editor for people and agents. It turns HTML, CSS, JavaScript and seekable animations into MP4 videos, and can be used from a desktop app, coding agents or chat.
Remocn is a hosted MCP server that helps AI assistants make Remotion videos from 935 MIT-licensed components. It searches components, reads their docs, plans a storyboard and previews results. It is for developers building videos with Remotion.
Agent-Native Assets is the Assets agent from the Agent-Native framework, which creates and organizes on-brand media. It is for developers building agents that pair autonomous work with a purpose-built UI.
Runs an open source engine for a news site that finds hot AI events and writes daily, weekly and monthly briefs. Built for people who want an industry hot-news site in their own field, with MCP access for AI agents.
Turns long videos into captioned 9:16 shorts and can publish them to TikTok, Instagram, YouTube and other networks. It suits creators, marketing agencies and developers who want a self-hosted or hosted option.
Remove AI Watermarks removes AI provenance marks from images, video, audio, and text that you generated yourself. It is aimed at developers and researchers working on AI provenance signals.
Compare with HyperFrames by HeyGen, Remocn: Remotion MCP server or Agent-Native Assets
spotify-mcp: common questions
Why does each user need their own Spotify app?
The source says Spotify caps third-party apps at a handful of users, so every user brings their own app. The setup wizard makes that process simple.
Are my Spotify tokens stored securely?
Tokens are stored in ~/.spotify-mcp/ on your machine and refresh silently. No client secret is involved because the project uses PKCE.
Why does playback say there is no active Spotify device?
The Spotify API can only steer a running app, so you need to open Spotify on some device. If exactly one device is online, the tools target it automatically.
How do I install spotify-mcp?
In Claude Code run claude mcp add spotify-mcp -- npx -y @xavifabregat/spotify-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is spotify-mcp the official server?
spotify-mcp is a community project by XavierFabregat, not verified by a company domain.
Is spotify-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is spotify-mcp safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to spotify-mcp?
Similar MCP servers: HyperFrames by HeyGen, Remocn: Remotion MCP server, Agent-Native Assets, AIHOT.
Does spotify-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
