Spotify Soundtrack MCP

v1.1.0
io.github.Chiru144/spotify-soundtrack-mcp Checked 4 days ago Published 1 month ago

Spotify + TMDB tools: movie soundtrack playlists, playlist curation, taste stats and playback.

Values you need

VariableWhat it is
SPOTIPY_CLIENT_IDrequired Client ID of your Spotify app (https://developer.spotify.com/dashboard). Sign-in uses PKCE, so no client secret is needed.
SPOTIPY_REDIRECT_URIoptional Redirect URI registered for your Spotify app. Default: http://127.0.0.1:8888/callback
TMDB_API_KEYoptional secret TMDB v3 API key for movie, cast and filmography lookups. Set this or TMDB_READ_ACCESS_TOKEN.
TMDB_READ_ACCESS_TOKENoptional secret TMDB v4 Read Access Token, an alternative to TMDB_API_KEY.
SPOTIFY_TOOLSETSoptional Comma-separated toolsets to load: core, playback, playlists, search, taste, library, browse or all. Default: core

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add spotify-soundtrack-mcp -e 'SPOTIPY_CLIENT_ID=<SPOTIPY_CLIENT_ID>' -- uvx --from spotify-soundtrack-mcp==1.1.0 spotify-mcp --transport stdio
Add to claude_desktop_config.json
{
  "mcpServers": {
    "spotify-soundtrack-mcp": {
      "args": [
        "--from",
        "spotify-soundtrack-mcp==1.1.0",
        "spotify-mcp",
        "--transport",
        "stdio"
      ],
      "command": "uvx",
      "env": {
        "SPOTIPY_CLIENT_ID": "<SPOTIPY_CLIENT_ID>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "spotify-soundtrack-mcp": {
      "args": [
        "--from",
        "spotify-soundtrack-mcp==1.1.0",
        "spotify-mcp",
        "--transport",
        "stdio"
      ],
      "command": "uvx",
      "env": {
        "SPOTIPY_CLIENT_ID": "<SPOTIPY_CLIENT_ID>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SPOTIPY_CLIENT_ID",
      "id": "spotipy-client-id",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "spotify-soundtrack-mcp": {
      "args": [
        "--from",
        "spotify-soundtrack-mcp==1.1.0",
        "spotify-mcp",
        "--transport",
        "stdio"
      ],
      "command": "uvx",
      "env": {
        "SPOTIPY_CLIENT_ID": "${input:spotipy-client-id}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.spotify-soundtrack-mcp]
command = "uvx"
args = ["--from", "spotify-soundtrack-mcp==1.1.0", "spotify-mcp", "--transport", "stdio"]
env = { "SPOTIPY_CLIENT_ID" = "<SPOTIPY_CLIENT_ID>" }

For AI agents

  1. Ask the user for: SPOTIPY_CLIENT_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: create_actor_playlist, create_playlist, add_tracks_to_playlist, dedupe_playlist, add_movie_songs_to_playlist, get_user_playlists, reorder_playlist_by_audio_features, get_playlist_tracks, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json