OP.GG Esports MCP server

Connects to OP.GG's League of Legends esports data to fetch and format upcoming match schedules with essential details including match names, leagues, scores, and direct links.
Back to servers
Provider
OP.GG
Release date
Apr 05, 2025
Language
TypeScript
Stats
5 stars

The OP.GG Esports MCP Server is a Model Context Protocol implementation that connects OP.GG Esports data with AI agents and platforms. It allows AI agents to retrieve upcoming League of Legends match schedules and information through function calling, providing a standardized interface for accessing esports data.

Installation Options

Via Smithery

For Claude Desktop users, install automatically via Smithery:

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

Manual Installation

Install and build the project:

# Install dependencies
pnpm install

# Build the project
pnpm build

Running the Server

Choose one of these methods to start the MCP server:

Using pnpm

pnpm start

Using Node.js directly

node dist/index.js

Using npx

npx -y @opgg/esports-mcp

MCP Configuration

Add this server to your MCP configuration (e.g., in Windsurf's mcp_config.json):

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

Or if using the npm package:

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

Using the Server

The OP.GG Esports MCP Server works with any MCP-compatible client. Here's how to interact with it:

Viewing Available Tools

To see what tools the server provides:

{ "type": "list_tools" }

The server will respond with:

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

Retrieving Match Schedules

To fetch upcoming match schedules:

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

Example response:

{
  "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..."
    }
  ]
}

Available Features

The server currently provides the following capabilities:

  • get-lol-matches: Retrieves and formats upcoming League of Legends match schedules from OP.GG Esports, including:
    • Match names
    • League information
    • Match status
    • Current scores
    • Scheduled times
    • Direct links to match pages

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later