Skip to main content
Glama
martin-gomola

Spotify MCP Server

Works with Codex, Cursor, Claude, Cline, and other MCP clients. The repository also ships the agent skills that guide setup, playlist curation, and DJ set planning.

Started from marcelmarais/spotify-mcp-server and since rewritten from scratch. Follow this repository's setup, not upstream's. MIT licensed.

Start here

Codex

Install the plugin with two commands:

codex plugin marketplace add martin-gomola/spotify-mcp-server --ref main
codex plugin add spotify-controller@spotify-mcp-server

Then tell Codex:

Set up Spotify for me. Do the technical parts yourself and tell me only what you need from my Spotify account.

The setup skill handles the local install and authentication, asking only for the Client ID and Client Secret from your Spotify app. See the Spotify Controller guide for the two-minute walkthrough.

Other MCP clients

You need Node.js 18+, a Spotify Premium account, and a Spotify Developer app with http://127.0.0.1:8888/callback registered as a Redirect URI. Spotify's current Development Mode requires the app owner to have Premium; playback also needs Spotify open on an available device.

git clone https://github.com/martin-gomola/spotify-mcp-server.git
cd spotify-mcp-server
npm install && npm run build
cp spotify-config.example.json spotify-config.json  # add your client ID and secret
npm run auth

Then point your client at build/index.js. The setup guide has configuration for Claude Desktop, Cline, and Cursor. BPM and key need nothing extra: they come from ReccoBeats, which takes no key.

Related MCP server: Spotify MCP Server

Try asking

  • "Play Elvis's first song"

  • "Create a Taylor Swift / Slipknot fusion playlist"

  • "Copy the techno tracks from my workout playlist into my work playlist"

  • "Reorder my house playlist into a set that warms up, peaks, then cools down"

  • "What's the BPM and key of everything in this playlist?"

What it does

The server covers playback control, search, playlist and album editing, and listening history through a focused MCP toolset. See the core tool reference; audio analysis and DJ tools are documented separately under DJ sets.

Its DJ workflow goes further:

  1. analyzeDjPlaylist reads BPM, Camelot key, and playlist-relative energy, naming the source behind every value.

  2. planDjSet creates a reviewable set order with harmonic mixing, a shaped energy curve, artist spacing, and anchors you pin by hand.

  3. applyDjSetPlan writes the approved order. It defaults to a dry run, checks the playlist snapshot before and after, and keeps a receipt so a half-applied reorder rolls back.

See DJ sets for the full analyze, plan, apply, and restore flow.

Documentation

Guide

Covers

Setup

Spotify app, credentials, OAuth, connecting a client

Tools

Read, playback, playlist, and album tools with parameters

DJ sets

Where BPM and key come from, the analyze/plan/apply flow, set shaping, restore

Agent skills

The bundled skills and how to use them outside this repo

Codex plugin

Shipping the server and skills as a plugin that tracks main

Development

Scripts, layout, the Spotify API rules, local data

A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Privacy-first audio intelligence: BPM, key, waveform. Audio never stored. Pay per second.

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Create and track AI music videos and audio-reactive visuals from songs.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/martin-gomola/spotify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server