MCP server
Last.fm
Last.fm MCP server: scrobbles, charts, artist/album/track info and more
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
- 5 days ago
About Last.fm
Last.fm is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add lastfm-mcp --env LASTFM_API_KEY='<LASTFM_API_KEY>' --env LASTFM_API_SECRET='<LASTFM_API_SECRET>' -- docker run -i --rm -e LASTFM_API_KEY -e LASTFM_API_SECRET ghcr.io/ndyakov/lastfm-mcp:0.2.0Add to claude_desktop_config.json
{
"mcpServers": {
"lastfm-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.2.0"
],
"env": {
"LASTFM_API_KEY": "<LASTFM_API_KEY>",
"LASTFM_API_SECRET": "<LASTFM_API_SECRET>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"lastfm-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.2.0"
],
"env": {
"LASTFM_API_KEY": "<LASTFM_API_KEY>",
"LASTFM_API_SECRET": "<LASTFM_API_SECRET>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"lastfm-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.2.0"
],
"env": {
"LASTFM_API_KEY": "<LASTFM_API_KEY>",
"LASTFM_API_SECRET": "<LASTFM_API_SECRET>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"lastfm-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.2.0"
],
"env": {
"LASTFM_API_KEY": "<LASTFM_API_KEY>",
"LASTFM_API_SECRET": "<LASTFM_API_SECRET>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"lastfm-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"LASTFM_API_KEY",
"-e",
"LASTFM_API_SECRET",
"ghcr.io/ndyakov/lastfm-mcp:0.2.0"
],
"env": {
"LASTFM_API_KEY": "<LASTFM_API_KEY>",
"LASTFM_API_SECRET": "<LASTFM_API_SECRET>"
}
}
}
}Configuration
LASTFM_API_KEYLast.fm API key (https://www.last.fm/api/account/create)RequiredLASTFM_API_SECRETLast.fm API secret; only needed for authenticated/write methodsLASTFM_ENABLE_WRITESSet to 1 to enable scrobbling/write tools
Pricing
Open source
Last.fm FAQ
Is Last.fm free?
Yes. Last.fm is open source, so you can use and self-host it for free.
How do I add Last.fm to Claude Code?
Run this command in your terminal: claude mcp add lastfm-mcp --env LASTFM_API_KEY='<LASTFM_API_KEY>' --env LASTFM_API_SECRET='<LASTFM_API_SECRET>' -- docker run -i --rm -e LASTFM_API_KEY -e LASTFM_API_SECRET ghcr.io/ndyakov/lastfm-mcp:0.2.0