Last Fm

liveMusicEntertainment

Last.fm music API — retrieve artist bios, top tracks, similar artists, album/track metadata, user listening history, and global music charts.

9tools
0msauth
free tier50 calls/day

Tools

artist_info

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

Most-played tracks for an artist.

No parameters required.

▶Try it
artist_similar

Similar artists.

No parameters required.

▶Try it
album_info

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

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

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

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

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

List available tools
bash
curl -X POST https://gateway.pipeworx.io/last-fm/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/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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("artist_info", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("last");