Spotify

Developer tools

MCP to connect your LLM with Spotify.

Your AI app calls the Spotify MCP server, which does the developer tools work and sends the result back to the chat.

About Spotify

Spotify is a community MCP server from varunneal, filed in our directory under developer tools. MCP to connect your LLM with Spotify.

At a glance

Publisher
varunneal (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
615

How to set up Spotify

  1. Follow the install steps in the Spotify README; it is written in Python, so have that toolchain ready.
  2. Check the Spotify README for keys or settings; the registry lists none that Spotify requires.
  3. Add Spotify to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Spotify tools to confirm the connection.
  5. Run one read-only task with Spotify first, and keep your app asking before each tool call until the results look right.

Spotify compared with similar servers

  • Huashu Chrome by alchaincyf has fewer GitHub stars than Spotify (614 against 615); both are community servers, and both run locally.
  • x64dbgMCP by Wasdubya has more GitHub stars than Spotify (620 against 615); both are community servers, and both run locally.
  • FantasyPremierLeague by joreilly has fewer GitHub stars than Spotify (603 against 615); both are community servers, and both run locally.

Before you connect Spotify

  • Give Spotify its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Spotify tool call until you trust what it does with them.
  • Treat text that Spotify fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Spotify on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Spotify

How marketing and sales teams put Spotify to work, by company size. Pick the size closest to yours and start Spotify on one use case.

Small business

  • A small business with a developer can use Spotify to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Spotify to explain and fix a marketing site issue without context switching between tools.
  • Spotify runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Spotify to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Spotify to keep scripts and automations documented and versioned as they change.
  • Start Spotify on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Spotify with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Spotify so web and marketing engineering share one reviewed way of working with AI.
  • Spotify is a community server, so have security review the code and pin a version before Spotify touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Spotify README

From varunneal/spotify-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

spotify-mcp MCP server

MCP project to connect Claude with Spotify. Built on top of spotipy-dev's API.

[Notice March 2026]: Inactive project. Most PRs will not be merged.

Features

  • Start, pause, and skip playback
  • Search for tracks/albums/artists/playlists
  • Get info about a track/album/artist/playlist
  • Manage the Spotify queue
  • Manage, create, and update playlists

Demo

Video -- turn on audio https://github.com/user-attachments/assets/20ee1f92-f3e3-4dfa-b945-ca57bc1e0894

Configuration

Getting Spotify API Keys

Create an account on developer.spotify.com. Navigate to the dashboard. Create an app with redirect_uri as http://127.0.0.1:8080/callback. You can choose any port you want but you must use http and an explicit loopback address (IPv4 or IPv6).

See developer.spotify.com/documentation/web-api/concepts for more info/troubleshooting. You may have to restart your MCP environment (e.g. Claude Desktop) once or twice before it works.

Locating MCP Config

For Cursor, Claude Desktop, or any other MCP-enabled client you will have to locate your config.

  • Claude Desktop location on MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

  • Claude Desktop location on Windows: %APPDATA%/Claude/claude_desktop_config.json

Run this project with uvx

Add this snippet to your MCP Config.

{
  "mcpServers": {
    "spotify": {
      "command": "uvx",
      "args": [
        "--python", "3.12",
        "--from", "git+https://github.com/varunneal/spotify-mcp",
        "spotify-mcp"
      ],
      "env": {
        "SPOTIFY_CLIENT_ID": YOUR_CLIENT_ID,
        "SPOTIFY_CLIENT_SECRET": YOUR_CLIENT_SECRET,
        "SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8080/callback"
      }
    }
  }
}
Run this project locally

Using UVX will open the spotify redirect URI for every tool call. To avoid this, you can run this project locally by cloning this repo:

git clone https://github.com/varunneal/spotify-mcp.git

Add it to your MCP Config like this:

"spotify": {
    "command": "uv",
    "args": [
      "--directory",
      "/path/to/spotify-mcp",
      "run",
      "spotify-mcp"
    ],
    "env": {
      "SPOTIFY_CLIENT_ID": YOUR_CLIENT_ID,
      "SPOTIFY_CLIENT_SECRET": YOUR_CLIENT_SECRET,
      "SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8080/callback"
    }
  }
Troubleshooting

Please open an issue if you can't get this MCP working. Here are some tips:

  1. Make sure uv is updated. I recommend version >=0.54.
  2. If cloning locally, enable execution permisisons for the project: chmod -R 755.
  3. Ensure you have Spotify premium (needed for running developer API).

This MCP will emit logs to std err (as specified in the MCP) spec. On Mac the Claude Desktop app should emit these logs to ~/Library/Logs/Claude. On other platforms you can find logs here.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /path/to/spotify-mcp run spotify-mcp

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

To do

Unfortunately, a bunch of cool features have now been deprecated from the Spotify API. Most new features will be relatively minor or for the health of the project:

  • tests.
  • adding API support for managing playlists.
  • adding API support for paginated search results/playlists/albums.

PRs appreciated! Thanks to @jamiew, @davidpadbury, @manncodes, @hyuma7, @aanurraj, @JJGO and others for contributions.

Questions about Spotify

What is the Spotify MCP server?

MCP to connect your LLM with Spotify. Spotify is maintained by varunneal on GitHub at varunneal/spotify-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Spotify MCP server?

Spotify doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (varunneal/spotify-mcp). Like most servers, Spotify ends with a command or URL you paste into your AI app's MCP config.

Does Spotify need an API key?

The registry lists no required keys for Spotify. Check the Spotify README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Spotify an official MCP server?

No. Spotify is a community server maintained by varunneal. Community servers can be excellent; read the code and the open issues before you give Spotify access to company data.

What license is Spotify under?

Spotify is released under the MIT license, according to its GitHub repository. The license covers the code of Spotify; the service it connects to has its own terms.