SpotifyMCP

N1KH1LT0X1N/SpotifyMCP

3.3

If you are the rightful owner of SpotifyMCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

A comprehensive Model Context Protocol (MCP) server for Spotify, enabling AI assistants to control playback, manage playlists, search music, and more.

Tools
5
Resources
0
Prompts
0

🎵 Spotify MCP Server

Spotify MCP Server

Python 3.10+ MCP

Control Spotify with natural language through Claude Desktop.

75 tools • 10 resources


⚡ Quick Start

# 1. Install
pip install -e .

# 2. Authenticate with Spotify
python -m spotify_mcp.auth

# 3. Add to Claude Desktop config (see docs/setup/QUICK_SETUP.md)

📖 Full Setup Guide:


🎯 What You Can Do

Just talk naturally:

CategoryExamples
Playback"Play my Discover Weekly" • "Skip this song" • "Volume to 50%"
Search"Find chill jazz" • "Search for Radiohead albums"
Library"Save this track" • "Show my top artists"
Playlists"Create a workout playlist" • "Add this to my queue"
Discovery"What's new this week?" • "Show artist's top tracks"

🛠️ Tools (75)

CategoryCountDescription
Playback12Play, pause, skip, volume, shuffle, seek
Playlists12Create, modify, follow, manage covers
Albums8Browse, save, new releases
User8Profile, top items, following
Shows7Podcasts and episodes
Episodes6Save and manage podcast episodes
Artists4Details, discography, top tracks
Library4Saved tracks management
Categories2Browse categories
Queue2View and add to queue
Tracks2Track details
Search1Universal search
Markets1Available markets
Composite6Multi-step operations (create playlists, analyze listening)

Note: Audiobooks, Chapters, and Genre Seeds are deprecated by Spotify's API changes.

📖 Full Tool Reference:


📋 Requirements


🔧 Configuration

Claude Desktop

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "spotify": {
      "command": "python",
      "args": ["-m", "spotify_mcp.spotify_server"],
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id",
        "SPOTIFY_CLIENT_SECRET": "your_client_secret",
        "SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8888/callback",
        "PYTHONPATH": "/path/to/spotify_mcp/src"
      }
    }
  }
}

🐛 Troubleshooting

IssueSolution
ModuleNotFoundErrorSet PYTHONPATH to src directory
No tokensRun python -m spotify_mcp.auth
Invalid redirect URIUse 127.0.0.1 not localhost
No active deviceOpen Spotify on any device
Premium requiredPlayback control needs Premium

📖 Full Guide:


📚 Documentation

DocumentDescription
Get started in 5 minutes
All 75 tools explained
Resources, prompts, schemas
Production deployment guide
FastMCP v3.0 implementation
System design

🚀 Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Code quality
black src/ tests/
isort src/ tests/

📄 License

MIT License - see


Made with 🎵 for the AI + Music community