Spotify MCP Server for macOS
Provides tools to control the local Spotify app on macOS, including playback, track navigation, volume adjustment, seeking, shuffle/repeat modes, status retrieval, and playing specific Spotify URIs or URLs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Spotify MCP Server for macOS
Control the Spotify app on macOS through the Model Context Protocol. This server exposes tools for playback, navigation, volume, shuffle, repeat, and context playback so LLM clients can fully manage Spotify using MCP.
Features
✅ Launch Spotify automatically when commands require it
✅ Read player status (state, track metadata, position, shuffle/repeat, volume)
✅ Playback controls: play, pause, play/pause toggle, next, previous
✅ Volume controls: absolute level or relative adjustments
✅ Seek within the current track
✅ Shuffle and repeat controls
✅ Play arbitrary Spotify URIs or URLs with optional seek offset
✅ Resource endpoint that returns Spotify status as JSON
macOS-only: Spotify automation relies on AppleScript (JXA) which is only available on macOS. Spotify must be installed locally.
Related MCP server: Apple Music
Prerequisites
macOS with Spotify installed
Node.js v18 or newer
An MCP-compatible client (e.g. Claude Desktop, Cursor, Windsurf, etc.)
Automation permissions in System Settings → Privacy & Security → Automation allowing your MCP host (e.g. "Terminal", "Claude Desktop") to control Spotify
When you run the server for the first time, macOS will prompt for permission. If you deny it, revisit the Automation pane to enable it manually.
Installation
npm install
npm run buildDuring development you can run the TypeScript sources directly:
npm run devRunning the server
The server communicates over stdio, so you typically let your MCP host spawn it. To run it by hand:
npm run startThe process will stay alive and exchange JSON-RPC messages over stdio until terminated.
Example Claude Desktop configuration
Add this snippet to ~/Library/Application Support/Claude/claude_desktop_config.json (create the file if it doesn’t exist) and restart Claude Desktop:
{
"mcpServers": {
"spotify": {
"command": "node",
"args": ["/Users/teephopdisawas/0.at/vs-code/project-3/dist/server.js"],
"env": {}
}
}
}Replace the path with the absolute location of your dist/server.js build. When working from TypeScript directly you can use npx tsx /path/to/src/server.ts instead of the compiled JS.
Windsurf / Cursor example
Add an MCP server entry pointing to the same command and arguments. Both editors support stdio transports and will request tool discovery automatically.
Available tools
Tool name | Description | Input schema |
| Fetch the latest player status | — |
| Playback controls | — |
| Track navigation | — |
| Set absolute volume (0–100) |
|
| Adjust volume relative to current level |
|
| Seek within the current track |
|
| Control shuffle state |
|
| Set repeat mode ( | `{ "mode": "off" |
| Play a specific Spotify URI/URL with optional offset |
|
Resources
spotify://status– Returns the current player status as prettified JSON
Manual smoke test
To verify Spotify automation outside of MCP, run the status helper:
npm run statusThat command prints the raw status JSON to stdout and will surface any automation permission problems immediately.
Development tips
npm run typecheck– Validate TypeScript types without emitting outputnpm run build– Producedist/artifacts for deploymentnpm run dev– Run the server directly viatsx
AppleScript debugging
If you encounter automation issues, run the helper in a Node REPL:
node -e "import('./dist/server.js');"macOS may prompt for permission; accept it so future commands succeed.
Troubleshooting
Spotify isn’t running: Most tools attempt to launch Spotify automatically. If it still fails, open Spotify manually to confirm it is installed.
Automation denied: Enable the Automation checkbox for your MCP host in System Settings.
Volume commands do nothing: Ensure Spotify is the active output device; some macOS audio setups bypass the Spotify sound volume control.
License
MIT – see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Spotify MCP — Web API via client_credentials OAuth
Full Spotify Web API coverage - albums, artists, playlists, player controls, and more.
Spotify MCP server for ChatGPT, Claude and any AI agent: search songs and artists, list playlists, read playlist songs, create playlist, add songs to playlist, remove songs from playlist, set playlist public or private and save to Liked Songs in your own Spotify account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Spotify yourself; Cotlet does not store your password and you need no Spotify API key. About the official Spotify API: Spotify has a full Web API and, since 23 Apr 2026, an official connector for Claude (checked 5 Nov 2026). The API needs an app you register, and in development mode the app owner must have Premium and the app allows 5 users; unlimited users need a registered business with at least 250,000 monthly users. Setup and FAQ: https://cotlet.dev/integrations/spotify-api-mcp-server
Sonos MCP server: control your Sonos speakers from any MCP client. Play songs, artists and playlists, set volume, group rooms, move music to another room, switch to TV, spoken announcements and reminders. 27 tools, English and Chinese. Works through the official Sonos cloud, so there is no home bridge to install; sign in with OAuth. Requires the free ZoneFoundry iOS app.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables control of Spotify playback, search, and playlist management through MCP tools and Apple Shortcuts/Siri integration via HTTP bridge.12MIT
- FlicenseNot gradedqualityAmaintenanceGives MCP clients control of Apple Music playlists, library, catalog, discovery, playback, and the Up Next queue across macOS, Windows, and Linux, using Music.app, Safari, the Apple Music API, or Chrome.-
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to search and browse the Apple Music catalog, manage library items, ratings, favorites and playlists with nested folders, and control playback, volume, shuffle, repeat and the Up Next queue. Runs via native Music.app, Safari, Chrome, or the Apple Music web API, so it works on macOS, Windows and Linux with just a Mac or an Apple Music subscription.-
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to control playlists, library, catalog, discovery, playback, and the Up Next queue across macOS, Windows, and Linux.-