内容
# Last.fm MCP
主要用于测试 MCP(多通道并行处理)
# 方法
* `get_users_weeks_top_tracks` - 获取用户一周的热门歌曲 - 你需要告诉 Claude 要传递的用户名
* `get_lastfm_top_tracks` - 获取 Last.fm 全球热门歌曲。
# 在 Claude Desktop 中的用法
将以下内容添加到你的 `claude_desktop_config.json` 中:
## NPX
```
{
"globalShortcut": "",
"mcpServers": {
"lastfm": {
"command": "uv",
"args": [
"--directory",
"DIR/TO/REPO/HERE",
"run",
"last-fm.py"
],
"env": {
"LASTFM_API_KEY": "APIKEYHERE"}
}
}
}
```
# 示例
