Spotify MCP Server
by 254binaryninja
The Spotify MCP Server is a Model Context Protocol (MCP) server designed to interact with the Spotify API. It provides tools to control Spotify playback, such as playing, pausing, skipping tracks, shuffling playlists, and more.
Last updated: N/A
What is Spotify MCP Server?
The Spotify MCP Server is a Model Context Protocol (MCP) server that allows you to control your Spotify playback through API calls. It leverages the mcp
framework and spotipy
library to provide a seamless interface for interacting with the Spotify API.
How to use Spotify MCP Server?
To use the Spotify MCP Server, you need to clone the repository, set up a virtual environment, install the dependencies using uv
, configure your Spotify credentials in a .env
file, and then run the server.py
script. Once the server is running, you can use the provided tools like play()
, pause()
, next_track()
, play_album()
, and play_track()
to control Spotify playback.
Key features of Spotify MCP Server
Play, pause, and skip tracks
Shuffle and repeat playlists
Play specific albums or tracks by name
Built-in tools for seamless Spotify playback control
Use cases of Spotify MCP Server
Automating music playback based on context
Integrating Spotify control into other applications
Creating custom music experiences
Controlling Spotify through voice assistants
FAQ from Spotify MCP Server
How do I set up the Spotify MCP Server?
How do I set up the Spotify MCP Server?
Follow the installation instructions in the README, ensuring you have Python 3.12+, a Spotify Developer account, and the necessary credentials in a .env
file.
What are the prerequisites for running the server?
What are the prerequisites for running the server?
You need Python 3.12 or higher, a Spotify Developer account with a registered application (client ID and secret), a .env
file containing your Spotify credentials, and a premium spotify account.
How do I control Spotify playback using the server?
How do I control Spotify playback using the server?
Use the provided tools like play()
, pause()
, next_track()
, play_album()
, and play_track()
through API calls to the server.
What do I do if Spotify authentication fails?
What do I do if Spotify authentication fails?
Ensure your SPOTIFY_CLIENT_ID
and SPOTIFY_CLIENT_SECRET
are correctly set in the .env
file.
What do I do if the server isn't starting?
What do I do if the server isn't starting?
Verify that the __name__
check in server.py
is correctly set to __server__
.