# Last.fm MCP

> Last.fm MCP is an open-source MCP server for events and entertainment. Unofficial read-only MCP server for your Last.fm listening history and music lookups. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API
- **Website:** https://lastfm-mcp.com
- **Repository:** https://github.com/rianvdm/lastfm-mcp
- **MCP Registry name:** com.lastfm-mcp/lastfm
- **Categories:** events and entertainment
- **Listing updated:** 2026-11-14

## About

Because it reads scrobbles, charts and loved tracks, an assistant can answer questions that span years, such as when you first played an artist or which albums you played to death and then forgot. It works out relative days like yesterday in your own timezone. Lookups for tracks, artists and albums, plus similar artists and tracks, cover the global side, and a recommendation tool is among the listening-data tools.

The server runs on Cloudflare Workers and signs you in with OAuth. Your browser first shows a page naming the requesting app and where access goes, then Last.fm sign-in. Access is read-only, so it cannot scrobble or change anything. Approval is remembered for a year and sign-ins expire after 30 days. The registry entry calls it unofficial.

Setup pages cover Claude, Claude Code, ChatGPT Business, Enterprise and Edu, Cursor, Codex, OpenCode and Devin Desktop, and an llms.txt lets an agent set the connection up itself. Clients that only run local servers can bridge with mcp-remote.

## Features

- **Listening history:** Reads recent tracks with pagination from your Last.fm account.
- **Top charts:** Shows top artists, albums and tracks by time period.
- **Loved tracks and stats:** Reads loved tracks, profile information and listening statistics.
- **Music lookups:** Returns details for tracks, artists and albums, and an artist's top tracks and albums.
- **Similar music:** Finds similar artists and similar tracks.
- **Read-only access:** Cannot scrobble or modify anything on Last.fm.

## Good for

- Find when you first played an artist
- Recall what was on repeat last summer
- Get new artists like your top five that you have not played
- Compare your taste now with years ago
- Decide where to start with an artist

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http lastfm https://lastfm-mcp.com/mcp
```

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

```sh
https://lastfm-mcp.com/mcp
```

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

```json
{
  "mcpServers": {
    "lastfm": {
      "url": "https://lastfm-mcp.com/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "lastfm": {
      "type": "http",
      "url": "https://lastfm-mcp.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "lastfm": {
      "serverUrl": "https://lastfm-mcp.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "lastfm": {
      "type": "http",
      "url": "https://lastfm-mcp.com/mcp"
    }
  }
}
```

## Tools

- `get_track_info`: Detailed information about a track
- `get_artist_info`: Artist information and bio
- `get_album_info`: Album details and track listing
- `get_artist_top_tracks`: An artist's globally most-played tracks
- `get_artist_top_albums`: An artist's globally most-played albums
- `get_similar_artists`: Artists similar to a given artist
- `get_similar_tracks`: Tracks similar to a given track
- `ping`: Test connectivity
- `server_info`: Server status and capabilities
- `lastfm_auth_status`: Check authentication status
- `get_recent_tracks`: Recent listening history, paginated
- `get_top_artists`: Top artists by time period
- `get_top_albums`: Top albums by time period
- `get_top_tracks`: Top tracks by time period
- `get_loved_tracks`: Loved tracks
- `get_user_info`: Last.fm profile information
- `get_listening_stats`: Listening statistics

## FAQ

### Can it change my Last.fm account?

No. Access is read-only; it cannot scrobble or change anything.

### Is it official?

No. The registry entry describes it as unofficial.

### How long does sign-in last?

Sign-ins expire after 30 days, and the browser remembers your approval for a year.

### Is it free?

The site describes it as free and open source.

### Is Last.fm MCP free?

Yes. Last.fm MCP is open source, so you can use and self-host it for free.

### How do I add Last.fm MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http lastfm https://lastfm-mcp.com/mcp

### What are the best alternatives to Last.fm MCP?

The closest alternatives to Last.fm MCP are MaineMCP, Agent Bookability Index, Tap2Cal, Veseljko katalog usluga za proslave and 숏츠생성기 Free K-pop Shorts.

## Alternatives

- [MaineMCP](https://ai-powered.com/mcp/mainemcp): MaineMCP is a free MCP server for events and entertainment.
- [Agent Bookability Index](https://ai-powered.com/mcp/agent-bookability-index): Agent Bookability Index is a free MCP server for events and entertainment.
- [Tap2Cal](https://ai-powered.com/mcp/tap2cal): Tap2Cal is a free MCP server for productivity.
- [Veseljko katalog usluga za proslave](https://ai-powered.com/mcp/veseljko-katalog-usluga-za-proslave): Veseljko katalog usluga za proslave is a free MCP server for events and entertainment.
- [숏츠생성기 Free K-pop Shorts](https://ai-powered.com/mcp/free-k-pop-shorts): 숏츠생성기 Free K-pop Shorts is a free MCP server for design and media.
- [Tickets: tours and event tickets in South America](https://ai-powered.com/mcp/tickets-tours-and-event-tickets-in-south-america): Tickets: tours and event tickets in South America is a free MCP server for maps and travel.
- [DalVivo](https://ai-powered.com/mcp/dalvivo): DalVivo is a free MCP server for maps and travel.
- [Ringske](https://ai-powered.com/mcp/ringske): Ringske is a freemium MCP server for events and entertainment.

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