Loading...

Spotify MCP server allows AI assistants to control Spotify playback, manage playlists, and access user data, requiring careful configuration and OAuth.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Spotify MCP server allows AI assistants to control Spotify playback, manage playlists, and access user data, requiring careful configuration and OAuth.
This server provides both read and write access to a user's Spotify account. While OAuth 2.0 provides a degree of security, the risk of compromised credentials and potential for unwanted modifications to playlists and playback exists. Use with caution and monitor API usage.
Performance depends on the Spotify API and network latency. Consider caching frequently accessed data to improve response times.
Spotify API usage is subject to rate limits. Excessive API calls may incur costs or lead to temporary suspension.
npm install
npm{
"mcpServers": {
"spotify": {
"command": "node",
"args": ["spotify-mcp-server/build/index.js"]
}
}
}searchSpotifySearches Spotify for tracks, albums, artists, or playlists based on a query.
Read-only operation that retrieves information from Spotify.
getNowPlayingRetrieves information about the currently playing track on Spotify.
Read-only operation that retrieves playback information.
getMyPlaylistsGets a list of the current user's playlists on Spotify.
Read-only operation that retrieves playlist information.
getPlaylistTracksGets a list of tracks in a specific Spotify playlist.
Read-only operation that retrieves track information from a playlist.
getRecentlyPlayedRetrieves a list of recently played tracks from Spotify.
Read-only operation that retrieves recently played track information.
getUsersSavedTracksGets a list of tracks saved in the user's 'Liked Songs' library.
Read-only operation that retrieves saved track information.
getQueueGets the currently playing track and upcoming items in the Spotify queue.
Read-only operation that retrieves queue information.
getAvailableDevicesGets information about the user's available Spotify Connect devices.
Read-only operation that retrieves device information.
playMusicStarts playing a track, album, artist, or playlist on Spotify.
Initiates playback, but does not modify data.
pausePlaybackPauses the currently playing track on Spotify.
Pauses playback, but does not modify data.
resumePlaybackResumes Spotify playback on the active device.
Resumes playback, but does not modify data.
skipToNextSkips to the next track in the current playback queue.
Skips to the next track, but does not modify data.
skipToPreviousSkips to the previous track in the current playback queue.
Skips to the previous track, but does not modify data.
createPlaylistCreates a new playlist on Spotify.
Creates a new playlist, but user controls the name and description.
addTracksToPlaylistAdds tracks to an existing Spotify playlist.
Adds tracks to a playlist, potentially modifying its content.
addToQueueAdds a track, album, artist or playlist to the current playback queue.
Adds content to the queue, but does not permanently modify playlists.
setVolumeSets the playback volume to a specific percentage.
Adjusts volume, but requires Spotify Premium.
adjustVolumeAdjusts the playback volume up or down by a relative amount.
Adjusts volume, but requires Spotify Premium.
getAlbumsGets detailed information about one or more albums by their Spotify IDs.
Read-only operation that retrieves album information.
getAlbumTracksGets tracks from a specific album with pagination support.
Read-only operation that retrieves track information from an album.
saveOrRemoveAlbumForUserSave or remove albums from the user's 'Your Music' library.
Modifies the user's saved albums, but requires explicit action.
checkUsersSavedAlbumsCheck if albums are saved in the user's 'Your Music' library.
Read-only operation that checks saved album status.
OAuth
playlist-read-privateplaylist-modify-publicplaylist-modify-privateuser-library-readuser-library-modifyuser-read-playback-stateuser-modify-playback-stateuser-read-recently-playeduser-read-currently-playinguser-read-playback-positionuser-top-readstreamingapp-remote-controlThis server provides both read and write access to a user's Spotify account. While OAuth 2.0 provides a degree of security, the risk of compromised credentials and potential for unwanted modifications to playlists and playback exists. Use with caution and monitor API usage.
The server operates with the permissions granted via OAuth. Exercise caution when granting broad permissions to AI agents.
Production Tip
Implement rate limiting and monitor API usage to prevent abuse and ensure stability.
Store your client ID and secret securely, and avoid committing them to version control. Use environment variables or a secure configuration management system.
Grant only the necessary permissions to minimize the risk of unauthorized access. Review the list of scopes carefully.
Implement rate limiting and monitor API usage to prevent excessive calls. Consider adding user authentication and authorization.
The provided documentation does not explicitly mention multi-user support. It likely requires modifications to handle multiple OAuth tokens.
Some features, such as volume control, require a Spotify Premium account.
Verify that your client ID, secret, and redirect URI are configured correctly. Ensure that the redirect URI matches the one configured in your Spotify developer application.
Consider creating a separate Spotify account for testing purposes to avoid unwanted changes to your primary account.