# Last.fm MCP

This MCP server for Claude Code connects an agent to Last.fm listening data and music details. Ask it to look up artists and tracks, inspect charts, or find recommendations from your history.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 54 repo stars
- Author: rianvdm
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rianvdm/lastfm-mcp
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/lastfm-mcp

## What it does

The server gives an agent read-only access to a Last.fm profile, listening history, and music information. It can retrieve track, album, and artist details, compare similar music, show charts for different periods, and suggest artists based on listening activity.

On the first connection, OAuth opens in a browser. Approve access and sign in to Last.fm. The server cannot change account data or submit scrobbles. Sign-in expires after 30 days, so the client will ask for authentication again.

## Requirements
- Remote server: `https://lastfm-mcp.com/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http lastfm https://lastfm-mcp.com/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add lastfm-mcp --url https://lastfm-mcp.com/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "lastfm-mcp": {
            "url": "https://lastfm-mcp.com/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "lastfm-mcp": {
            "type": "http",
            "url": "https://lastfm-mcp.com/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http lastfm-mcp https://lastfm-mcp.com/mcp
```

## When to use it
- look up a track, album, or artist
- check Last.fm charts for a chosen period
- summarize listening history and stats
- find artists based on listening activity

## Example prompts
- Find details about the album `album` by `artist`.
- Which artists were at the top of my charts last month?
- Suggest artists based on my listening history.

## Similar
- [mcp-me](https://affpapa.org/en/nevibecode/mcp/mcp-me.md) — MCP server · ★ 21 repo stars
- [plannotator-last](https://affpapa.org/en/nevibecode/skills/plannotator-last.md) — skill · 1200 installs
- [last-20-percent](https://affpapa.org/en/nevibecode/skills/last-20-percent.md) — skill · 1100 installs
- [last-30-days-skill](https://affpapa.org/en/nevibecode/plugins/last-30-days-skill.md) — plugin · ★ 72053 repo stars
- [ai-music](https://affpapa.org/en/nevibecode/skills/ai-music.md) — skill · 379800 installs
- [dee-mcp](https://affpapa.org/en/nevibecode/mcp/dee-mcp.md) — MCP server · 195 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
