track_info

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

Fetch Last.fm track metadata by artist and track name (or MusicBrainz ID): duration, listener/play counts, genre tags, and wiki summary.

Parameters

NameTypeRequiredDescription
artiststringyes
trackstringyes
mbidstringno

Example call

Arguments

{
  "artist": "Nirvana",
  "track": "Smells Like Teen Spirit"
}

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":"track_info","arguments":{"artist":"Nirvana","track":"Smells Like Teen Spirit"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('track_info', {
  "artist": "Nirvana",
  "track": "Smells Like Teen Spirit"
});

More examples

{
  "artist": "Queen",
  "track": "Bohemian Rhapsody"
}

Response shape

FieldTypeDescription
trackobjectTrack information object
Full JSON Schema
{
  "type": "object",
  "properties": {
    "track": {
      "type": "object",
      "description": "Track information object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Track name"
        },
        "artist": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "mbid": {
              "type": "string"
            }
          }
        },
        "album": {
          "type": "object",
          "properties": {
            "artist": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "mbid": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "image": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "size": {
                    "type": "string"
                  },
                  "#text": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "url": {
          "type": "string",
          "description": "Track URL"
        },
        "duration": {
          "type": "string",
          "description": "Duration in milliseconds"
        },
        "listeners": {
          "type": "string",
          "description": "Number of listeners"
        },
        "playcount": {
          "type": "string",
          "description": "Total play count"
        },
        "mbid": {
          "type": "string",
          "description": "MusicBrainz ID"
        }
      }
    }
  }
}

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