markswendsen-code avatar

Spotify

markswendsen-code/mcp-spotify

This connects Claude to the Spotify Web API with full OAuth 2.0 PKCE flow and automatic token refresh. You get search across tracks, artists, albums, and playlists, plus complete playback control: play, pause, skip, volume adjustment, and device switching via Spotify Connect. It also handles playlist management, letting you create, view, and edit playlists programmatically. Setup requires a Spotify Developer app with localhost callback, then one browser authorization that persists tokens locally. Note that playback control and volume require Spotify Premium. Built by Strider Labs, this is the server to reach for when you want Claude to DJ or automate your Spotify workflows without manual API wrangling.

tools
15
transport
STDIO
last updated
Mar 15, 2026

Tools

15 tools

Public tool metadata for what this MCP can expose to an agent.

track.statsGet stream count and metadata for a Spotify track. Returns title, artist, total play count, duration in ms, content rating, track number, album info, and artist info.1 params

Get stream count and metadata for a Spotify track. Returns title, artist, total play count, duration in ms, content rating, track number, album info, and artist info.

Parameters* required
track_idstring
Spotify ID (22 alphanumeric characters)
album.statsGet album statistics with per-track stream counts. Returns album name, type, release date, label, copyright, cover art, per-track stream counts and durations, and related albums.1 params

Get album statistics with per-track stream counts. Returns album name, type, release date, label, copyright, cover art, per-track stream counts and durations, and related albums.

Parameters* required
album_idstring
Spotify ID (22 alphanumeric characters)
artist.statsGet artist statistics including monthly listeners and top tracks. Returns monthly listeners, follower count, world rank, top 5 listener cities, top 10 tracks with stream counts, biography, external links, albums, singles, and verified status.1 params

Get artist statistics including monthly listeners and top tracks. Returns monthly listeners, follower count, world rank, top 5 listener cities, top 10 tracks with stream counts, biography, external links, albums, singles, and verified status.

Parameters* required
artist_idstring
Spotify ID (22 alphanumeric characters)
searchSearch Spotify for artists, albums, tracks, and playlists. Returns matching results across all types. Track results include current stream counts.1 params

Search Spotify for artists, albums, tracks, and playlists. Returns matching results across all types. Track results include current stream counts.

Parameters* required
qstring
Search query, e.g. 'Arctic Monkeys'
artist.getGet metadata for one or more artists in a single request. Returns artist names, images, genres, and follower counts.1 params

Get metadata for one or more artists in a single request. Returns artist names, images, genres, and follower counts.

Parameters* required
idsstring
Comma-separated Spotify IDs (22 alphanumeric characters each)
artist.overviewGet overview data for an artist. Returns detailed artist profile including biography, images, top tracks, discography summary, and related artists.1 params

Get overview data for an artist. Returns detailed artist profile including biography, images, top tracks, discography summary, and related artists.

Parameters* required
artist_idstring
Spotify ID (22 alphanumeric characters)
artist.albumsGet all albums in an artist's discography, paginated. Returns album names, IDs, types, release dates, and cover art.3 params

Get all albums in an artist's discography, paginated. Returns album names, IDs, types, release dates, and cover art.

Parameters* required
artist_idstring
Spotify ID (22 alphanumeric characters)
limitinteger
Max results to returndefault: 100
offsetinteger
Pagination offsetdefault: 0
artist.singlesGet all singles in an artist's discography, paginated. Returns single names, IDs, release dates, and cover art.3 params

Get all singles in an artist's discography, paginated. Returns single names, IDs, release dates, and cover art.

Parameters* required
artist_idstring
Spotify ID (22 alphanumeric characters)
limitinteger
Max results to returndefault: 100
offsetinteger
Pagination offsetdefault: 0
artist.relatedGet artists similar to the given artist. Returns a list of related artists with their names, IDs, images, and follower counts.1 params

Get artists similar to the given artist. Returns a list of related artists with their names, IDs, images, and follower counts.

Parameters* required
artist_idstring
Spotify ID (22 alphanumeric characters)
album.getGet metadata for one or more albums in a single request. Returns album names, artists, release dates, track listings, and cover art.1 params

Get metadata for one or more albums in a single request. Returns album names, artists, release dates, track listings, and cover art.

Parameters* required
idsstring
Comma-separated Spotify IDs (22 alphanumeric characters each)
track.getGet metadata for one or more tracks in a single request. Returns track names, artists, albums, durations, and preview URLs.1 params

Get metadata for one or more tracks in a single request. Returns track names, artists, albums, durations, and preview URLs.

Parameters* required
idsstring
Comma-separated Spotify IDs (22 alphanumeric characters each)
track.previewGet preview audio URL for a Spotify track. Returns a short preview URL that can be used to listen to a snippet of the track.1 params

Get preview audio URL for a Spotify track. Returns a short preview URL that can be used to listen to a snippet of the track.

Parameters* required
track_idstring
Spotify ID (22 alphanumeric characters)
playlist.getGet metadata for a Spotify playlist. Returns playlist name, description, owner, follower count, and cover image.1 params

Get metadata for a Spotify playlist. Returns playlist name, description, owner, follower count, and cover image.

Parameters* required
playlist_idstring
Spotify ID (22 alphanumeric characters)
playlist.tracksGet tracks in a Spotify playlist, paginated. Returns track names, artists, albums, durations, and add dates.3 params

Get tracks in a Spotify playlist, paginated. Returns track names, artists, albums, durations, and add dates.

Parameters* required
limitinteger
Max results to returndefault: 100
offsetinteger
Pagination offsetdefault: 0
playlist_idstring
Spotify ID (22 alphanumeric characters)
playlist.permissionsGet permissions for a Spotify playlist. Returns whether the playlist is collaborative, public, and who can modify it.1 params

Get permissions for a Spotify playlist. Returns whether the playlist is collaborative, public, and who can modify it.

Parameters* required
playlist_idstring
Spotify ID (22 alphanumeric characters)

Sponsors

Readme

@striderlabs/mcp-spotify

MCP server for Spotify — let AI agents search music, control playback, and manage playlists via the Spotify Web API.

Built by Strider Labs.

Features

  • Search — Find tracks, artists, albums, and playlists
  • Playlists — View, create, and edit your playlists
  • Playback Control — Play, pause, skip, go back, set volume
  • Multi-device — List and switch between Spotify Connect devices
  • OAuth 2.0 — Secure authorization with PKCE (no client secret needed)
  • Token persistence — Tokens stored locally, auto-refreshed

Setup

1. Create a Spotify App

  1. Go to the Spotify Developer Dashboard
  2. Click Create App
  3. Set Redirect URI to: http://localhost:8888/callback
  4. Copy your Client ID

2. Install

npx @striderlabs/mcp-spotify

Or install globally:

npm install -g @striderlabs/mcp-spotify

3. Configure Claude Desktop

Add to your claude_desktop_config.json:


View the full README on GitHub

Details

Repository
github.com/markswendsen-code/mcp-spotify
Categories
Search & Web Crawling, Media & Entertainment
Package
@striderlabs/mcp-spotify
Transport
STDIO
Registry
MCP registry, active

More from markswendsen-code

Related Search & Web Crawling MCP servers

View all
1markswendsen-code avatarWalmartmarkswendsen-code/mcp-walmartMCP server for Walmart - search products, manage cart, track orders0stars
2markswendsen-code avatarYelpmarkswendsen-code/mcp-yelpMCP server for Yelp - search businesses, read reviews, make reservations0stars
3mcp-z avatarGoogle Driveio.github.mcp-z/mcp-driveGoogle Drive integration with file operations, folder navigation, search, and sharing0stars
4mcp-z avatarGmailio.github.mcp-z/mcp-gmailGmail integration with OAuth authentication, message search, batch operations, and Sheets export0stars
5mcp-z avatarOutlookio.github.mcp-z/mcp-outlookOutlook integration with OAuth, message search, batch operations, and calendar management0stars
6metamorphosis-sre avatarDevdrops Propertymetamorphosis-sre/devdropsUK property MCP: Land Registry prices, company charges, House Price Index. x402 USDC on Base.0stars