Skip to main content
Glama
Spotify MCP server for ChatGPT and Claude

Spotify MCP server for ChatGPT and Claude

README.md
# Spotify MCP server for ChatGPT and Claude

Connect ChatGPT, Claude and other AI agents to Spotify through Cotlet.dev. The live page describes 12 hosted operations for search, playlists, Liked Songs and recents. Spotify has a Web API and an official Claude connector; the page compares their coverage, checked 6 November 2026.

## What you can ask

> Archive my Discover Weekly playlist.

> Build a playlist from this list of songs.

> Find duplicate songs and show me what you would remove.

> Make my old playlists private.

> Export a playlist to a spreadsheet.

## Connect Spotify

Sign up at https://cotlet.dev/signup?app=spotify, enable Spotify and sign in at open.spotify.com in your Cloud Browser. Get your API key at https://cotlet.dev/app and export it as `COTLET_API_KEY`.

### ChatGPT

Settings → Apps → add connector URL `https://cotlet.dev/mcp/v1/connect`, then sign in with Cotlet.dev. No API key needed.

### Claude Code

```bash
claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"
```

### Cursor

Copy `.cursor/mcp.json` from this repo into your project:

```json
{
  "mcpServers": {
    "cotlet": {
      "url": "https://cotlet.dev/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${COTLET_API_KEY}"
      }
    }
  }
}
```

## Run the local MCP bridge

Python 3.10+, with no dependencies. Clone this repository, set your Cotlet.dev API key, then run:

```bash
export COTLET_API_KEY="your-key"
python3 spotify_agent.py serve
```

This local stdio bridge lists seven browser helper tools: `spotify_guide`, `spotify_status`, `spotify_open`, `spotify_read`, `spotify_click`, `spotify_type` and `spotify_close`.
It forwards calls to the hosted Cotlet.dev MCP server.
The 12 task tools described on the integration page are available through the hosted connection.

Without a key, the local bridge can list its helpers; calls return setup instructions.

```bash
python3 spotify_agent.py connect
python3 spotify_agent.py guide
python3 spotify_agent.py status
```

## Questions from Spotify users

**Does Spotify have an API or an official connector?**

Yes. Spotify has a Web API and an official Claude connector. The live page reports that the connector does not add songs to existing playlists, remove songs from them or delete playlists, checked 6 November 2026. Use official integrations when they cover your task.

**How do I connect Spotify to ChatGPT or Claude?**

Sign up at https://cotlet.dev/signup?app=spotify, enable Spotify and sign in to Spotify in your Cloud Browser. Add https://cotlet.dev/mcp/v1/connect as a connector and sign in to Cotlet.dev.

**Which actions need approval?**

The live page says four operations ask first by default: adding songs to a playlist, removing songs, deleting a playlist and changing playlist privacy. Review the proposed songs and changes before approving.

**Can these tools control playback?**

No. These tools search, read and edit playlists and your library. Spotify's own Claude connector covers playback.

**Is Cotlet.dev affiliated with Spotify?**

No. Cotlet.dev is independent and is not affiliated with Spotify AB.

## Integration details

[Spotify tools and setup on Cotlet.dev](https://cotlet.dev/integrations/spotify-api-mcp-server?utm_source=github&utm_medium=readme&utm_campaign=spotify)

---

More: https://cotlet.dev/integrations/spotify-api-mcp-server?utm_source=github&utm_medium=readme&utm_campaign=spotify

Start free: https://cotlet.dev/signup?app=spotify&utm_source=github&utm_medium=readme&utm_campaign=spotify