MCP ExplorerExplorer

Lastfm Mcp

@ddhar1on a year ago
1 MIT
FreeCommunity
AI Systems
MCP so that an LLM can interact with data from last.fm

Overview

What is Lastfm Mcp

lastfm_mcp is a server designed to enable a Large Language Model (LLM) to interact with data from Last.fm, primarily for testing purposes.

Use cases

Use cases include generating personalized music recommendations, analyzing listening trends, and creating visualizations of popular tracks.

How to use

To use lastfm_mcp, you need to configure your claude_desktop_config.json file by adding the server details, including the command to run and the Last.fm API key.

Key features

Key features include methods to retrieve a user’s top tracks for the week and to get global top tracks from Last.fm.

Where to use

lastfm_mcp can be used in music recommendation systems, data analysis applications, and any project that requires interaction with Last.fm’s music data.

Content

Last.fm MCP

Mostly just made this to test out MCPs

Methods

  • get_users_weeks_top_tracks - get a user’s week top tracks - you have to tell claude the username to pass
  • get_lastfm_top_tracks - get global last fm tracks.

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

NPX

{
  "globalShortcut": "",
  "mcpServers": {
    "lastfm": {
            "command": "uv",
            "args": [
                "--directory",
                "DIR/TO/REPO/HERE",
                "run",
                "last-fm.py"
            ],
            "env": {
        "LASTFM_API_KEY": "APIKEYHERE"}
        }

  }
}

Example

example of getting global top songs from last fm

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers