Back to Home
N1KH1LT0X1N icon

Spotify-MCP-Server

Verified Safe

by 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

Run Command
python -m spotify_mcp.spotify_server

Environment 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

Stats

Interest Score30
Security Score9
Cost ClassMedium
Avg Tokens250
Stars1
Forks0
Last Update2025-12-09

Tags

SpotifyMCPAIMusicPlaybackAPIAutomation