Skip to main content
MCP server CX Codex

Last.fm MCP — Claude Code MCP server: features and setup

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.

MIT ★ 54 updated 2026-11-16

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http lastfm https://lastfm-mcp.com/mcp
Open on GitHub

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

What it helps with

  • 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 for the agent

  • 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.

How to install Last.fm MCP

Platform CLI: remote server

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Last.fm MCP

How do I install Last.fm MCP in Claude Code?

Run claude mcp add --transport http lastfm https://lastfm-mcp.com/mcp. On the first connection, sign in to Last.fm in your browser.

What does Last.fm MCP do?

It lets an agent read Last.fm listening history and music data. The agent can look up tracks, artists, and albums, view charts, and request recommendations.

Can Last.fm MCP edit my profile or submit scrobbles?

No. Its access is read-only: it can retrieve profile and listening data but cannot change the account or submit tracks.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open