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.
For Claude Desktop users, install automatically via Smithery:
npx -y @smithery/cli install @opgginc/esports-mcp --client claude
Install and build the project:
# Install dependencies
pnpm install
# Build the project
pnpm build
Choose one of these methods to start the MCP server:
pnpm start
node dist/index.js
npx -y @opgg/esports-mcp
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"]
}
}
}
The OP.GG Esports MCP Server works with any MCP-compatible client. Here's how to interact with it:
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"
}
]
}
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..."
}
]
}
The server currently provides the following capabilities:
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.
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"
]
}
}
}
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.
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.