Riot API文档服务

提供Riot Games旗下游戏(如英雄联盟、Valorant等)的API文档访问服务,包括列出可用文档和获取特定端点的完整文档。

  • by chirpon9
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 chirpon9/riot-docs-mcp

使用说明

防暴队

MCP服务器提供对英雄联盟、团队对抗战术、Valorant、Runeterra传奇等Riot Games API文档的访问。

特性

此服务器提供了两种访问Riot API文档的工具:

工具

  1. list_available_docs() -列出所有33个可用的Riot API端点文档文件

  2. get_endpoint_docs(filename: str) -检索特定终结点的完整文档

    • 例子: get_endpoint_docs("match-v5.md")
    • 返回完整的API文档,包括端点、参数和响应格式

安装

配合claude桌面使用

{
  "mcpServers": {
    "riot-docs": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/riot-docs",
        "run",
        "riot_docs_server"
      ]
    }
  }
}

选项2:

雨衣:

{
  "mcpServers": {
    "riot-docs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "@chirpon9/riot-docs-mcp",
        "--key",
        "{SMITHERY API KEY}"
      ]
    }
  }
}

窗户:

{
  "mcpServers": {
    "riot-docs-mcp": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@smithery/cli@latest",
        "run",
        "@chirpon9/riot-docs-mcp",
        "--key",
        "{smithery api key}"
      ]
    }
  }
}