Connect AI to your music

An MCP server that lets Claude and other AI assistants access your Last.fm listening history. Ask questions about your music taste, discover patterns, find new artists.

Things you can ask

When did I start listening to Radiohead? Searches your historical charts to find when an artist first appeared
What was I obsessed with last summer? Analyzes your listening data for any time period
Find artists similar to my top 5 Discovers new music based on your actual listening habits
How has my music taste changed over the years? Tracks the evolution of your listening patterns

Setup

Claude.ai / Claude Desktop

  1. Go to SettingsIntegrations
  2. Click Add Integration
  3. Enter the URL below and click Add
  4. Authenticate with Last.fm when prompted
https://lastfm-mcp.com/mcp

Windsurf / Antigravity

~/.codeium/windsurf/mcp_config.json

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

Claude Code

Run this command in your terminal:

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

OpenCode

opencode.json

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

Cursor

~/.cursor/mcp.json

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

Continue.dev / Zed / Other MCP Clients

Use mcp-remote for clients that don't support HTTP transport natively:

{ "mcpServers": { "lastfm": { "command": "npx", "args": ["-y", "mcp-remote", "https://lastfm-mcp.com/mcp"] } } }

Available Tools

Public (no auth)

  • get_track_info
  • get_artist_info
  • get_album_info
  • get_similar_artists
  • get_similar_tracks

Personal (auth required)

  • get_recent_tracks
  • get_top_artists
  • get_top_albums
  • get_loved_tracks
  • get_listening_stats
  • get_music_recommendations

Temporal

  • get_weekly_chart_list
  • get_weekly_artist_chart
  • get_weekly_track_chart