Skip to main content

spotify-soundtrack-mcp

MCP Registry PyPI Python License: MIT

115 FastMCP Tools for Spotify & TMDB — filmography playlists, smart playlist curation, a local library cache, vibe/radio/era/time-capsule playlist generators, taste analytics, Spotify Connect hardware control, and a built-in Soundtrack Curator & Staging Studio web UI.


Installation

pip install spotify-soundtrack-mcp
# with the Soundtrack Studio web UI:
pip install "spotify-soundtrack-mcp[web]"

Or run it without installing, using uv:

uvx spotify-soundtrack-mcp --transport stdio

This server is listed in the official MCP Registry as io.github.Chiru144/spotify-soundtrack-mcp, so MCP clients that browse the registry can install it directly.


Quick Start

1. Configure credentials

Create a .env file in your working directory:

# Spotify Developer App credentials (PKCE — no secret needed!)
# Get yours at https://developer.spotify.com/dashboard
SPOTIPY_CLIENT_ID=your_spotify_client_id_here
SPOTIPY_REDIRECT_URI=http://127.0.0.1:8888/callback

# TMDB (optional, enables cinema/filmography features)
# Get from https://www.themoviedb.org/settings/api
TMDB_API_KEY=your_tmdb_api_key_here
# OR: TMDB_READ_ACCESS_TOKEN=your_tmdb_read_access_token_here

Important: In your Spotify Developer Dashboard, add http://127.0.0.1:8888/callback as a Redirect URI.

2. Authenticate

spotify-mcp-auth

This opens your browser for Spotify login and saves the token locally.

3. Run

For Claude Desktop / Cursor (stdio transport):

spotify-mcp
# With a specific toolset (recommended for token efficiency):
spotify-mcp --toolsets=core

Also stdio, through the package-named command (what MCP Registry clients run):

spotify-soundtrack-mcp --transport stdio

For web/remote SSE transport:

spotify-soundtrack-mcp            # same as --transport sse
# Custom host/port via env:
HOST=0.0.0.0 PORT=8080 spotify-soundtrack-mcp

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "spotify": {
      "command": "spotify-mcp",
      "args": ["--toolsets=core"],
      "env": {
        "SPOTIPY_CLIENT_ID": "your_client_id",
        "TMDB_API_KEY": "your_tmdb_key"
      }
    }
  }
}

Or let uv fetch and run it:

{
  "mcpServers": {
    "spotify": {
      "command": "uvx",
      "args": ["spotify-soundtrack-mcp", "--transport", "stdio", "--toolsets=core"],
      "env": {
        "SPOTIPY_CLIENT_ID": "your_client_id",
        "TMDB_API_KEY": "your_tmdb_key"
      }
    }
  }
}

Toolsets

Toolset Tools Best For
core (default) 16 Filmography curation, movie soundtracks, search, dedup
playback 31 DJ controls, device switching, queue management
playlists 37 Advanced playlist diff, merging, splitting, vibe/radio/era/time-capsule generators
search 16 Music discovery, mood/genre search, TMDB lookup
taste 14 Top tracks, listening patterns, taste profile
library 11 Saved tracks, albums, local library cache (sync, stats, query)
browse 5 Artist, album, track, your profile lookup
all 115 Full access to every tool
spotify-mcp --toolsets=core,playback
spotify-mcp --toolsets=all

Environment Variables

Variable Required Description
SPOTIPY_CLIENT_ID ✅ Spotify app Client ID
SPOTIPY_REDIRECT_URI ✅ Must match Spotify dashboard (default: http://127.0.0.1:8888/callback)
TMDB_API_KEY Optional TMDB v3 API key
TMDB_READ_ACCESS_TOKEN Optional TMDB v4 Bearer token (alternative to API key)
SPOTIFY_TOOLSETS Optional Comma-separated toolset list (e.g. core,playback, or all for every tool; default core)
SPOTIFY_MCP_CACHE_PATH Optional Spotify token cache file, shared with spotify-mcp-web (default ~/.spotify-mcp/.spotipyoauthcache)
OPEN_BROWSER Optional Set to true to auto-open the Soundtrack Studio UI
MCP_TRANSPORT Optional stdio or sse: default transport for spotify-soundtrack-mcp when --transport is not given (default sse)
HOST Optional Server bind host (default 0.0.0.0, for spotify-soundtrack-mcp)
PORT Optional Server bind port (default 8080, for spotify-soundtrack-mcp)

Metadata

Release files for spotify-soundtrack-mcp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spotify-soundtrack-mcp 1.1.0
File Size Uploaded Provenance Actions
spotify_soundtrack_mcp-1.1.0.tar.gz 95.1 kB With provenance Details for spotify_soundtrack_mcp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spotify-soundtrack-mcp 1.1.0
File Interpreter ABI Platform Actions
spotify_soundtrack_mcp-1.1.0-py3-none-any.whl Python 3 none any Details for spotify_soundtrack_mcp-1.1.0-py3-none-any.whl

Total release size: 211.6 kB

Release files / spotify_soundtrack_mcp-1.1.0.tar.gz

Download URL spotify_soundtrack_mcp-1.1.0.tar.gz
Size 95.1 kB
Tags Source
SHA-256 checksum
How to use checksums
697ef991d22978f0222c6627cf54fca84a0df7494bedc4b52f80762f5057bda1
BLAKE2b-256 checksum
How to use checksums
b7e93d4b6db5f9a0db239d1210daab2d288d5bf1e6fa19510e51cd748c192f3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / spotify_soundtrack_mcp-1.1.0-py3-none-any.whl

Download URL spotify_soundtrack_mcp-1.1.0-py3-none-any.whl
Size 116.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b77435af75bffa5a86b13ddb228b641734e6a427b343052564a66f6c1e3e61b
BLAKE2b-256 checksum
How to use checksums
79e08b1dfb1bf240c5de3c4e28bed36d5197ede01ed61a873da377177ca90100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for spotify-soundtrack-mcp 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spotify_soundtrack_mcp-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page