spotify
Spotify Web API — search music, control playback, manage playlists and library
Use this API
CLI (one command)
agentbridge chat spotifySDK / Agents
fetch("/api/spotify/manifest")MCP (Claude Desktop / Cursor / Windsurf)
{
"mcpServers": {
"spotify": {
"command": "npx",
"args": ["@agentbridgeai/mcp", "--api", "spotify"]
}
}
}Add to ~/.claude/claude_desktop_config.json or Cursor/Windsurf MCP settings.
Actions (25)
/meget_current_user
Get the current user's Spotify profile
/searchsearch
Search for tracks, artists, albums, or playlists on Spotify
Parameters
qstringrequiredSearch querytypestringrequiredComma-separated list: track, artist, album, playlistlimitintegerMax results (1-50)offsetintegerResult offset for pagination/me/top/tracksget_top_tracks
Get the current user's top tracks
Parameters
time_rangestringOver what time frame: short_term (4 weeks), medium_term (6 months), long_term (all time)limitintegerMax results (1-50)/me/top/artistsget_top_artists
Get the current user's top artists
Parameters
time_rangestringOver what time frame: short_term, medium_term, long_termlimitintegerMax results (1-50)/me/playlistsget_my_playlists
Get a list of the current user's playlists
Parameters
limitintegerMax results (1-50)offsetintegerResult offset/me/playlistscreate_playlist
Create a playlist for the current Spotify user
Parameters
namestringrequiredPlaylist namedescriptionstringPlaylist descriptionpublicbooleanWhether the playlist is public/playlists/{playlist_id}get_playlist
Get a Spotify playlist by ID
Parameters
playlist_idstringrequiredThe Spotify playlist ID/playlists/{playlist_id}/itemsget_playlist_tracks
Get tracks in a Spotify playlist
Parameters
playlist_idstringrequiredThe Spotify playlist IDlimitintegerMax results (1-100)offsetintegerResult offset/playlists/{playlist_id}/itemsadd_tracks_to_playlist
Add one or more tracks to a playlist
Parameters
playlist_idstringrequiredThe Spotify playlist IDurisarrayrequiredArray of Spotify track URIs (e.g. spotify:track:4iV5W9uYEdYUVa79Axb7Rh)positionintegerPosition to insert tracks (0-based)/playlists/{playlist_id}/itemsremove_tracks_from_playlist
Remove one or more tracks from a playlist
Parameters
playlist_idstringrequiredThe Spotify playlist IDitemsarrayrequiredArray of objects with uri field (e.g. [{uri: "spotify:track:..."}])/me/playerget_playback_state
Get the current user's playback state (device, track, progress, etc.)
/me/player/playstart_playback
Start or resume playback on a device
Parameters
device_idstringDevice ID to play oncontext_uristringSpotify URI of context to play (album, artist, playlist)urisarrayArray of Spotify track URIs to playoffsetobjectWhere in context to start (e.g. {position: 0})/me/player/pausepause_playback
Pause playback on a device
Parameters
device_idstringDevice ID to pause on/me/player/nextskip_next
Skip to the next track
Parameters
device_idstringDevice ID/me/player/previousskip_previous
Skip to the previous track
Parameters
device_idstringDevice ID/me/player/currently-playingget_currently_playing
Get the track currently playing on the user's Spotify
/me/player/recently-playedget_recently_played
Get the current user's recently played tracks
Parameters
limitintegerMax results (1-50)/me/tracksget_saved_tracks
Get the current user's saved (liked) tracks
Parameters
limitintegerMax results (1-50)offsetintegerResult offset/me/librarysave_tracks
Save (like) one or more tracks to the user's library
Parameters
urisstringrequiredComma-separated list of Spotify track URIs/me/libraryremove_saved_tracks
Remove one or more tracks from the user's saved library
Parameters
urisstringrequiredComma-separated list of Spotify track URIs/albums/{id}get_album
Get a Spotify album by ID
Parameters
idstringrequiredThe Spotify album ID/tracks/{id}get_track
Get a Spotify track by ID
Parameters
idstringrequiredThe Spotify track ID/artists/{id}get_artist
Get a Spotify artist by ID
Parameters
idstringrequiredThe Spotify artist ID/artists/{id}/top-tracksget_artist_top_tracks
Get an artist's top tracks
Parameters
idstringrequiredThe Spotify artist IDmarketstringISO 3166-1 alpha-2 country code (e.g. US)/recommendationsget_recommendations
Get track recommendations based on seed artists, tracks, or genres
Parameters
seed_artistsstringComma-separated artist IDs (up to 5 total seeds)seed_tracksstringComma-separated track IDs (up to 5 total seeds)seed_genresstringComma-separated genres (up to 5 total seeds)limitintegerMax results (1-100)