Skip to content
MCP server
RegistryRemote

Spotify Data MCP Server

Spotify play counts, monthly listeners, charts, artist stats, albums, playlists and ISRC lookup.

Spotify Data scores 67 (Good), licensed MIT and written in Python. It can be reached as a remote MCP endpoint. It declares 13 tools. Filed under Media. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by eduair94MITPython1 stars
Trust score
67Good
Trust score 67 of 100, Good

Good trust

67 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 67 comes from

22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "eduair94-spotify-data-mcp": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/eduair94/spotify-data-mcp:0.1.1"      ],      "env": {        "SPOTIFY_API_KEY": "YOUR_SPOTIFY_API_KEY",        "SPOTIFY_API_PROVIDER": ""      }    }  }}

Environment variables

NameRequiredNotes
SPOTIFY_API_KEYSecretRequiredYour API key: a free trial or paid key from https://spotify.checkleaked.cc/pricing, or a RapidAPI key for spotify81 (free Basic plan).
SPOTIFY_API_PROVIDEROptionalWhere the key is from: 'rapidapi' (RapidAPI spotify81) or 'direct' (spotify.checkleaked.cc). Leave unset to detect it from the key.

Tools13Tool docs quality grade C

All capabilities
  • Album details and every track with its play count, plus the album total

  • Daily monthly listeners, followers and world rank with the day-over-day change

  • Genre, mood and tempo profile from the artist's top tracks

  • Profile with stats, top tracks with play counts, latest release, discography counts, related artists, biography, links

  • Monthly listeners, followers, world rank, popularity, genres, top 5 cities

  • Top 200, viral, top artists or top albums for a country (daily or weekly, latest or by date), optional play counts

  • Daily lifetime play counts and the streams gained each day, over the last 1-366 days

  • Name, owner, followers, description and up to 100 tracks per page with play counts

  • "Fans also like" artists

  • Genres, moods, activities (with weights), BPM, credits, lyrics flag, languages

  • Lifetime play counts with name, artists, release date

  • Track details: artists, album, release date, duration, ISRC, popularity, play count; optional genres / moods / BPM / credits

About

Spotify Data MCP Server

PyPI Python License: MIT

An MCP server that lets AI assistants (Claude Desktop, Claude Code, Cursor, VS Code and other MCP clients) look up Spotify data: track play counts, artist monthly listeners, world rank and top cities, Top 200 and viral charts by country, albums and playlists with per-track play counts, search, ISRC lookup, and genres, moods and BPM.

It runs on your machine and calls the CheckLeaked Spotify Data API with your own API key. A free trial key needs no card. Step-by-step guide: spotify.checkleaked.cc/spotify-mcp-server.

uvx checkleaked-spotify-mcp
# or, with Docker
docker run -i --rm -e SPOTIFY_API_KEY=your-api-key ghcr.io/eduair94/spotify-data-mcp

Unofficial. Not affiliated with, endorsed by or sponsored by Spotify. Spotify is a trademark of Spotify AB.

Ask things like

  • "What are the monthly listeners of Bad Bunny and Karol G?"
  • "Give me the play counts of every track on this album: https://open.spotify.com/album/3RQQmkQEvNCY4prGKE6oc5"
  • "Show today's Top 200 in Brazil, top 20 only."
  • "Which cities listen to Taylor Swift the most?"
  • "Compare the streams of Blinding Lights and Bohemian Rhapsody."
  • "List the first 30 tracks of Today's Top Hits with their play counts, sorted by plays."
  • "What genres, moods and BPM does The Weeknd's music have?"
  • "Which Spotify track has the ISRC USUG11904206?"
  • "Who are the artists related to Rosalía, and how many monthly listeners does each have?"

1. Get an API key

Every user needs their own key. Pick one:

OptionCostWhereSPOTIFY_API_PROVIDER
Free trial: 500 requests over 7 days, no cardFreespotify.checkleaked.cc/pricing#trialdirect (detected automatically)
RapidAPI listing spotify81Free Basic plan, paid tiersrapidapi.com/airaudoeduardo/api/spotify81rapidapi (default)
Direct paid keyFrom the pricing pagespotify.checkleaked.cc/pricingdirect (detected automatically)

Keys issued by spotify.checkleaked.cc (they start with sapi_) are sent to the direct API automatically; any other key is treated as a RapidAPI key. Set SPOTIFY_API_PROVIDER only to override that.

2. Add it to your MCP client

The server is published on PyPI and runs with uvx (part of uv; install it with pip install uv or see the uv install guide). uvx downloads the package into a cached, isolated environment on first use. Replace your-api-key with your key in the snippets below.

No install: the hosted server (Claude.ai, ChatGPT, any remote MCP client)

The same 12 tools, plus a fetch tool for ChatGPT, are also hosted at https://spotify-proxy.checkleaked.cc/mcp (Streamable HTTP). It takes any of the keys above: keys from spotify.checkleaked.cc (they start with sapi_) are spent on the direct API, and any other key on RapidAPI's spotify81 listing, so a RapidAPI subscription works too. Add &provider=direct or &provider=rapidapi to the URL to choose.

  • Claude.ai (Settings → Connectors → Add custom connector) and ChatGPT (Settings → Connectors; also usable in deep research, which calls its search and fetch tools) cannot send custom headers, so put the key in the URL: https://spotify-proxy.checkleaked.cc/mcp?key=your-api-key. Treat that URL like a password.

  • Clients that can send headers use https://spotify-proxy.checkleaked.cc/mcp with Authorization: Bearer your-api-key. With Claude Code:

    claude mcp add --transport http spotify-data https://spotify-proxy.checkleaked.cc/mcp --header "Authorization: Bearer your-api-key"
    

Each tool call spends one request of your key, as a direct API call would.

No key at all: pay per call with x402

AI agents that carry a wallet can use the hosted server without a key. A tools/call sent with no key answers with an x402 payment request: $0.005 in USDC on Base (eip155:8453) per tool call, valid for two minutes. The client signs the transfer and repeats the call with it in params._meta["x402/payment"]; clients built on @x402/mcp do that step for you. The payment settles only if the tool succeeds, and the receipt comes back in result._meta["x402/payment-response"]. initialize and tools/list need neither a key nor a payment. For steady use a key costs less (a 20,000-request pack is $9).

Claude Desktop

Edit claude_desktop_config.json (Settings > Developer > Edit Config; macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json) and restart Claude Desktop:

{
  "mcpServers": {
    "spotify-data": {
      "command": "uvx",
      "args": ["checkleaked-spotify-mcp"],
      "env": {
        "SPOTIFY_API_KEY": "your-api-key"
      }
    }
  }
}

If Claude Desktop cannot find uvx, put its full path in command (run which uvx on macOS / Linux or where uvx on Windows).

Claude Code

claude mcp add spotify-data -s user -e SPOTIFY_API_KEY=your-api-key -- uvx checkleaked-spotify-mcp

Cursor

Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "spotify-data": {
      "command": "uvx",
      "args": ["checkleaked-spotify-mcp"],
      "env": {
        "SPOTIFY_API_KEY": "your-api-key"
      }
    }
  }
}

VS Code (GitHub Copilot agent mode)

Add to .vscode/mcp.json. VS Code asks for the key once and stores it securely:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "spotify-api-key",
      "description": "Spotify Data API key",
      "password": true
    }
  ],
  "servers": {
    "spotify-data": {
      "type": "stdio",
      "command": "uvx",
      "args": ["checkleaked-spotify-mcp"],
      "env": {
        "SPOTIFY_API_KEY": "${input:spotify-api-key}"
      }
    }
  }
}

Any other MCP client

Run uvx checkleaked-spotify-mcp (stdio transport) with SPOTIFY_API_KEY in its environment. Without uvx: pip install checkleaked-spotify-mcp, then run checkleaked-spotify-mcp (or python -m checkleaked_spotify_mcp).

Docker

The same server is published as a container image (linux/amd64 and linux/arm64):

docker run -i --rm -e SPOTIFY_API_KEY=your-api-key ghcr.io/eduair94/spotify-data-mcp

In a client config, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "SPOTIFY_API_KEY", "ghcr.io/eduair94/spotify-data-mcp"] and SPOTIFY_API_KEY under env. Keep -i: the server speaks MCP over stdin and stdout.

Configuration

VariableRequiredDescription
SPOTIFY_API_KEYyesYour API key (see above).
SPOTIFY_API_PROVIDERnorapidapi (RapidAPI spotify81.p.rapidapi.com) or direct (https://spotify-proxy.checkleaked.cc/spotify-data). Default: detected from the key.
SPOTIFY_API_BASEnoOverride the base URL of the chosen provider.

Without a key the server still starts, and every tool answers with an error that says where to get a free key, so you can see what is wrong from inside your chat.

Tools

All tools are read-only. Every id parameter accepts a bare id, a spotify: URI or an open.spotify.com URL (with or without /intl-xx/ and ?si=).

ToolWhat it returnsBatchRequests
searchTracks, artists, albums or playlists matching a query, with ids and URLs (optionally play counts for tracks)up to 20 hits1
get_tracksTrack details: artists, album, release date, duration, ISRC, popularity, play count; optional genres / moods / BPM / credits50 tracks1
get_track_play_countLifetime play counts with name, artists, release date50 tracks1
get_track_insightsGenres, moods, activities (with weights), BPM, credits, lyrics flag, languages50 tracks1
get_artists_statsMonthly listeners, followers, world rank, popularity, genres, top 5 cities50 artists1
get_artist_overviewProfile with stats, top tracks with play counts, latest release, discography counts, related artists, biography, links1 artist1
get_artist_insightsGenre, mood and tempo profile from the artist's top tracks20 artists1
get_related_artists"Fans also like" artists1 artist1
get_albumAlbum details and every track with its play count, plus the album total1 album1
get_playlistName, owner, followers, description and up to 100 tracks per page with play counts100 tracks2 on the first page, then 1
get_chartTop 200, viral, top artists or top albums for a country (daily or weekly, latest or by date), optional play countsup to 200 entries1
isrc_lookupSpotify tracks for an ISRC1 ISRC1

Hosted server only (not in this package yet): two daily-history tools over the API's /history endpoints, collected once a day since 2026-11-26 for every track and artist on the Spotify charts of any market (guide):

ToolWhat it returnsBatchRequests
get_play_count_historyDaily lifetime play counts and the streams gained each day, over the last 1-366 days10 tracks1
get_artist_historyDaily monthly listeners, followers and world rank with the day-over-day change10 artists1

Outputs are compact JSON: ids, names, numbers and open.spotify.com URLs, with lists capped, so they fit in the model's context. Notes:

  • Spotify shows a play count of 0 for tracks with fewer than 1,000 plays.
  • Play counts are lifetime plays; chart streams are the plays in that chart's day or week.
  • Results may be cached by the API for a while (play counts about an hour).
  • Lyrics, audio downloads, webhooks, tracking and AI endpoints of the API are deliberately not exposed.

Privacy

The server only talks to the API you configure (RapidAPI's spotify81.p.rapidapi.com or spotify-proxy.checkleaked.cc). It sends your key in the x-rapidapi-key header, stores nothing on disk and has no telemetry. Requests carry a checkleaked-spotify-mcp/<version> user agent.

The hosted server passes each tool call to the same API with your key and keeps no conversation data. A key sent in the URL can appear in request logs like any URL, so prefer the Authorization header where your client supports it.

A call paid with x402 carries a signed USDC transfer from your wallet: the facilitator (PayAI) sees it to verify and settle it, and once settled it is public on Base like any on-chain transfer.

Development

git clone https://github.com/eduair94/spotify-data-mcp
cd spotify-data-mcp
python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytest                                          # offline tests (recorded API answers)
SPOTIFY_MCP_LIVE=1 SPOTIFY_API_KEY=... pytest -m live   # optional live smoke test

Built on the official MCP Python SDK and the checkleaked-spotify-api SDK. API reference: spotify-proxy.checkleaked.cc/docs. Service status: spotify.checkleaked.cc/status.

License

MIT

Frequently asked questions

What is Spotify Data MCP Server?

Spotify play counts, monthly listeners, charts, artist stats, albums, playlists and ISRC lookup.

How do I install Spotify Data MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Spotify Data MCP Server runs locally from the Docker image ghcr.io/eduair94/spotify-data-mcp:0.1.1 with the command docker run -i --rm ghcr.io/eduair94/spotify-data-mcp:0.1.1.

Is Spotify Data MCP Server free and open source?

Yes. Spotify Data MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Spotify Data MCP Server support remote (HTTP) connections?

Yes. Spotify Data MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does Spotify Data MCP Server provide?

Spotify Data MCP Server provides 13 tools, including get_album, get_artist_history, get_artist_insights, and get_artist_overview. See the full tool list for descriptions and parameters.

How is Spotify Data MCP Server's trust score calculated?

Spotify Data MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server