Last.fm MCP server
Artist listening figures from Last.fm. Add one address to your AI assistant and it can call the tool below itself, with your FoxAPIs key. It costs the same credits as the REST API, and an answer with no data is not charged.
Server address
https://foxapis.com/mcp/data/lastfm
Streamable HTTP, bearer key in the Authorization header. This address carries only the Last.fm tool; https://foxapis.com/mcp/data carries all of them, and ?source=lastfm,github picks several.
What you can ask
Five prompts to give your assistant once the server is added:
- How many listeners does Radiohead have on Last.fm?
- What tags does Last.fm give Radiohead?
- Which artists are similar to Radiohead on Last.fm?
- Compare the Last.fm listeners of two artists I name.
- What is the total play count of an artist I name on Last.fm?
The tool your assistant gets
| Tool | What it returns | Inputs | Credits a call |
|---|---|---|---|
lastfm_artist | A Last.fm artist: listeners, play count, top tags and similar artists, from the artist name. | artist (required) | 1 |
Credits come from the same file as the pricing page. Plans and top-ups are on pricing.
Set it up
Use your FoxAPIs key (it starts with fxp_) as the bearer token. Get one free at foxapis.com/trial.
Claude Code
Run in a terminal. Its docs.
claude mcp add --transport http foxapis-data https://foxapis.com/mcp/data/lastfm \ --header "Authorization: Bearer YOUR_KEY"
The Claude Code docs show this form (--transport http, name, URL, --header) for a server that takes a bearer token.
Cursor
.cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project. Its docs.
{
"mcpServers": {
"foxapis-data": {
"url": "https://foxapis.com/mcp/data/lastfm",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}Cursor's remote-server example uses a url and a headers object.
VS Code (Copilot)
.mcp.json at the workspace root, or ~/.copilot/mcp-config.json. Its docs.
{
"mcpServers": {
"foxapis-data": {
"type": "http",
"url": "https://foxapis.com/mcp/data/lastfm",
"headers": {
"Authorization": "Bearer YOUR_KEY"
},
"tools": [
"*"
]
}
}
}Do not store a real key in a file you share.
Cline
cline_mcp_settings.json (open it from Cline's MCP Servers panel). Its docs.
{
"mcpServers": {
"foxapis-data": {
"type": "streamableHttp",
"url": "https://foxapis.com/mcp/data/lastfm",
"headers": {
"Authorization": "Bearer YOUR_KEY"
},
"disabled": false,
"autoApprove": []
}
}
}Cline's docs say that leaving type out selects the older SSE transport, so keep type.
Zed
settings.json (Zed: open settings). Its docs.
{
"context_servers": {
"foxapis-data": {
"url": "https://foxapis.com/mcp/data/lastfm",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
n8n
an MCP Client Tool node in a workflow. Its docs.
Endpoint: https://foxapis.com/mcp/data/lastfm Server transport: HTTP Streamable Authentication: Header Auth Name: Authorization Value: Bearer YOUR_KEY
Not run by us: the fields are the ones n8n's MCP Client Tool documents. The server speaks Streamable HTTP.
Claude Desktop and ChatGPT
Not covered here: their custom-connector screens ask for sign-in (OAuth) or no authentication, and this server takes a bearer key in a header, so it works best in the clients above. We have not tested it in either.
A real answer
The lastfm_artist tool called once through a real MCP client session on 20 November 2026 with the input {"artist":"Radiohead"}. Long text is cut and lists are cut to three items for display; it is not invented.
{
"platform": "lastfm",
"name": "Radiohead",
"listeners": 8522662,
"playcount": 1436878655,
"on_tour": false,
"tags": [
"rock",
"alternative",
"alternative rock"
],
"similar_artists": [
"Thom Yorke",
"Atoms for Peace",
"Muse"
],
"bio_summary": "Radiohead is an English rock band formed in Abingdon, Oxfordshire, in 1985. The band consists of Thom Yorke (vocals, guitar, piano, keybo...",
"image_url": "https://lastfm-img.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png",
"mbid": "a74b1b7f-71a5-4011-9441-d0b5e4122711",
"lastfm_url": "https://www.last.fm/music/Radiohead",
"listeners_note": "Total unique listeners (all-time cumulative, not monthly)",
"credits_used": 1,
"latency_ms": 136
}
Charged: 1 credit.
Try it free
Runs the lastfm_artist call with the sample input below. No key and no sign-up; a few runs a day per visitor.
{
"artist": "Radiohead"
}
Other data-source MCP servers
Podcasts · Academic papers · Show HN · Launch directories · GitHub release history · GitHub · all of them
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keyThe same data over REST: Last.fm artist. More: all MCP servers · people and company tools