Spotify MCP Server

Control Spotify playback using natural language commands directly from your code editor or other MCP-compatible applications.

Local serverstdio★ 1

What is the Spotify MCP Server?

Control Spotify playback using natural language commands directly from your code editor or other MCP-compatible applications.

The short version

Create a file named .env in the root of the project directory. Add the following, replacing the placeholders with your actual Spotify credentials:

  • play: Play a track, album, or playlist, or resume playback
  • pause: Pause playback
  • next: Skip to the next track
  • previous: Skip to the previous track
  • get_current_track: Get information about the currently playing track
  • search: Search for tracks, albums, artists, or playlists

What it needs from you

  • Bun (version 1.0.0 or later) * A Spotify Premium account. * A Spotify Developer application: * Create one at the Spotify Developer Dashboard. * Obtain your Client ID and Client Secret. * Add http://localhost:8888/callback to the Redirect URIs in your app's settings. * An MCP client (e.g., Cursor or Claude for Desktop).

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Spotify MCP Server

{
  "mcpServers": {
    "spotify": {
      "command": "bun",
      "args": [
        "/absolute/path/to/your/spotify-mcp/src/index.ts"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Bun (version 1.0.0 or later) * A Spotify Premium account. * A Spotify Developer application: * Create one at the Spotify Developer Dashboard. * Obtain your Client ID and Client Secret. * Add http://localhost:8888/callback to the Redirect URIs in your app's settings. * An MCP client (e.g., Cursor or Claude for Desktop).

Frequently asked questions

You need Bun (v1.0.0+), a Spotify Premium account, a Spotify Developer application with your Client ID and Secret, and an MCP client like Cursor or Claude.