Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Spotify Server (Python)

FreeNot checked

Enables interaction with Spotify through MCP, providing tools for searching tracks, artists, albums, playlists, and accessing user data like top tracks and rece

GitHubEmbed

About

Enables interaction with Spotify through MCP, providing tools for searching tracks, artists, albums, playlists, and accessing user data like top tracks and recently played.

README

MCP server for Spotify integration using PKCE authentication.

Features

  • PKCE authentication (no client secret needed)
  • Automatic token caching and refresh
  • 14 Spotify tools for search, user data, and more

Installation

cd spotify-mcp-py
pip install -e .

Setup

  1. Create Spotify App at https://developer.spotify.com/dashboard:

    • Add redirect URI: http://127.0.0.1:8888/callback
    • Copy your Client ID
  2. Configure Claude Desktop at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "spotify": {
      "command": "python",
      "args": [
        "-m",
        "spotify_mcp.server"
      ],
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id_here"
      }
    }
  }
}
  1. Restart Claude Desktop - browser will open for Spotify login on first use

Available Tools

  • search_tracks - Search for tracks
  • get_track - Get track details
  • search_artists - Search for artists
  • get_artist - Get artist details
  • get_artist_top_tracks - Get artist's top tracks
  • search_albums - Search for albums
  • get_album - Get album details
  • search_playlists - Search for playlists
  • get_playlist - Get playlist details
  • get_current_user - Get user profile
  • get_user_playlists - Get user's playlists
  • get_user_top_tracks - Get user's top tracks
  • get_user_top_artists - Get user's top artists
  • get_recently_played - Get recently played tracks

Token Cache

Tokens are cached in ~/.spotify-mcp/token-cache.json and automatically refreshed.

from github.com/argotdev/spotify-mcp-py

Install Spotify Server (Python) in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install spotify-mcp-server-python

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add spotify-mcp-server-python -- uvx spotify-mcp

FAQ

Is Spotify Server (Python) MCP free?

Yes, Spotify Server (Python) MCP is free — one-click install via Unyly at no cost.

Does Spotify Server (Python) need an API key?

No, Spotify Server (Python) runs without API keys or environment variables.

Is Spotify Server (Python) hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Spotify Server (Python) in Claude Desktop, Claude Code or Cursor?

Open Spotify Server (Python) on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Spotify Server (Python) with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All media MCPs