mcp-spotify-player
by vsaez·★ 19·Score 40
An MCP server that integrates Spotify control with AI assistants for natural music commands.
Overview
MCP Spotify Player is a Python-based MCP server that enables AI assistants to control Spotify through natural language commands. It offers comprehensive functionality including playback control, search capabilities, device management, and playlist operations. The server implements OAuth authentication for secure Spotify API access and provides a modular architecture for extensibility.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you want to control Spotify directly through your AI assistant without switching apps, especially if you're already using Claude Desktop or JetBrains IDEs with GitHub Copilot.
When NOT to choose this
Don't choose this if you don't have Spotify Premium, if you're using a different AI assistant that doesn't support MCP, or if you prefer a dedicated music player interface over command-line control.
Tools this server exposes
12 tools extracted from the READMEplay_musicPlay music by query
pause_musicPause playback
skip_nextSkip to next track
skip_previousSkip to previous track
set_volumeSet playback volume (0-100)
search_musicSearch for tracks, artists, or albums
get_playlistsList user playlists
create_playlistCreate a new playlist
add_tracks_to_playlistAdd tracks to a playlist
get_current_playingGet the currently playing track
get_devicesList available playback devices
authAuthenticate with Spotify
Comparable tools
Installation
Installation
- Clone the repository:
git clone <repository-url>
cd mcp-spotify-player- Install the package:
pip install .- Set up environment variables:
cp env.example .envEdit the .env file with your Spotify credentials.
- Configure Claude Desktop:
Add to claude_desktop_config.json:
{
"mcpServers": {
"spotify-player": {
"command": "/path/to/python",
"args": [
"-m",
"mcp_spotify_player"
],
"cwd": "/path/to/cloned/repo/mcp-spotify-player",
"env": {
"SPOTIFY_CLIENT_ID": "your_client_id",
"SPOTIFY_CLIENT_SECRET": "your_client_secret",
"SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8000/auth/callback"
}
}
}
}FAQ
- Do I need a Spotify Premium account?
- Yes, a Spotify Premium account is recommended for the best experience, especially for features like playback control.
- How do I get Spotify API credentials?
- Create an app on the Spotify Developer Dashboard to get your CLIENT_ID and CLIENT_SECRET.
Compare mcp-spotify-player with
Last updated · Auto-generated from public README + GitHub signals.