drio
Open app

Spotify MCP Server

Source

A server that enables AI assistants to interact with Spotify via the Model Context Protocol (MCP). It allows fetching current playback, controlling playback, and accessing user playlists.

Catalog onlyCatalog onlySTDIO

Overview

Spotify MCP Server is a Flask-based server that allows AI assistants to interact with Spotify using the Model Context Protocol (MCP). It enables functionalities such as controlling playback, managing volume, and accessing user playlists.

To use the Spotify MCP Server, authenticate with Spotify through the provided API endpoints, and then utilize the various commands to control playback and retrieve information about your playlists.

  • Authenticate with Spotify for secure access. - Control playback (Play, Pause, Next, Previous). - Adjust volume levels. - Fetch currently playing song information. - Retrieve user playlists. - Execute custom MCP commands.
  1. Integrating Spotify control into AI assistants.
  2. Building custom applications that require music playback control.
  3. Creating automated systems for managing playlists and playback.

Add to your AI client

Use these steps to connect Spotify MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "spotify-mcp-server-shrau1711": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spotify-mcp-server-shrau1711"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "spotify-mcp-server-shrau1711": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spotify-mcp-server-shrau1711"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "spotify-mcp-server-shrau1711": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spotify-mcp-server-shrau1711"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "spotify-mcp-server-shrau1711": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spotify-mcp-server-shrau1711"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "spotify-mcp-server-shrau1711": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spotify-mcp-server-shrau1711"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "spotify-mcp-server-shrau1711": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-spotify-mcp-server-shrau1711"
      ]
    }
  }
}

FAQ

Can I control Spotify playback with this server?

Yes! You can control playback using various commands provided by the server.

Is authentication required to use the server?

Yes, you need to authenticate with Spotify to access its features.

What programming language is used for this server?

The server is built using Python and Flask.