spotify-soundtrack-mcp
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
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/callbackas 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
For web/remote SSE transport:
spotify-soundtrack-mcp
# 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"
}
}
}
}
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 |
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) |
Links
Metadata
Release files for spotify-soundtrack-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spotify_soundtrack_mcp-1.0.0.tar.gz | 94.5 kB | Without provenance | Details for spotify_soundtrack_mcp-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spotify_soundtrack_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for spotify_soundtrack_mcp-1.0.0-py3-none-any.whl |
Total release size: 209.8 kB
Release files / spotify_soundtrack_mcp-1.0.0.tar.gz
| Download URL | spotify_soundtrack_mcp-1.0.0.tar.gz |
|---|---|
| Size | 94.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17285da40f7df6f95177a9073eb61a2658a5c3856acc05ea3f37b46d68ae993e
|
|
BLAKE2b-256 checksum How to use checksums |
4b3b40446a088d0d30b6258a0998b95fa58d69eb0c9176c7816026f7f25b8311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / spotify_soundtrack_mcp-1.0.0-py3-none-any.whl
| Download URL | spotify_soundtrack_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 115.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3576ee255c838991d1cf8de7a915cadfd65bec1d844af64e1a02a25696f9a7d6
|
|
BLAKE2b-256 checksum How to use checksums |
a3b630e21a7da199842672510e319f15fcfa0cbb3cb9e487f95bea0fa12e06c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for spotify-soundtrack-mcp 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.