artist_top_tracks

Pack: last-fm · Endpoint: https://gateway.pipeworx.io/last-fm/mcp

Most-played tracks for an artist.

Parameters

NameTypeRequiredDescription
artiststringyes
mbidstringno
limitnumberno

Example call

Arguments

{
  "artist": "David Bowie"
}

curl

curl -X POST https://gateway.pipeworx.io/last-fm/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"artist_top_tracks","arguments":{"artist":"David Bowie"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('artist_top_tracks', {
  "artist": "David Bowie"
});

More examples

{
  "artist": "Pink Floyd",
  "limit": 10
}

Response shape

FieldTypeDescription
toptracksobjectTop tracks container
Full JSON Schema
{
  "type": "object",
  "properties": {
    "toptracks": {
      "type": "object",
      "description": "Top tracks container",
      "properties": {
        "track": {
          "type": "array",
          "description": "Array of top tracks",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Track name"
              },
              "playcount": {
                "type": "string",
                "description": "Play count"
              },
              "listeners": {
                "type": "string",
                "description": "Number of listeners"
              },
              "url": {
                "type": "string",
                "description": "Track URL"
              },
              "artist": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "@attr": {
          "type": "object",
          "properties": {
            "artist": {
              "type": "string"
            },
            "page": {
              "type": "string"
            },
            "perPage": {
              "type": "string"
            },
            "totalPages": {
              "type": "string"
            },
            "total": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "last-fm": {
      "url": "https://gateway.pipeworx.io/last-fm/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026