Spotify
liveMusicMediaEntertainmentSpotify Web API catalog access — search, tracks, artists, albums, audio features. Read-only via client_credentials.
Platform credentials handled by Pipeworx. BYO format: ?_apiKey=<client_id>:<client_secret>.
{
"mcpServers": {
"pipeworx-spotify": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://gateway.pipeworx.io/spotify/mcp?_apiKey=your_client_id:your_client_secret"
]
}
}
}Tools
searchrequired: querySearch the Spotify catalog. type = comma-separated of album, artist, playlist, track, show, episode, audiobook. Returns matched items in named sections.
queryreqstringSearch querytypeoptstringComma-separated types (default "track")marketoptstringISO 3166-1 alpha-2 market codelimitoptnumber1-50 (default 20)offsetoptnumber0-1000 (default 0)Try it
get_trackrequired: track_idSingle track by Spotify ID. Returns artists, album, popularity, preview URL, duration.
track_idreqstringSpotify track ID (base62)marketoptstringMarket for availabilityTry it
get_artistrequired: artist_idArtist record: name, genres, popularity, followers, images.
artist_idreqstringSpotify artist IDTry it
get_albumrequired: album_idFetch a Spotify album by album_id. Returns name, artists, release date, total tracks, label, genres, popularity, images, and full tracklist with track IDs and durations. Optional market filter.
album_idreqstringSpotify album IDmarketoptstringMarket for availabilityTry it
get_artist_top_tracksrequired: artist_idTop tracks for an artist in a market (Spotify recommendation).
artist_idreqstringSpotify artist IDmarketoptstringISO market code (default "US")Try it
get_audio_featuresrequired: track_idAudio features for a track: tempo (BPM), key, mode (major/minor), time_signature, energy, danceability, valence, acousticness, instrumentalness, liveness, speechiness, loudness.
track_idreqstringSpotify track IDTry it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/spotify/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/spotify/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search","arguments":{"query": "hello"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search", {"query":"example"});// Or ask in plain English:
const answer = await px.ask("spotify web api catalog access — search, tracks, artists, albums, audio features");Related packs
Other Pipeworx packs in the same categories (Music, Media, Entertainment):