Labsco
mfteloglu logo

Spotify

from mfteloglu

Control Spotify playback and manage your liked songs using LLMs.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Spotify MCP Server

A simple MCP server to control Spotify playback and manage your liked songs via LLM's.

Features

  • Play and pause Spotify playback
  • Get info about the current track
  • Add the current track to your Liked Songs

Integration with Claude Desktop (MCP Server)

To use this server as an MCP server with Claude, add the following entry to your Claude config file (usually located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "spotify-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PROJECT/spotify-mcp-server",
        "run",
        "main.py"
      ]
    }
  }
}
  • Replace /ABSOLUTE/PATH/TO/PROJECT/spotify-mcp-server with the actual path to your project
  • If command uv is not recognized, give the absolute path for uv executable (can be found with which uv on MacOS)
  • Make sure your environment variables are set either in the config or via a .env file.
  • Restart Claude after editing the config file.

Notes

Example Session

Below is an example session using Claude with the Spotify MCP server:

Example Conversation

Sample interaction:

User: Play the current track using Spotify MCP server
Claude: Playback started successfully

User: What song is playing?
Claude: Currently playing: Shape of You by Ed Sheeran

User: Like this song
Claude: Added 'Shape of You' to your Liked Songs.