Spotify-MCP-Server
Verified Safeby N1KH1LT0X1N
Overview
Enables AI assistants to control Spotify playback, manage playlists, discover music, and interact with the user's library through a Model Context Protocol (MCP) server.
Installation
python -m spotify_mcp.spotify_serverEnvironment Variables
- SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET
- SPOTIFY_REDIRECT_URI
- CACHE_BACKEND
- REDIS_URL
- CACHE_MAX_SIZE
- METRICS_ENABLED
- METRICS_PORT
- LOG_LEVEL
- LOG_FORMAT
- LOG_FILE
- ENVIRONMENT
- DEBUG
Security Notes
The server implements robust OAuth 2.0 with PKCE for authentication and automatically refreshes tokens, storing credentials in environment variables or an optional system keychain (`keyring`). A dedicated `SecurityManager` handles token rotation tracking and audit logging. Default Grafana credentials (`admin`/`admin`) are provided in the documentation and docker-compose, but a strong warning is given to change them in production. No `eval` or obvious malicious patterns were found.
Similar Servers
spotify-mcp-server
Enables AI assistants to control Spotify playback and manage playlists via the Model Context Protocol (MCP).
spotify-streamable-mcp-server
Provides an LLM-friendly interface to control Spotify playback, search music, and manage playlists/saved songs, enabling voice control and smart-home automations.
spotify-mcp
An MCP server enabling AI agents to control Spotify playback and manage playlists through a set of defined tools.
netease-mcp-server
Enables AI agents to control NetEase Cloud Music desktop application, manage music playback, and access user data like playlists and recommendations via its OpenAPI.