关于 Riot Games
Riot Games 是用于访问 Riot Games API 公开数据的 MCP 服务,涵盖 League of Legends、TFT、Valorant 和 LoR。提供账号、对局、排名、精通度、轮换及平台状态工具;需要 API 密钥。
主要功能
- 01查询账号和召唤师信息
- 02获取对局详情和时间线
- 03查询对局 ID 和排位数据
- 04查看英雄轮换和精通度
- 05查看平台状态
适用场景
- 01检查玩家近期对局
- 02查看对局详情和时间线
- 03查询排位数据或英雄精通度
MCP 相关
通过 Pipeworx 网关端点或本地 stdio MCP 服务提供 Riot Games API 工具。API 需要 Riot 密钥;网关还提供共享的 Pipeworx 元工具,本地服务仅提供此项目的工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/riot-games/mcpclaude mcp add --transport http pipeworx-io-riot-games https://gateway.pipeworx.io/riot-games/mcp{"mcpServers":{"pipeworx-io-riot-games":{"type":"http","url":"https://gateway.pipeworx.io/riot-games/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-riot-games":{"type":"http","url":"https://gateway.pipeworx.io/riot-games/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-riot-games":{"type":"http","url":"https://gateway.pipeworx.io/riot-games/mcp"}}}{"mcpServers":{"pipeworx-io-riot-games":{"serverUrl":"https://gateway.pipeworx.io/riot-games/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/riot-games
Riot Games API MCP — League of Legends + TFT + Valorant + LoR 公共数据。免费开发者密钥(24 小时,100 次请求 / 2 分钟);用于生产环境时,请申请永久密钥。
属于 Pipeworx — 一个将 AI Agent 连接到 1743+ 个实时数据源的 MCP 网关。这是一个独立的非官方集成,与上游提供商无关联、未经其认可,也非其发布。
身份验证
- 平台:
PLATFORM_RIOT_KEY。自带密钥:?_apiKey=…。
工具(LoL)
account_by_riot_id(region, game_name, tag_line)— riot ID → puuid(region =americas|europe|asia)account_by_puuid(region, puuid)— 按 puuid 查询账号summoner_by_puuid(platform, puuid)— 召唤师详情(platform =na1|euw1| …)summoner_by_name(platform, name)— 已弃用,请使用 riot-id 流程match_ids_by_puuid(region, puuid, start?, count?, queue?, type?, startTime?, endTime?)— 最近的对局 IDmatch(region, match_id)— 对局详情match_timeline(region, match_id)— 对局时间线league_entries(platform, queue, tier, division, page?)— 排位条目champion_rotations(platform)— 免费英雄轮换champion_mastery(platform, puuid)— 英雄熟练度summoner_top_mastery(platform, puuid, count?)— 熟练度最高的前 N 名status(platform)— 平台状态
数据源
https://<region|platform>.api.riotgames.com
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"riot-games": {
"url": "https://gateway.pipeworx.io/riot-games/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/riot-games/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 都会连接到同一个网关和相同的 1743+ 个数据源。唯一的区别是直接列出哪个工具包的工具;无论连接哪一个,ask_pipeworx 都能访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
此工具包需要你提供自己的 API 密钥(_apiKey)— 我们不会为它代理密钥,因此这里没有无需密钥即可运行的 curl 命令。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/account_by_riot_id。查找工具:使用 {"query":"..."} 发送 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账号)
此软件包也可以作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账号,也无需与网关往返通信:
{
"mcpServers": {
"riot-games": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-riot-games"]
}
}
}
也可以直接运行它,确认服务能够启动:
npx -y @pipeworx/mcp-riot-games
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,但仅提供此工具包的工具 — 不包含上述网关连接额外提供的任何通用元工具。数据源相同,工具相同,但没有 ask_pipeworx 路由功能。
使用 ask_pipeworx
你可以不用直接调用工具,而是用通俗英语提问 — 此功能既适用于上文的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Riot Games data" })
网关会选择合适的工具并自动填写参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。