MCP Catalogs
Home

mcp-spotify-player

by vsaez·19·Score 40

An MCP server that integrates Spotify control with AI assistants for natural music commands.

mediaai-llmproductivity
5
Forks
2
Open issues
8 mo ago
Last commit
2d ago
Indexed

Overview

MCP Spotify Player is a Python-based MCP server that enables AI assistants to control Spotify through natural language commands. It offers comprehensive functionality including playback control, search capabilities, device management, and playlist operations. The server implements OAuth authentication for secure Spotify API access and provides a modular architecture for extensibility.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Controlling Spotify playback through AI assistants like Claude or Cursor
you:Creating and managing playlists using natural language commands
you:Searching for music and artists with AI assistance
you:Do I need a Spotify Premium account?
you:How do I get Spotify API credentials?

When to choose this

Choose this if you want to control Spotify directly through your AI assistant without switching apps, especially if you're already using Claude Desktop or JetBrains IDEs with GitHub Copilot.

When NOT to choose this

Don't choose this if you don't have Spotify Premium, if you're using a different AI assistant that doesn't support MCP, or if you prefer a dedicated music player interface over command-line control.

Tools this server exposes

12 tools extracted from the README
  • play_music

    Play music by query

  • pause_music

    Pause playback

  • skip_next

    Skip to next track

  • skip_previous

    Skip to previous track

  • set_volume

    Set playback volume (0-100)

  • search_music

    Search for tracks, artists, or albums

  • get_playlists

    List user playlists

  • create_playlist

    Create a new playlist

  • add_tracks_to_playlist

    Add tracks to a playlist

  • get_current_playing

    Get the currently playing track

  • get_devices

    List available playback devices

  • auth

    Authenticate with Spotify

Comparable tools

mcp-music-playerspotify-mcpai-music-controlmcp-youtube-player

Installation

Installation

  1. Clone the repository:
git clone <repository-url>
cd mcp-spotify-player
  1. Install the package:
pip install .
  1. Set up environment variables:
cp env.example .env

Edit the .env file with your Spotify credentials.

  1. Configure Claude Desktop:

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "spotify-player": {
      "command": "/path/to/python",
      "args": [
        "-m",
        "mcp_spotify_player"
      ],
      "cwd": "/path/to/cloned/repo/mcp-spotify-player",
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id",
        "SPOTIFY_CLIENT_SECRET": "your_client_secret",
        "SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8000/auth/callback"
      }
    }
  }
}

FAQ

Do I need a Spotify Premium account?
Yes, a Spotify Premium account is recommended for the best experience, especially for features like playback control.
How do I get Spotify API credentials?
Create an app on the Spotify Developer Dashboard to get your CLIENT_ID and CLIENT_SECRET.

Compare mcp-spotify-player with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.