Last.fm MCP Server
by ndyakovio.github.ndyakov/lastfm-mcpv0.1.0
Last.fm MCP server: scrobbles, charts, artist/album/track info and more
context tax
queued
security
queued
cold start
queued
freshness
Active2d ago
Install Last.fm MCP server
Install in Claude Code
claude mcp add lastfm-ndyakov -e LASTFM_API_KEY='<lastfm-api-key>' -e LASTFM_API_SECRET='<lastfm-api-secret>' -- docker run -i --rm -e LASTFM_API_KEY -e LASTFM_API_SECRET ghcr.io/ndyakov/lastfm-mcp:0.1.0Install in Cursor
{
"mcpServers": {
"lastfm-ndyakov": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.1.0"
],
"env": {
"LASTFM_API_KEY": "<lastfm-api-key>",
"LASTFM_API_SECRET": "<lastfm-api-secret>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"lastfm-ndyakov": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.1.0"
],
"env": {
"LASTFM_API_KEY": "<lastfm-api-key>",
"LASTFM_API_SECRET": "<lastfm-api-secret>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"lastfm-ndyakov": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.1.0"
],
"env": {
"LASTFM_API_KEY": "<lastfm-api-key>",
"LASTFM_API_SECRET": "<lastfm-api-secret>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"lastfm-ndyakov": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.1.0"
],
"env": {
"LASTFM_API_KEY": "<lastfm-api-key>",
"LASTFM_API_SECRET": "<lastfm-api-secret>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| LASTFM_API_KEY | yes | yes | Last.fm API key (https://www.last.fm/api/account/create) |
| LASTFM_API_SECRET | — | yes | Last.fm API secret; only needed for authenticated/write methods |
| LASTFM_ENABLE_WRITES | — | — | Set to 1 to enable scrobbling/write tools |
Freshness
Active — last maintenance signal 2d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-08 · 2d ago · GitHub
Latest release
2026-08-01 · 2mo ago · GitHub · v0.1.0
Package published
no data · npm/PyPI
Registry entry updated
2026-08-01 · 2mo ago · official registry · v0.1.0
FAQ
›How do I install the Last.fm MCP server in Claude Code?
Run: claude mcp add lastfm-ndyakov -e LASTFM_API_KEY='<lastfm-api-key>' -e LASTFM_API_SECRET='<lastfm-api-secret>' -- docker run -i --rm -e LASTFM_API_KEY -e LASTFM_API_SECRET ghcr.io/ndyakov/lastfm-mcp:0.1.0. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Last.fm require an API key?
Yes. It expects LASTFM_API_KEY, LASTFM_API_SECRET, of which 2 are secrets.
›Can I use Last.fm as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Last.fm in the official MCP registry?
Yes, as io.github.ndyakov/lastfm-mcp.