Integration

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.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Last.fm.Built from the 20 Last.fm tools below, on the connection you add once.

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.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

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

Track, 10 operations

  • get_artist_top_tracksGet artist top tracksGETAgents: ask firstRetrieves the most popular tracks by a specific artist ranked by playcount.
  • get_chart_top_tracksGet chart top tracksGETAgents: ask firstRetrieves the global top tracks chart from Last.fm.
  • get_geo_top_tracksGet geo top tracksGETAgents: ask firstRetrieves the most popular tracks in a specific country or region.
  • get_similar_tracksGet similar tracksGETAgents: ask firstRetrieves a list of tracks similar to a given track based on listening patterns.
  • get_tag_top_tracksGet tag top tracksGETAgents: ask firstRetrieves the most popular tracks associated with a specific tag or genre.
  • get_track_infoGet track infoGETAgents: ask firstRetrieves detailed metadata for a specific track including artist, album, duration, play statistics, and wiki content.
  • get_user_loved_tracksGet user loved tracksGETAgents: ask firstRetrieves a list of tracks that a user has marked as loved on Last.fm.
  • get_user_recent_tracksGet user recent tracksGETAgents: ask firstRetrieves a paginated list of tracks recently played by a user.
  • get_user_top_tracksGet user top tracksGETAgents: ask firstRetrieves a user's most listened to tracks over a specified time period.
  • search_tracksSearch tracksGETAgents: ask firstSearches Last.fm's database for tracks matching the query and returns paginated results.

Artist, 5 operations

  • get_artist_infoGet artist infoGETAgents: ask firstRetrieves detailed information about an artist including biography, similar artists, tags, and statistics.
  • get_chart_top_artistsGet chart top artistsGETAgents: ask firstRetrieves the global top artists chart from Last.fm.
  • get_similar_artistsGet similar artistsGETAgents: ask firstRetrieves a list of artists similar to a given artist based on listening patterns.
  • get_user_top_artistsGet user top artistsGETAgents: ask firstRetrieves a user's most listened to artists over a specified time period.
  • search_artistsSearch artistsGETAgents: ask firstSearches Last.fm's database for artists matching the query and returns paginated results.

Album, 1 operation

  • get_album_infoGet album infoGETAgents: ask firstRetrieves detailed metadata for an album including tracklist, cover art, tags, and wiki content.

Nowplaying, 1 operation

  • update_now_playingUpdate now playingPOSTAgents: ask firstUpdates the user's 'now playing' status on Last.fm to show what they're currently listening to.

Scrobble, 1 operation

  • scrobble_trackScrobble trackPOSTAgents: ask firstSubmits a track play (scrobble) to the user's Last.fm listening history.

Tag, 1 operation

  • get_tag_infoGet tag infoGETAgents: ask firstRetrieves metadata about a specific tag including usage statistics and wiki content.

User, 1 operation

  • get_user_infoGet user infoGETAgents: ask firstRetrieves 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