spotify-mcp-server is a lightweight Model Context Protocol (MCP) server whose goal is to let AI assistants such as Cursor and Claude control Spotify playback and manage playlists.
Purpose This project wraps Spotify's playback control and playlist management capabilities as MCP tools, enabling AI assistants to perform operations such as searching, playing, skipping tracks, viewing the queue, and creating playlists through natural language instructions. The example interactions given in the material include: "Play Elvis's first song", "Create a Taylor Swift / Slipknot fusion playlist", "Copy all the techno tracks from my workout playlist to my work playlist", "Turn the volume down a bit".
Main capabilities The project is organized by tool category, including Read Operations, Album Operations, Play / Create Operations, Playlist Operations. The tools explicitly listed in the material are as follows:
Read category:
- searchSpotify: Search for tracks, albums, artists, or playlists on Spotify. Parameters include query (search term), type (track, album, artist, playlist), limit (1-10, default 10), offset (default 0). Returns the ID, name, and additional information of matching items.
- getNowPlaying: Get information about the currently playing track, including device and volume information. No parameters. Returns track name, artist, album, playback progress, duration, playback status, device information, volume, and shuffle/repeat status.
- getMyPlaylists: Get the current user's playlists. Parameters limit (default 20), offset (default 0). Returns the playlist ID, name, track count, and public status.
- getPlaylistTracks: Get the tracks in a specified playlist. Parameters playlistId, limit (default 100), offset (default 0). Returns the track ID, name, artist, album, duration, and date added.
- getRecentlyPlayed: Get recently played tracks. Parameter limit (optional). If tracks are found, returns a formatted list; otherwise returns a prompt message.
- getUsersSavedTracks: Get tracks saved in the user's "Liked Songs". Parameters limit (1-50, default 50), offset (default 0). Returns track name, artist, duration, track ID, and time added, and displays pagination information.
- getQueue: Get the currently playing track and the items queued to play next. Parameter limit (1-50, default 10).
- getAvailableDevices: Get the user's available Spotify Connect devices. No parameters. Returns device name, type, active status, volume, and device ID.
- getFollowedArtists: Get the artists the current user follows. Parameters limit (1-50, default 20), after (the last artist ID from the previous page as a cursor). Returns artist names and IDs, and when Spotify provides it also popularity and genres, and returns the next-page cursor when there are more results.
Play and create category:
- playMusic: Start playing a track, album, artist, or playlist. Parameters uri (overrides type and id), type, id, deviceId.
- pausePlayback: Pause the current playback. Parameter deviceId (optional).
- resumePlayback: Resume playback on the active device. Parameter deviceId (optional).
- skipToNext: Skip to the next track in the queue. Parameter deviceId (optional).
- skipToPrevious: Skip to the previous track in the queue. Parameter deviceId (optional).
- createPlaylist: Create a new playlist. Parameters name, description (optional), public (optional, default false). Returns the ID and URL of the new playlist.
- addTracksToPlaylist: Add tracks to an existing Spotify playlist (the material is truncated here and does not provide complete parameter descriptions).
- removeUsersSavedTracks: Remove one or more tracks from the user's "Liked Songs"Tracks (up to 40 per request). Parameter trackIds (array, up to 40).
Usage According to the information provided, the setup process includes: Prerequisites, Installation, Creating a Spotify Developer Application, Spotify API Configuration, Authentication Process. Integration methods include: integration with Claude Desktop, Cursor, and VsCode (Cline); Streamable HTTP; OAuth (MCPHub and other OAuth-supporting clients); Docker (recommended for MCPHub). The information does not provide specific installation commands, configuration code, or authentication step details.
Use cases Suitable for users who want to control Spotify playback, query playback status, and manage playlists and "Liked Songs" through an AI assistant using natural language, and also suitable for scenarios where Spotify capabilities need to be connected to MCP-supporting clients (such as Claude Desktop, Cursor, VS Code/Cline, MCPHub).
Limitations The information does not explain fees, pricing, platform support scope, performance, or effectiveness. The parameter descriptions of some tools (such as addTracksToPlaylist) are incomplete in the information. Before use, you need to create a Spotify developer application and complete API configuration and authentication.