Spotify MCP logo

Spotify MCP

Connects MCP-compatible AI clients to Spotify for playback control, catalog search, library management, podcasts, audiobooks, and playlists.

Install Spotify MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "spotify-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@novalux12/spotify-mcp@latest"
      ],
      "env": {
        "SPOTIFY_CLIENT_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 131 tools correctly ().

Overview

Spotify MCP connects an MCP-compatible host to the Spotify Web API for catalog search, playback control, library operations, podcasts, audiobooks, playlists, and following data. It uses Spotify OAuth with PKCE, stores refreshed tokens locally, and exposes a curated tool surface by default with broader registration available through environment settings. Reach for it when an agent needs to search Spotify, inspect or modify a personal library, control Spotify Connect devices, or create playback actions from natural-language requests. The package runs on Node.js 22.9 or newer and can authenticate interactively or in headless environments.

Use cases

  • Search Spotify for tracks, artists, albums, podcasts, or audiobooks
  • Build or update playlists from natural-language requests
  • Inspect and manage saved tracks, albums, shows, and episodes
  • Control playback and queues across Spotify Connect devices
  • Check library counts and saved or followed item state

Key features

  • Typed catalog search with deep, fresh-release, ISRC, and personal-radar modes
  • Library reads, searches, counts, saves, removals, and state checks
  • Playback, queue, volume, shuffle, repeat, and device-transfer controls
  • Podcast and audiobook support
  • PKCE authentication with local token refresh
  • Configurable curated, complete, read-only, and stats.fm tool surfaces

Tools131

What Spotify MCP lets your agent do. Expand a tool for its parameters.

Verified live~33.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 81d

What it can do

From the 131 tools this server returned when we ran it; 131 declare their own safety hints.

Can delete or modify data · 18Handles credentials · 3Makes network requests · 13Read-only tools · 113
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age82 days
Maintainers1

Observed 2026-11-14 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @novalux12/spotify-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads1kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed131Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Spotify MCP works

What Spotify MCP does

Spotify MCP exposes Spotify Web API operations through the Model Context Protocol. Its capabilities cover catalog discovery, saved tracks and albums, podcast shows and episodes, audiobooks, playback state, queues, Spotify Connect devices, playlists, and followed artists. Search can target specific content types, retrieve deeper paginated results, find new releases, match an exact ISRC, or surface a personal radar based on followed artists.

Library tools read saved content, search bounded portions of saved collections, report collection counts, check saved or followed state, and add or remove items. Write operations accept several Spotify URI types, preview changes by default, and can require confirmation for larger removals. Playback tools cover starting, pausing, seeking, skipping, queue changes, shuffle, repeat, volume, and device transfer.

How it works

The server communicates with an MCP host over the standard command, argument, and environment configuration used by MCP servers. Spotify authentication uses PKCE rather than a client secret. After browser authentication, tokens are saved under ~/.spotify-mcp/tokens.json and refreshed automatically.

A default launch registers a curated set of tools so the host does not receive the entire registry immediately. Set SPOTIFY_MCP_TOOLSETS=all to register the full tool registry. Stats.fm-backed tools are separately enabled with SPOTIFY_MCP_STATSFM=1. Read-only and confirmation controls are available for deployments that need to restrict or review write operations.

Setup and configuration

Create an application in the Spotify Developer Dashboard and register this redirect URI exactly:

text
http://127.0.0.1:8888/callback

Install and authenticate with the package’s latest tag:

bash
SPOTIFY_CLIENT_ID=your_client_id_here npx -y @novalux12/spotify-mcp@latest auth

The command opens a browser for login. For a remote or headless machine, set SPOTIFY_HEADLESS=1; the command prints a URL and accepts the returned redirect. Run the package’s doctor command to check the authentication state.

Add the server to an MCP host using a configuration with npx, the package name, and SPOTIFY_CLIENT_ID in the server environment. A local .env file is read when launching through the repository’s development or start scripts, but the published binary relies on the host’s environment configuration. Node.js 22.9 or newer is required.

Tools and capabilities

  • Search tracks, artists, albums, playlists, shows, episodes, and audiobooks, with specialized deep, fresh-release, ISRC, and personal-radar searches.
  • Read and search saved tracks, albums, shows, episodes, and audiobooks, plus collection counts and library state.
  • Save or remove mixed Spotify URI types with dry-run previews and confirmation handling for bulk removals.
  • Inspect current playback, queues, devices, followed artists, shuffle, repeat, and volume state.
  • Start, pause, seek, skip, queue tracks or episodes, adjust volume, and transfer playback between Spotify Connect devices.
  • Register a curated or complete tool surface, with optional stats.fm tools and configurable read-only operation.

Limitations and notes

Spotify controls access to some API endpoints through registration and account or application eligibility. The server keeps wrappers for gated endpoints and reports access problems rather than treating unavailable data as an empty result. Spotify’s February 2026 API changes removed artist follow and unfollow writes; artist follow state can still be read, but this server cannot follow or unfollow artists.

Searches over saved collections use bounded client-side walks and may report truncation. Collection counts use one read per collection and identify unreadable collections instead of counting them as zero. Playback actions depend on available Spotify Connect devices and the account’s Spotify playback access.

The server is not affiliated with Spotify. Treat the Spotify Client ID as a credential and enter it directly into the host or shell rather than sharing it in an agent conversation.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Spotify MCP

Spotify MCP is an MCP server that connects AI clients to the Spotify Web API. Its main tools search Spotify’s catalog, read and modify the user’s library, inspect playback and queues, control Spotify Connect devices, manage playback, and work with podcasts, audiobooks, playlists, and followed artists.

Install it with `npx -y @novalux12/spotify-mcp@latest` and add that command to your MCP host configuration. Set `SPOTIFY_CLIENT_ID`, then run the package’s `auth` command after registering the callback URI `http://127.0.0.1:8888/callback` in a Spotify Developer app.

Yes, Spotify MCP works with Cursor because it supports the standard MCP server configuration. Add the server command and `SPOTIFY_CLIENT_ID` to Cursor’s MCP settings, authenticate separately if needed, and restart the host.

Set `SPOTIFY_HEADLESS=1` during authentication. The command prints a URL that you can open on another machine, then accepts the resulting redirect so the remote host can save its token cache.

No, Spotify MCP cannot write artist follows because Spotify removed the underlying follow and unfollow endpoints in February 2026. It can still read whether an artist is followed through the library-state check and list followed artists.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSpotify MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/spotify-mcp?style=directory)](https://allmcps.com/mcp/spotify-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/spotify-mcp"><img src="https://allmcps.com/api/badge/spotify-mcp?style=directory" alt="Spotify MCP on AllMCPs" /></a>