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 Server

Connect via Claude Desktop Connectors UI or your preferred MCP client

2

Authenticate

Connect your Last.fm account through secure web authentication

3

Start Exploring

Ask Claude about your music and get AI-powered insights

โœจ Recommended: Claude Desktop Connectors UI

The easiest way to connect - no configuration files needed!

  1. Open Claude Desktop
  2. Go to Settings โ†’ Connectors
  3. Click Add Connector
  4. Enter URL: https://lastfm-mcp-prod.rian-db8.workers.dev
  5. Click Add

๐Ÿ’ป Claude Code (Terminal)

One command to add the server

claude mcp add --transport http lastfm https://lastfm-mcp-prod.rian-db8.workers.dev

๐Ÿ”ง Other MCP Clients

Continue.dev, Zed, or custom implementations

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

๐Ÿงช Test with MCP Inspector

npx @modelcontextprotocol/inspector https://lastfm-mcp-prod.rian-db8.workers.dev

๐Ÿ’ฌ 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!