Skip to content
MCP server

Last.fm MCP

Unofficial read-only MCP server for your Last.fm listening history and music lookups

Pricing
Open source
Platforms
API
Runs
Remotely
Version
2.8.0
Listing updated
2 days ago

About Last.fm MCP

Last.fm MCP is an open-source MCP server for events and entertainment. It runs as a hosted remote server, so there is nothing to install locally.

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.

Install

Run in a terminal

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

Add to Settings → Connectors → Add custom connector

https://lastfm-mcp.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "lastfm": {
      "url": "https://lastfm-mcp.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Tools this server provides (17)

Taken from the project documentation; the running server may differ.

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

What it does

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

Pricing

Open source

Free and open source.

Prices change. Check lastfm-mcp.com before you buy.

Last.fm MCP 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 to Last.fm MCP

  1. MaineMCP

    MCP server

    Search public Maine events, communities and startups, with links to the source listings

    • 4 tools
    • Remote
    • Free
    • Events and entertainment
  2. NYC-area event vendor prices, areas and booking options sourced from vendor sites

    • 9 tools
    • Remote
    • Free
    • Events and entertainment
  3. Tap2Cal

    MCP server

    Create shareable add-to-calendar links and read RSVPs from your AI assistant

    Not checked yet
    • 9 tools
    • Remote
    • Free
    • Productivity
  4. Search Croatian wedding and party venues, bands, photographers and caterers

    • 5 tools
    • Remote
    • Free
    • Events and entertainment
  5. Free finished K-pop shorts with title, description and thumbnail for YouTube Shorts

    • 3 tools
    • Remote
    • Free
    • Design and media