Spotify
v0.9.2MCP server connecting LLMs to Spotify, with smart-batching and large-playlist tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_me Spotify Profile
Get the signed-in user's Spotify profile. email, country and product come back empty on newer Spotify apps rather than erroring.
get_playback_state Now Playing
Get the current playback state: track, device, progress, shuffle and repeat.
control_playback Control Playback
Control Spotify playback. Requires Premium and an active device. Args: action: 'play', 'pause', 'next', 'previous', 'seek', 'volume', 'shuffle' or 'repeat' track_ids: Tracks or episodes to play (action='play'; ignored when context_uri is set). Bare IDs are tracks; pass spotify:episode: URIs or episode share URLs for podcast episodes. context_uri: Album, playlist, artist or show URI to play (action='play') position_ms: Required for action='seek' volume_percent: 0-100, required for action='volume' state: 'on'/'off' for shuffle; 'track'/'context'/'off' for…
| Parameter | Type | Description |
|---|---|---|
action * | string | |
context_uri | ||
device_id | ||
position_ms | ||
state | ||
track_ids | ||
volume_percent |
list_devices Available Devices
List the user's available Spotify devices. Pass a device id to transfer_playback to make it active.
transfer_playback Switch Device
Move playback to a different device (see list_devices). play=False transfers without starting playback.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | |
play | boolean |
search_music Search Spotify
Search Spotify for tracks, albums, artists, or playlists. Args: qtype: 'track', 'album', 'artist' or 'playlist' limit: Results per page, 1-50. Restricted apps are capped at 10 per page; a larger limit is retried at the cap. The returned `limit` is what was served; use `offset` to go deeper. year: A year ('2024'); year_range takes a span ('2020-2024') genre: Genre filter (e.g. 'electronic') year, year_range, genre, artist and album become Spotify search filters: query='love', year='2024', genre='pop' searches 'love year:2024 genre:pop'.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
album | ||
artist | ||
genre | ||
limit | integer | |
offset | integer | |
qtype | string | |
year | ||
year_range |
add_to_queue Add to Queue
Add a track or podcast episode to the playback queue. Args: track_id: Track ID, or a spotify:track:/spotify:episode: URI or open.spotify.com URL. A bare ID is taken as a track.
| Parameter | Type | Description |
|---|---|---|
track_id * | string |
get_queue Get Queue
Get the currently playing item and the upcoming queue.
get_tracks Get Tracks
Get one or more Spotify tracks (up to 50 IDs) in one request. Where Spotify withholds the batch endpoint from an app, this falls back to one request per track with the same result.
| Parameter | Type | Description |
|---|---|---|
track_ids * |
get_artist Get Artist
Get details for one or more Spotify artists, batched into a single request. Args: artist_ids: One artist ID/URI, or a list of up to 50 `artists` follows the requested order. `top_tracks` is filled only when a single artist was requested, and is empty rather than an error when Spotify withholds that endpoint.
| Parameter | Type | Description |
|---|---|---|
artist_ids * |
get_playlist Get Playlist
Get a playlist's metadata and total_tracks; get_playlist_tracks reads tracks.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string |
create_playlist Create Playlist
Create a new Spotify playlist. It is private unless public=True.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
description | string | |
public | boolean |
add_tracks_to_playlist Add Tracks to Playlist
Add tracks or podcast episodes to a playlist. Args: track_uris: Track or episode URIs/URLs (up to 100). Bare IDs are tracks; pass spotify:episode: URIs or episode URLs for episodes.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | |
track_uris * | array |
list_playlists List My Playlists
Get the current user's playlists. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
get_playlist_tracks Get Playlist Tracks
Get a range of a playlist's tracks, up to 1000 per call. Args: limit: Max tracks to return; omit for as many as one call allows (1000) offset: Zero-based position to start from Keep reading by passing the returned `next_offset` as `offset` until it is null. `truncated` is true when the 1000-track cap cut the read short.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | |
limit | ||
offset | integer |
remove_tracks_from_playlist Remove Tracks from Playlist
Remove tracks or podcast episodes from a playlist. Args: track_uris: Track or episode URIs/URLs to remove. Bare IDs are tracks.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | |
track_uris * | array |
update_playlist_details Edit Playlist Details
Change a playlist's name, description or visibility; omitted fields stay.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | |
description | ||
name | ||
public |
reorder_playlist Reorder Playlist
Move a contiguous block of tracks to a new position within a playlist. Args: range_start: Zero-based position of the first track to move insert_before: Zero-based position to insert the moved block before. Pass the playlist's total track count to move the block to the end. range_length: Number of consecutive tracks to move snapshot_id: Optional playlist snapshot ID to guard against concurrent edits Returns the new snapshot_id. Example: move the first 3 tracks to just before position 10 with range_start=0, range_length=3, insert_before=10.
| Parameter | Type | Description |
|---|---|---|
insert_before * | integer | |
playlist_id * | string | |
range_start * | integer | |
range_length | integer | |
snapshot_id |
get_album Get Album
Get details for one or more Spotify albums, batched into a single request. Args: album_ids: One album ID/URI, or a list of up to 20 (Spotify's album cap) `albums` follows the requested order. `tracks` holds the album's track list only when a single album was requested.
| Parameter | Type | Description |
|---|---|---|
album_ids * |
get_saved_tracks Get Liked Songs
Get the user's Liked Songs, with added_at. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
save_tracks Like Tracks
Save (like) tracks to the user's library. Args: track_ids: Track IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
track_ids * | array |
remove_saved_tracks Unlike Tracks
Remove tracks from the user's saved (liked) tracks. Args: track_ids: Track IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
track_ids * | array |
check_saved_tracks Check Liked Songs
Check which tracks are already liked, without paging the whole library. Up to 50 tracks per tool call, split into upstream chunks of at most 40. Use this before save_tracks rather than paging through get_saved_tracks. Args: track_ids: Track IDs or URIs (up to 50) Returns: MembershipStatus.results maps each Spotify track id to true if liked
| Parameter | Type | Description |
|---|---|---|
track_ids * | array |
check_saved_albums Check Saved Albums
Check which albums are already saved to the library. Up to 20 albums per tool call, preserving this tool's existing album cap. Args: album_ids: Album IDs or URIs (up to 20) Returns: MembershipStatus.results maps each Spotify album id to true if saved
| Parameter | Type | Description |
|---|---|---|
album_ids * | array |
check_following_artists Check Followed Artists
Check up to 50 artist follows in upstream chunks of at most 40. Uses artist URIs on the consolidated library route, with a legacy fallback. Requires user-follow-read; reauthorize if your existing grant lacks it. Args: artist_ids: Artist IDs or URIs (up to 50) Returns: MembershipStatus.results maps each Spotify artist id to true if followed
| Parameter | Type | Description |
|---|---|---|
artist_ids * | array |
get_saved_albums Get Saved Albums
Get albums saved in the user's library, with added_at. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
save_albums Save Albums
Save albums to the user's library. Args: album_ids: Album IDs or URIs (up to 20)
| Parameter | Type | Description |
|---|---|---|
album_ids * | array |
remove_saved_albums Remove Saved Albums
Remove albums from the user's library. Args: album_ids: Album IDs or URIs (up to 20)
| Parameter | Type | Description |
|---|---|---|
album_ids * | array |
get_followed_artists Get Followed Artists
Get the artists the user follows, 1-50 per page (limit). Paged by cursor, not offset: pass the returned `after` back for the next page. It is null on the last page.
| Parameter | Type | Description |
|---|---|---|
after | ||
limit | integer |
follow_artists Follow Artists
Follow artists. Requires user-follow-modify; reauthorize if it is missing. Args: artist_ids: Artist IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
artist_ids * | array |
unfollow_artists Unfollow Artists
Unfollow artists. Requires user-follow-modify; reauthorize if it is missing. Args: artist_ids: Artist IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
artist_ids * | array |
follow_playlist Follow Playlist
Follow (save) a playlist so it appears in the user's library. Args: playlist_id: Playlist ID, URI or open.spotify.com URL
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string |
unfollow_playlist Unfollow Playlist
Unfollow a playlist, removing it from the user's library. For playlists the user owns this is how Spotify deletes them — there is no separate delete endpoint. Args: playlist_id: Playlist ID or URI
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string |
get_saved_shows Get Saved Shows
Get podcast shows saved in the user's library. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
save_shows Save Shows
Save (follow) podcast shows to the user's library. Args: show_ids: Show IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
show_ids * | array |
remove_saved_shows Remove Saved Shows
Remove podcast shows from the user's library. Args: show_ids: Show IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
show_ids * | array |
check_saved_shows Check Saved Shows
Check which podcast shows are already saved, in upstream chunks of 40. Args: show_ids: Show IDs or URIs (up to 50) Returns: MembershipStatus.results maps each Spotify show id to true if saved
| Parameter | Type | Description |
|---|---|---|
show_ids * | array |
check_saved_episodes Check Saved Episodes
Check which podcast episodes are already saved, in upstream chunks of 40. Args: episode_ids: Episode IDs or URIs (up to 50) Returns: MembershipStatus.results maps each Spotify episode id to true if saved
| Parameter | Type | Description |
|---|---|---|
episode_ids * | array |
get_show_episodes Get Show Episodes
Get a podcast show's episodes, with the user's resume point for each. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
show_id * | string | |
limit | integer | |
offset | integer |
get_saved_episodes Get Saved Episodes
Get podcast episodes saved in the user's library. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
save_episodes Save Episodes
Save podcast episodes to the user's library. Args: episode_ids: Episode IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
episode_ids * | array |
remove_saved_episodes Remove Saved Episodes
Remove podcast episodes from the user's library. Args: episode_ids: Episode IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
episode_ids * | array |
get_saved_audiobooks Get Saved Audiobooks
Get audiobooks saved in the user's library. limit is 1-50 per page; page with offset.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
check_saved_audiobooks Check Saved Audiobooks
Check which audiobooks are already saved, in upstream chunks of 40. Args: audiobook_ids: Audiobook IDs or URIs (up to 50) Returns: MembershipStatus.results maps each Spotify audiobook id to true if saved
| Parameter | Type | Description |
|---|---|---|
audiobook_ids * | array |
save_audiobooks Save Audiobooks
Save audiobooks to the user's library. Args: audiobook_ids: Audiobook IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
audiobook_ids * | array |
remove_saved_audiobooks Remove Saved Audiobooks
Remove audiobooks from the user's library. Args: audiobook_ids: Audiobook IDs or URIs (up to 50)
| Parameter | Type | Description |
|---|---|---|
audiobook_ids * | array |
get_recently_played Recently Played
Get recently played tracks with played_at, most recent first (limit 1-50).
| Parameter | Type | Description |
|---|---|---|
limit | integer |
get_top_items Top Artists and Tracks
Get the user's top artists or tracks over a time range. This remains useful when recommendations or related artists are unavailable to the app. Spotify's policy also restricts analysis and AI ingestion. Args: item_type: 'tracks' or 'artists' time_range: 'short_term' (~4 weeks), 'medium_term' (~6 months) or 'long_term' limit: 1-50
| Parameter | Type | Description |
|---|---|---|
item_type | string | |
limit | integer | |
time_range | string |