Get started free
All integrations

Last.fm integration

Music scrobbling and discovery API for tracking listening habits, exploring music metadata, and discovering new artists. Access track, album, and artist information, user listening history, charts, tags, recommendations, and submit scrobbles. Essential for building music tracking apps, recommendation engines, and social music features.

20 toolsAPI keyAPI docs

Common Last.fm use cases

  • Build taste profile
  • Display user profile page
  • Display artist profile page
  • Display artist's top tracks
  • Display global music charts
  • Display user's loved tracks
  • Show now playing on profile
  • Build music search interface
  • Display global artist charts
  • Build artist search interface

What you can do with Last.fm

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Track, 10 operations

  • GETget_artist_top_tracks

    Retrieves the most popular tracks by a specific artist ranked by playcount.

  • GETget_chart_top_tracks

    Retrieves the global top tracks chart from Last.fm.

  • GETget_geo_top_tracks

    Retrieves the most popular tracks in a specific country or region.

  • GETget_similar_tracks

    Retrieves a list of tracks similar to a given track based on listening patterns.

  • GETget_tag_top_tracks

    Retrieves the most popular tracks associated with a specific tag or genre.

  • GETget_track_info

    Retrieves detailed metadata for a specific track including artist, album, duration, play statistics, and wiki content.

  • GETget_user_loved_tracks

    Retrieves a list of tracks that a user has marked as loved on Last.fm.

  • GETget_user_recent_tracks

    Retrieves a paginated list of tracks recently played by a user.

  • GETget_user_top_tracks

    Retrieves a user's most listened to tracks over a specified time period.

  • GETsearch_tracks

    Searches Last.fm's database for tracks matching the query and returns paginated results.

Artist, 5 operations

  • GETget_artist_info

    Retrieves detailed information about an artist including biography, similar artists, tags, and statistics.

  • GETget_chart_top_artists

    Retrieves the global top artists chart from Last.fm.

  • GETget_similar_artists

    Retrieves a list of artists similar to a given artist based on listening patterns.

  • GETget_user_top_artists

    Retrieves a user's most listened to artists over a specified time period.

  • GETsearch_artists

    Searches Last.fm's database for artists matching the query and returns paginated results.

Album, 1 operation

  • GETget_album_info

    Retrieves detailed metadata for an album including tracklist, cover art, tags, and wiki content.

Nowplaying, 1 operation

  • POSTupdate_now_playing

    Updates the user's 'now playing' status on Last.fm to show what they're currently listening to.

Scrobble, 1 operation

  • POSTscrobble_track

    Submits a track play (scrobble) to the user's Last.fm listening history.

Tag, 1 operation

  • GETget_tag_info

    Retrieves metadata about a specific tag including usage statistics and wiki content.

User, 1 operation

  • GETget_user_info

    Retrieves profile information for a Last.fm user including demographics and statistics.

Use Last.fm from Claude Code, Cursor or Codex

Connect Last.fm in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Last.fm operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Last.fm

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Last.fm once

    Add your Last.fm connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Last.fm integration FAQ

What can you do with the Last.fm integration?
LiveContext exposes 20 operations on Last.fm, covering track, artist, album and nowplaying. Common uses include Build taste profile, Display user profile page and Display artist profile page.

Popular integrations

Browse the whole catalog