Spotify

liveMusicMediaEntertainment

Spotify Web API catalog access — search, tracks, artists, albums, audio features. Read-only via client_credentials.

6tools
0msauth
free tier50 calls/day
🔑Authentication

Platform credentials handled by Pipeworx. BYO format: ?_apiKey=<client_id>:<client_secret>.

Config with credentials
{
  "mcpServers": {
    "pipeworx-spotify": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://gateway.pipeworx.io/spotify/mcp?_apiKey=your_client_id:your_client_secret"
      ]
    }
  }
}

Tools

get_trackrequired: track_id

Single track by Spotify ID. Returns artists, album, popularity, preview URL, duration.

Parameters
NameTypeDescription
track_idreqstringSpotify track ID (base62)
marketoptstringMarket for availability
▶Try it
get_artistrequired: artist_id

Artist record: name, genres, popularity, followers, images.

Parameters
NameTypeDescription
artist_idreqstringSpotify artist ID
▶Try it
get_albumrequired: album_id

Fetch 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.

Parameters
NameTypeDescription
album_idreqstringSpotify album ID
marketoptstringMarket for availability
▶Try it
get_artist_top_tracksrequired: artist_id

Top tracks for an artist in a market (Spotify recommendation).

Parameters
NameTypeDescription
artist_idreqstringSpotify artist ID
marketoptstringISO market code (default "US")
▶Try it
get_audio_featuresrequired: track_id

Audio features for a track: tempo (BPM), key, mode (major/minor), time_signature, energy, danceability, valence, acousticness, instrumentalness, liveness, speechiness, loudness.

Parameters
NameTypeDescription
track_idreqstringSpotify track ID
▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/spotify/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search", {"query":"example"});
ask_pipeworx
// 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):