How to integrate Last.fm using MCP
Music scrobbles, charts and tags. This guide creates an MCP server from Arthur's Last.fm template — tools preconfigured against https://ws.audioscrobbler.com/2.0 — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
LASTFM_API_KEYholding your API key. Create an API account at last.fm/api/account/create to get a free API key.


Go to the REST API Templates gallery and search for Last.fm.


Click Use template on the Last.fm card to open the server-creation dialog.


Review the server name and select
LASTFM_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 3 preconfigured tool(s): get_artist_info, get_top_tracks, search_track. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Get artist info, top tracks, user listening history, and music tags from Last.fm — the world's largest music listening database.
- This integration requires a credential (api-key). Get one at https://www.last.fm/api/account/create.
- Official API documentation: https://www.last.fm/api
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video