lastfm-lyrics

lastfm-lyrics

Enables Claude to analyze the song you're currently playing on Spotify by looking up what's playing via Last.fm and fetching lyrics from Genius.

Category
Visit Server

README

Music Lyrics MCP Server

Ask Claude to analyze the song you're currently listening to LIVE on Spotify, and it will automatically look up what's playing and fetch the lyrics.

If you listen to mumble rap as much as me, you might find this useful. Sometimes, I just lost track of what the artist is singing, but I keep following because the flow is so good:)

How it works

  1. You play music in Spotify
  2. Last.fm detects what's playing and logs it in real-time
  3. Claude reads that from Last.fm, fetches the lyrics from Genius, and answers your question

Prerequisites

Setup

1. Install dependencies

pip install -r requirements.txt

2. Configure credentials

cp .env.example .env

Fill in .env with your Last.fm API key, secret, username, and Genius token.

3. Connect Spotify to Last.fm

Go to https://www.last.fm/settings/applications and connect Spotify. This enables scrobbling — Last.fm will track what you play in Spotify automatically.

4. Get a Last.fm API key

Go to https://www.last.fm/api/account/create. Leave the callback URL blank. Copy the API key and shared secret into .env.

5. Register with Claude Desktop

On Windows (Microsoft Store), edit: %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "lastfm-lyrics": {
      "command": "python",
      "args": ["C:/absolute/path/to/server.py"]
    }
  }
}

Fully quit and reopen Claude Desktop. The tools will appear automatically.

Usage

Play a song in Spotify, then ask Claude:

  • "What am I listening to?"
  • "Analyze what I'm listening to"
  • "What's the mood of this song?"
  • "What themes does this song explore?"
  • "Tell me about the artist I'm listening to"
  • "Get the lyrics for Blinding Lights by The Weeknd"

Notes

  • Spotify free tier works — no Premium required
  • There is a ~10–30 second delay between when a track starts and when Last.fm reports it
  • Claude can analyze lyrics but will not reproduce them verbatim (copyright policy)

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured