关于 Last Fm
Last Fm 的 MCP 服务提供艺人、专辑和曲目资料查询,以及热门曲目和艺人搜索。适合需要访问 Last.fm 音乐元数据的 Agent,也支持用户热门曲目查询。
主要功能
- 01查询艺人简介、相似艺人和标签
- 02查看艺人热门曲目
- 03查询专辑与曲目资料
- 04搜索曲目并查看用户热门曲目
- 05查询标签及全站热门艺人
适用场景
- 01查找艺人简介与相似音乐人
- 02检索专辑或曲目元数据
- 03查看指定用户的常听曲目
- 04探索热门艺人和标签音乐
MCP 相关
向 MCP 客户端提供 Last.fm 音乐查询工具,可通过 Pipeworx 网关连接,也可作为本地 stdio MCP 服务运行。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/last-fm/mcpclaude mcp add --transport http pipeworx-io-last-fm https://gateway.pipeworx.io/last-fm/mcp{"mcpServers":{"pipeworx-io-last-fm":{"type":"http","url":"https://gateway.pipeworx.io/last-fm/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-last-fm":{"type":"http","url":"https://gateway.pipeworx.io/last-fm/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-last-fm":{"type":"http","url":"https://gateway.pipeworx.io/last-fm/mcp"}}}{"mcpServers":{"pipeworx-io-last-fm":{"serverUrl":"https://gateway.pipeworx.io/last-fm/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
50| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| q | string | 否 | question 的别名。 |
| ask | string | 否 | question 的别名。 |
| text | string | 否 | question 的别名。 |
| input | string | 否 | question 的别名。 |
| packs | array | 否 | 可选。将路由限制为这些包的 slug(例如 ["sec-form-d","sec-13f"]),路由器随后只会从这些包中的工具进行选择。省略则使用默认的完整目录路由。Slug 可从 list_packs / search_packs / https://pipeworx.io/directory 获取;未列出或未知的 slug 会被忽略,并在 _meta.pack_scope.ignored 中列出。如果没有任何 slug 能匹配问题,则会在整个目录中路由,并设置 _meta.pack_scope.full_catalog:true(绝不会返回空答案)。 |
| query | string | 否 | question 的别名。 |
| prompt | string | 否 | question 的别名。 |
| message | string | 否 | question 的别名。 |
| question | string | 是 | 用自然语言表达的问题或请求。支持 query、q、prompt、text、input、ask、message 作为别名。 |
详细介绍
@pipeworx/last-fm
Last.fm MCP — 艺术家 / 专辑 / 曲目元数据 + scrobbling。免费 API 密钥(在 https://www.last.fm/api/account/create 注册)。
属于 Pipeworx — 一个将 AI Agent 连接到 1882+ 个实时数据源的 MCP 网关。这是独立的非官方集成,与上游提供方无关联、未获其认可,也非由其发布。
身份验证
- 平台密钥:
PLATFORM_LASTFM_KEY。 - 自带密钥:
?_apiKey=…。
工具
artist_info(artist, mbid?, lang?)— 艺术家简介 + 相似艺术家 + 标签artist_top_tracks(artist, mbid?, limit?)— 艺术家播放量最高的曲目artist_similar(artist, mbid?, limit?)— 相似艺术家album_info(artist, album, mbid?)— 专辑元数据track_info(artist, track, mbid?)— 曲目元数据track_search(query, limit?)— 搜索曲目user_top_tracks(user, period?, limit?)— 用户播放量最高的曲目(周期:overall|7day|1month|3month|6month|12month)tag_top_artists(tag, limit?)— 某个标签下最热门的艺术家chart_top_artists(limit?)— 全球最热门的艺术家
数据源
https://ws.audioscrobbler.com/2.0/
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"last-fm": {
"url": "https://gateway.pipeworx.io/last-fm/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/last-fm/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 共享元工具 — ask_pipeworx、
discover_tools、search_within、remember/recall 和网关范围内的其余工具集。因此,你看到的工具数量会多于此表所列:目前,单个工具包端点除了该工具包自己的工具外,还会列出大约 30 个共享工具。连接的 initialize 响应会说明其准确范围,并且是当天适用范围的权威说明。
这是有意设计的,并非意外的多路复用。元工具能让限定范围的连接回答此工具包未涵盖的问题 — 通过可跨整个目录路由的 ask_pipeworx — 而无需你添加第二个 MCP 服务。目前无法挂载不包含这些元工具的工具包端点;如果额外的架构定义占用的上下文比路由带来的价值还多,请连接完整网关一次,而不是连接多个工具包端点。
或者,连接完整的 Pipeworx 网关,直接列出每个工具包的工具,而不只是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都连接到同一个网关和相同的 1882+ 个数据源。唯一的区别在于哪些工具包的工具会被直接列出;无论连接哪一个,ask_pipeworx 都能访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/artist_info \
-H 'Content-Type: application/json' \
-d '{"artist":"The Beatles"}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/artist_info。查找工具:使用 {"query":"..."} 向 POST https://gateway.pipeworx.io/v1/tools/search_packs 发送请求。
独立运行(无需网关账户)
此软件包也可作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账户,也无需往返网关:
{
"mcpServers": {
"last-fm": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-last-fm"]
}
}
}
也可以直接运行,确认它能启动:
npx -y @pipeworx/mcp-last-fm
它通过 stdin/stdout 使用 MCP 通信,并且只为此工具包的工具响应 initialize/tools/list/tools/call — 不包含上述网关连接额外提供的任何共享元工具。数据源相同,工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你可以用通俗的语言提问,而不是直接调用工具 — 此功能既适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Last Fm data" })
网关会选择合适的工具并自动填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。