opgg-esports

Integrations

  • Connects directly to the OP.GG Esports GraphQL API to retrieve upcoming League of Legends match schedules and information

OP.GG电子竞技MCP服务器

OP.GG Esports MCP 服务器是一个模型上下文协议 (MCP) 实现,可将 OP.GG Esports 数据与 AI 代理和平台无缝连接。该服务器使 AI 代理能够通过函数调用检索即将进行的英雄联盟比赛日程和信息。

概述

该 MCP 服务器通过标准化接口为 AI 代理提供访问 OP.GG Esports 数据的权限。它基于 TypeScript 和 Node.js 构建,可直接连接到 OP.GG Esports GraphQL API,并将数据格式化为 AI 模型和代理框架易于理解的格式。

特征

OP.GG Esports MCP 服务器目前支持以下工具:

  • get-lol-matches :从 OP.GG Esports 获取并格式化即将举行的英雄联盟比赛日程
    • 返回比赛名称、联赛、状态、比分、预定时间以及比赛的直接链接
    • 将数据格式化为干净、结构化的格式,以供 AI 使用

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 OP.GG Esports MCP:

npx -y @smithery/cli install @opgginc/esports-mcp --client claude

使用 npm/pnpm

# Install dependencies pnpm install # Build the project pnpm build

运行服务器

使用 pnpm

# Start the MCP server on stdio pnpm start

直接使用 Node.js

# Start using Node.js node dist/index.js

使用 npx

# Run directly with npx npx -y @opgg/esports-mcp

添加到 MCP 配置

要将此服务器添加到您的 MCP 配置(例如,Windsurf 的 mcp_config.json),请添加以下条目:

{ "mcpServers": { "opgg-esports": { "command": "node", "args": ["/path/to/esports-mcp/dist/index.js"] } } }

或者,如果已发布,您可以使用 npm 包:

{ "mcpServers": { "opgg-esports": { "command": "npx", "args": ["-y", "@opgg/esports-mcp"] } } }

用法

OP.GG Esports MCP 服务器可与任何兼容 MCP 的客户端配合使用。以下是一些示例:

列出可用的工具

{ "type": "list_tools" }

回复:

{ "tools": [ { "name": "get-lol-matches", "description": "Get upcoming LoL match schedules from OP.GG Esports" } ] }

获取即将举行的比赛日程

{ "type": "tool_call", "tool_call": { "name": "get-lol-matches" } }

回复:

{ "content": [ { "type": "text", "text": "Upcoming match schedules:\n\nMatch: Team A vs Team B\nLeague: LCK\nStatus: SCHEDULED\nScore: 0 - 0\nScheduled at: 4/6/2025, 7:00:00 PM\nDetails: https://esports.op.gg/matches/12345\n---\n..." } ] }

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

相关链接

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

将AI代理连接到OP.GG电竞数据,轻松检索英雄联盟即将进行的比赛日程。通过标准化界面访问结构化的比赛信息,利用实时电竞数据增强AI的能力。

  1. Overview
    1. Features
      1. Installation
        1. Installing via Smithery
        2. Using npm/pnpm
        3. Running the server
        4. Adding to MCP configuration
      2. Usage
        1. Listing available tools
        2. Fetching upcoming match schedules
      3. License
        1. Related Links
          ID: cmk5dqd5la