Last.fm MCP Server - Model Context Protocol for Claude AI

A robust MCP implementation for Last.fm API integration. Connect Claude Desktop and other AI assistants to your Last.fm listening data. Features temporal queries ("When did I start listening to...?"), music insights, and 18+ specialized tools.

🤖 AI-Powered 🔐 Secure Auth ⚡ Global Edge 📊 Rich Analytics 🆓 Open Source

✨ Ask Claude about your music

"When did I start listening to Led Zeppelin?" • "What was I obsessed with in summer 2023?" • "Find artists similar to my favorites"

🌟 Features

🎧

Personal Music Data

Access your recent tracks, top artists, albums, and loved tracks with full pagination support.

🕰️

Temporal Queries

Explore your musical journey over time. Ask when you started listening to artists or what you loved in any time period.

🔍

Music Discovery

Find similar artists and tracks, get personalized recommendations, and discover new music based on your taste.

📊

Rich Analytics

Comprehensive listening statistics, charts, and insights about your musical preferences and habits.

🔐

Secure & Private

Last.fm Web Authentication with 7-day JWT sessions. Your data stays secure with proper session management.

Production Ready

Smart caching, rate limiting, retry logic, and global edge deployment on Cloudflare Workers.

🚀 Quick Setup

1

Add to Claude Desktop

Configure the MCP server in your Claude Desktop settings

2

Authenticate

Connect your Last.fm account through secure web authentication

3

Start Exploring

Ask Claude about your music and get AI-powered insights

Add this to your Claude Desktop settings (Settings → Developer → Edit config):

{
  "mcpServers": {
    "lastfm": {
      "command": "npx",
      "args": ["mcp-remote", "https://lastfm-mcp-prod.rian-db8.workers.dev/sse"]
    }
  }
}

💬 Ask Claude

🕰️ Musical Timeline

"When did I start listening to Led Zeppelin?"

Claude analyzes your weekly charts and finds you first played "Stairway to Heaven" in March 2019, with your listening peak during summer 2020.

📊 Listening Insights

"What was I obsessed with in 2023?"

Based on your 2023 listening data, you were heavily into indie rock with Arctic Monkeys being your top artist (847 plays), followed by a Radiohead phase in fall.

🔍 Music Discovery

"Find artists similar to my current favorites"

Analyzing your top artists, I recommend Fontaines D.C., Dry Cleaning, and Black Midi - they share the post-punk revival sound you've been loving lately.

📈 Trend Analysis

"How has my music taste evolved over time?"

Your taste has shifted from mainstream pop (2018-2019) → indie rock (2020-2021) → experimental electronic (2022) → current indie/alternative focus. You're exploring more diverse genres each year!