Spotify
live MediaMusicSpotify Web API catalog access — search, tracks, artists, albums, audio features. Read-only via client_credentials.
6 tools
0ms auth
free tier 50 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@latest",
"https://gateway.pipeworx.io/spotify/mcp?_apiKey=your_client_id:your_client_secret"
]
}
}
} Tools
search
required: query Search Spotify catalog. type = comma-separated of track,album,artist,playlist,show,episode,audiobook.
Parameters
Name Type Description
query req string Search query type opt string Comma-separated types (default "track") market opt string ISO 3166-1 alpha-2 market code limit opt number 1-50 (default 20) offset opt number 0-1000 (default 0) Try it
Response
get_track
required: track_id Single track by Spotify ID.
Parameters
Name Type Description
track_id req string Spotify track ID (base62) market opt string Market for availability Try it
Response
get_artist
required: artist_id Artist: name, genres, popularity, followers, images.
Parameters
Name Type Description
artist_id req string Spotify artist ID Try it
Response
get_album
required: album_id Album record with tracklist.
Parameters
Name Type Description
album_id req string Spotify album ID market opt string Market for availability Try it
Response
get_artist_top_tracks
required: artist_id Top tracks for an artist in a market.
Parameters
Name Type Description
artist_id req string Spotify artist ID market opt string ISO market code (default "US") Try it
Response
get_audio_features
required: track_id Tempo, key, mode, energy, danceability, valence, etc. for a track.
Parameters
Name Type Description
track_id req string Spotify track ID Try it
Response
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");