# Last Fm

> Last Fm is a freemium MCP server for sports data. Last.fm music metadata and charts as MCP tools for AI assistants. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $49 a month
- **Platforms:** API, CLI, self-hosted
- **Website:** https://pipeworx.io/packs/last-fm
- **Repository:** https://github.com/pipeworx-io/mcp-last-fm
- **MCP Registry name:** io.github.pipeworx-io/last-fm
- **Categories:** [sports data](https://ai-powered.com/categories/sports-data), music data
- **Listing updated:** 2026-11-18

## About

The README describes a gateway pack that exposes Last.fm's artist, album and track data to AI clients through nine tools. Lookups cover biographies, similar artists, top tracks, album and track details, keyword track search, genre-tag rankings, a named user's most-scrobbled tracks, and global top artists.

The server is hosted on the Pipeworx gateway at a streamable-HTTP endpoint, and an npm stdio bridge is also available for local clients. Calls are anonymous by default, and the registry notes an optional Pipeworx API key raises the daily cap. The README says the integration is unofficial and not affiliated with Last.fm.

It suits developers and assistant users who want music lookups, recommendations or chart data inside an MCP-compatible client. The endpoint also lists shared gateway meta-tools alongside the pack's own tools unless the npm bridge is set to pack-only.

## Features

- **Artist profile lookup:** Returns an artist's biography, listener and play counts, similar artists and genre tags, optionally in a chosen language.
- **Album and track metadata:** Fetches track listings, durations, listener counts and wiki summaries by artist and title or MusicBrainz ID.
- **Track search:** Searches tracks by keyword and returns ranked results with artist names and listener counts.
- **Genre and chart rankings:** Lists top artists for a genre tag or the current global top artists by listener count.
- **User listening history:** Retrieves a named Last.fm user's most-scrobbled tracks over a selected time period.
- **Optional API key:** Anonymous calls are daily-capped; a free Pipeworx key raises the limit.

## Good for

- Adding artist bios and similar-artist suggestions to a music assistant
- Checking genre leaderboards or current global top artists for playlist ideas
- Looking up album track listings and durations for a catalogue or app
- Pulling a named Last.fm user's top tracks over a chosen period

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http last-fm https://gateway.pipeworx.io/last-fm/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://gateway.pipeworx.io/last-fm/mcp
```

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "last-fm": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/last-fm/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "last-fm": {
      "serverUrl": "https://gateway.pipeworx.io/last-fm/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "last-fm": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/last-fm/mcp"
    }
  }
}
```

## Tools

- `artist_info`: Artist bio, similar artists and tags.
- `artist_top_tracks`: Most-played tracks for an artist.
- `artist_similar`: Similar artists.
- `album_info`: Album metadata.
- `track_info`: Track metadata.
- `track_search`: Track search by keyword.
- `user_top_tracks`: A named user's top tracks for a period.
- `tag_top_artists`: Top artists for a genre tag.
- `chart_top_artists`: Global top artists.

## FAQ

### Is this an official Last.fm integration?

No. The README says it is an independent, unofficial integration that is not affiliated with, endorsed by or published by Last.fm.

### Does it need an account?

Calls work anonymously with a daily cap of 50. The README says a free Pipeworx account raises that to 200 calls a day.

### Which tools does the endpoint list?

The pack defines nine Last.fm tools. The README notes the hosted endpoint also lists roughly 30 shared Pipeworx meta-tools, while the npm bridge lists only pack tools by default.

### Is Last Fm free?

Last Fm has a free plan, with paid plans for more usage or features. Paid plans start at $49 a month.

### How do I add Last Fm to Claude Code?

Run this command in your terminal: claude mcp add --transport http last-fm https://gateway.pipeworx.io/last-fm/mcp

### What are the best alternatives to Last Fm?

The closest alternatives to Last Fm are Setlist Fm, Seatgeek, Sports Feeds and Riot Games.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Setlist Fm](https://ai-powered.com/mcp/setlist-fm): Setlist Fm is a freemium MCP server for sports data.
- [Seatgeek](https://ai-powered.com/mcp/seatgeek): Seatgeek is a freemium MCP server for sports data.
- [Sports Feeds](https://ai-powered.com/mcp/sports-feeds): Sports Feeds is a freemium MCP server for sports data.
- [Riot Games](https://ai-powered.com/mcp/riot-games): Riot Games is a freemium MCP server for sports data.

---
Source: https://ai-powered.com/mcp/last-fm-2
