Back to Home
254binaryninja icon

spotify-mcp

Verified Safe

by 254binaryninja

Overview

An MCP server enabling AI agents to control Spotify playback and manage playlists through a set of defined tools.

Installation

Run Command
python server.py

Environment Variables

  • SPOTIFY_CLIENT_ID
  • SPOTIFY_CLIENT_SECRET
  • TRANSPORT

Security Notes

The server uses `spotipy` for Spotify API interaction, which is a well-established library. Sensitive credentials (client ID/secret) are loaded from environment variables via a `.env` file, preventing hardcoding. The OAuth flow uses `http://127.0.0.1:8888/callback` as a redirect URI, which is standard and safe for local development. The requested Spotify scopes are extensive (`user-read-playback-state`, `user-modify-playback-state`, `user-library-read`, `user-library-modify`, `playlist-modify-public`, `playlist-modify-private`), granting broad control over the user's Spotify account. This is necessary for its functionality but implies that a compromised server could perform significant actions on the user's behalf. However, the code itself does not contain obvious vulnerabilities like `eval`, `exec`, or direct shell command injection points.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassLow
Avg Tokens10
Stars1
Forks0
Last Update2025-11-24

Tags

SpotifyMCPAPI IntegrationPlayback ControlPython