OP.GG MCP服务器
OP.GG MCP 服务器是一个模型上下文协议 (MCP) 实现,可将 OP.GG 数据与 AI 代理和平台无缝连接。该服务器允许 AI 代理通过函数调用检索各种 OP.GG 数据。
概述
此 MCP 服务器通过标准化接口为 AI 代理提供访问 OP.GG 数据的权限。它提供了一种连接到我们远程服务器 ( https://mcp-api.op.gg/mcp/sse ) 的简便方法,从而轻松安装并立即以 AI 模型和代理框架易于处理的格式访问 OP.GG 数据。
Related MCP server: MCP Base
特征
OP.GG MCP 服务器目前支持以下工具:
英雄联盟
lol-champion-analysis :获取特定冠军的分析数据
lol-champion-leader-board :获取冠军的排名
电子竞技(英雄联盟)
esports-lol-schedules :获取即将举行的英雄联盟比赛日程
esports-lol-team-standings :获取英雄联盟战队排名
云顶之弈(TFT)
tft-meta-trend-deck-list :TFT 卡牌列表工具,用于检索当前元卡牌
tft-meta-item-combinations :用于检索有关物品组合和配方信息的 TFT 工具
tft-champion-item-build :TFT 用于检索冠军物品构建信息的工具
tft-recommend-champion-for-item :TFT 工具,用于检索特定物品的冠军推荐
tft-play-style-comment :此工具提供有关 TFT 冠军游戏风格的评论
勇敢者
valorant-meta-maps :Valorant 地图元数据
valorant-meta-characters : Valorant 角色元数据
valorant-leaderboard :按地区获取 Valorant 排行榜
valorant-agents-composition-with-map :检索 Valorant 地图的代理组成数据
valorant-characters-statistics :检索 Valorant 的角色统计数据,可选择按地图过滤
valorant-player-matches :使用游戏名称和标语检索 Valorant 玩家的比赛历史记录
用法
OP.GG MCP 服务器可与任何兼容 MCP 的客户端配合使用。以下内容以 Claude Desktop 为例,讲解安装方法。
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 OP.GG MCP:
$ npx -y @smithery/cli@latest install @opgginc/opgg-mcp --client claude --key {SMITHERY_API_KEY}添加到 MCP 配置
要将此服务器添加到您的 Claude Desktop MCP 配置中,请将以下条目添加到您的claude_desktop_config.json文件中:
Mac/Linux
{
"mcpServers": {
"opgg-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@opgginc/opgg-mcp",
"--key",
"{SMITHERY_API_KEY}"
]
}
}
}视窗
{
"mcpServers": {
"opgg-mcp": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@smithery/cli@latest",
"run",
"@opgginc/opgg-mcp",
"--key",
"{SMITHERY_API_KEY}"
]
}
}
}添加配置后,重新启动 Claude Desktop 以使更改生效。
通过 SSE 直接连接
如果您想直接连接到我们的 SSE 端点,可以使用mcp-remote软件包。这提供了一种简单的方法连接到我们的远程服务器,而无需安装完整的 OP.GG MCP 服务器。
将以下内容添加到您的claude_desktop_config.json文件中:
Mac/Linux
{
"mcpServers": {
"opgg-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-api.op.gg/mcp/sse"
]
}
}
}视窗
{
"mcpServers": {
"opgg-mcp": {
"command": "cmd",
"args": [
"/c",
"npx",
"mcp-remote",
"https://mcp-api.op.gg/mcp/sse"
]
}
}
}此配置将使用mcp-remote包与我们的 SSE 端点建立直接连接,让您立即访问所有 OP.GG 数据工具。
列出可用工具
{
"method": "tools/list",
"params": {}
}回复:
{
"tools": [
{
"name": "lol-champion-analysis",
"description": "Fetch analysis data for a specific champion"
},
{
"name": "lol-champion-leader-board",
"description": "Fetch that champion's rank"
},
{
"name": "esports-lol-schedules",
"description": "Get upcoming LoL match schedules"
},
{
"name": "esports-lol-team-standings",
"description": "Get team standings for a LoL league"
},
{
"name": "tft-meta-trend-deck-list",
"description": "TFT deck list tool for retrieving current meta decks"
},
{
"name": "tft-meta-item-combinations",
"description": "TFT tool for retrieving information about item combinations and recipes"
},
{
"name": "tft-champion-item-build",
"description": "TFT tool for retrieving champion item build information"
},
{
"name": "tft-recommend-champion-for-item",
"description": "TFT tool for retrieving champion recommendations for a specific item"
},
{
"name": "tft-play-style-comment",
"description": "This tool provides comments on the playstyle of TFT champions"
},
{
"name": "valorant-meta-maps",
"description": "Valorant map meta data"
},
{
"name": "valorant-meta-characters",
"description": "Valorant character meta data"
},
{
"name": "valorant-leaderboard",
"description": "Fetch Valorant leaderboard by region"
},
{
"name": "valorant-agents-composition-with-map",
"description": "Retrieve agent composition data for a Valorant map"
},
{
"name": "valorant-characters-statistics",
"description": "Retrieve character statistics data for Valorant, optionally filtered by map"
},
{
"name": "valorant-player-matches",
"description": "Retrieve match history for a Valorant player using their game name and tag line"
}
]
}执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。