Be the first to get access to new connectors. Get early access →
ConnectorBay Early access

Last.fm (BYOK) — connector documentation

  • MCP endpoint: https://byok-lastfm.connectorbay.com/mcp
  • REST API: POST https://byok-lastfm.connectorbay.com/v1/tools/{tool_name}, described by the OpenAPI 3.1 spec at https://byok-lastfm.connectorbay.com/openapi.json
  • Transport: Streamable HTTP, stateless, MCP specification 2025-06-18 or later
  • Authentication: your own Last.fm API key, sent in the X-Upstream-Key header of every request (never stored, logged or cached)
  • Health: https://byok-lastfm.connectorbay.com/health · Tool schemas: https://byok-lastfm.connectorbay.com/tools.json
  • Publisher: Unify Dynamics LLC · connectorbay.com/byok-lastfm · agent@connectorbay.com

What Last.fm (BYOK) is for

Last.fm (BYOK) lets an AI assistant read your own Last.fm data through the Last.fm API with a key you supply (API key). Read-only: 10 tools (get_recent_tracks, get_top_artists, get_top_tracks, get_top_albums, get_loved_tracks, get_user_info, get_artist_info, search_artists, get_chart_top_tracks, get_chart_top_artists). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to ws.audioscrobbler.com. Unofficial connector by Unify Dynamics LLC: not affiliated with, endorsed by or sponsored by Last.fm. Last.fm and its logos are trademarks of their owners and are used only to say which service the connector works with.

Ask your assistant things like:

  • "What has the Last.fm user rj listened to recently?"
  • "Who are the top artists of Last.fm user rj this year?"
  • "What are the top tracks of Last.fm user rj in the last month?"
  • "What are the top albums of Last.fm user rj over the last 12 months?"
  • "Which tracks has Last.fm user rj loved?"
  • "When did Last.fm user rj join and how many tracks have they played?"

What it does

  • get_recent_tracks: List a user's recently played (scrobbled) tracks, newest first; the track playing now is included when there is one. Returns Last.fm's JSON as is.
  • get_top_artists: List a user's most played artists over a time range with play counts. Returns Last.fm's JSON as is.
  • get_top_tracks: List a user's most played tracks over a time range with play counts. Returns Last.fm's JSON as is.
  • get_top_albums: List a user's most played albums over a time range with play counts. Returns Last.fm's JSON as is.
  • get_loved_tracks: List the tracks a user has marked as loved, newest first. Returns Last.fm's JSON as is.
  • get_user_info: Get a Last.fm user's public profile: name, real name, country, play count, registration date and profile URL. Returns Last.fm's JSON as is.
  • get_artist_info: Get information about an artist: short biography, listener and play counts, similar artists and top tags. Returns Last.fm's JSON as is.
  • search_artists: Search Last.fm for artists by name; returns matching artists with listener counts. Returns Last.fm's JSON as is.
  • get_chart_top_tracks: List the most played tracks across all of Last.fm right now with play and listener counts. Returns Last.fm's JSON as is.
  • get_chart_top_artists: List the most played artists across all of Last.fm right now with play and listener counts. Returns Last.fm's JSON as is.

BYOK key

You bring your own Last.fm API key (https://www.last.fm/api/account/create). Your assistant sends it in the X-Upstream-Key header with each request. ConnectorBay uses it for that one call only: it is never stored, logged or cached, never shown in an answer, and it is only sent to ws.audioscrobbler.com over https, with no redirects followed. Create a key with the fewest permissions the tools need (read-only if the provider offers it), and revoke it at the provider whenever you like.

Data sources

Live from the Last.fm API (ws.audioscrobbler.com) with a BYOK key; documentation: https://www.last.fm/api. Endpoints checked against that documentation on 2026-10-16.

What it is not

Unofficial connector by Unify Dynamics LLC: not affiliated with, endorsed by or sponsored by Last.fm. Last.fm and its logos are trademarks of their owners and are used only to say which service the connector works with. It is read-only: it never creates, changes, sends or deletes anything in your Last.fm account.

Built for: Worldwide. Languages: English.