Last Fm
liveMusicEntertainmentLast.fm music API — retrieve artist bios, top tracks, similar artists, album/track metadata, user listening history, and global music charts.
Tools
artist_infoFetch Last.fm artist profile by name (or MusicBrainz ID): biography, listener/play counts, similar artists, and genre tags; optionally in a specified language.
No parameters required.
Try it
artist_top_tracksMost-played tracks for an artist.
No parameters required.
Try it
artist_similarSimilar artists.
No parameters required.
Try it
album_infoFetch Last.fm album metadata by artist and album name (or MusicBrainz ID): track listing, listener/play counts, wiki summary, and genre tags.
No parameters required.
Try it
track_infoFetch Last.fm track metadata by artist and track name (or MusicBrainz ID): duration, listener/play counts, genre tags, and wiki summary.
No parameters required.
Try it
track_searchSearch Last.fm for tracks matching a keyword query; returns ranked results with artist, track name, and listener counts.
No parameters required.
Try it
user_top_tracksFetch a SPECIFIC NAMED Last.fm user's most-scrobbled tracks for a given period (overall/7day/1month/3month/6month/12month) — only when the question names a Last.fm username; NEVER for general "popular
No parameters required.
Try it
tag_top_artistsFetch the top Last.fm artists for a genre tag (e.g. 'rock', 'electronic'); returns ranked artist names with listener counts.
No parameters required.
Try it
chart_top_artistsThe world's most-popular music right now — global top artists by listener count. PREFER for "recommend popular music", "top songs / top artists this year", "what music is trending", "popular songs 202
No parameters required.
Try 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/last-fm/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/last-fm/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"artist_info","arguments":{}}}'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("artist_info", {});// Or ask in plain English:
const answer = await px.ask("last");