LoL Data MCP Server
Integrates with Discord to provide real-time champion information, build recommendations, and community meta insights for bots and applications.
Enables integration with JetBrains IDEs via the MCP protocol to provide League of Legends data and statistics directly within the developer environment.
Provides a data backbone for building React-based web and mobile applications focused on League of Legends analytics and data visualization.
Extracts and provides community-driven meta insights and strategy trends from League of Legends subreddits.
Connects to official Riot Games APIs to provide live match data, player analytics, and comprehensive game statistics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LoL Data MCP ServerWhat is the best build for Ahri in the current patch?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LoL Data MCP Server
An MCP server that lets an AI assistant look up League of Legends champions, items and runes on the official LoL Wiki.
You ask the assistant in your editor: "What are Taric's stats at level 6?"
The assistant calls this server's get_champion_stats tool with {"champion": "Taric", "level": 6}.
The server opens Taric's wiki page in a headless browser, picks level 6 in the stats dropdown, and returns the numbers as JSON.
What it does: 9 MCP tools. They return champion stats (any level 1 to 18), abilities, item data, rune data, and patch history for champions, items and runes.
Why you can trust the numbers: every answer is read from wiki.leagueoflegends.com when you ask, so it follows the wiki's current patch.
Who decides: the assistant picks the tool and the arguments; the server only reads and structures the wiki page.
Personal project, 2025. Part of Project Taric, four repos with one goal, an AI that plays Taric:
Repo | Part | What exists |
The author's own Taric games | Riot API collection and feature scripts | |
Lol_Data_MCP_Server (this repo) | Game data for the other parts | A working MCP server with 9 tools |
The training lane for RL | Core game classes | |
The agent (IL + RL) | Design documents |
Quick start
You need Python 3.9 or newer and Google Chrome (Selenium drives it headless for stats, abilities and patch notes).
git clone https://github.com/Estaed/Lol_Data_MCP_Server.git
cd Lol_Data_MCP_Server
python -m venv venv
venv\Scripts\activate # Windows; on macOS/Linux: source venv/bin/activate
pip install -r requirements.txt
python -m src.mcp_server.stdio_serverThe server reads one JSON-RPC message per line on stdin and answers on stdout. To check it by hand, paste this line; it answers with the 9 tools:
{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}A tool call from the editor looks like this (sent as one line):
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {"name": "get_champion_stats", "arguments": {"champion": "Taric", "level": 6}}
}To use it from Cursor, add it to the MCP settings. This follows the repo's own Windows setup; put your folder in place of <path>:
{
"mcpServers": {
"lol-data": {
"command": "powershell",
"args": [
"-Command",
"cd '<path>\\Lol_Data_MCP_Server'; .\\venv\\Scripts\\python -m src.mcp_server.stdio_server"
]
}
}
}Related MCP server: OP.GG MCP Server
How it works
flowchart LR
A["AI assistant<br/>(Cursor)"] --> B["stdio server<br/>JSON-RPC lines"]
B --> C["MCPHandler<br/>9 tools"]
C --> D["Services<br/>champions, items, runes"]
D --> E["Scrapers<br/>httpx, BeautifulSoup, Selenium"]
E --> F["LoL Wiki"]
classDef lit stroke:#C23C00,stroke-width:3px
class E litConnect.
stdio_server.pyreads one JSON message per line.MCPHandleranswersinitialize,tools/listandtools/call.Pick a tool. A
ToolRegistryholds the 9 tools. Each tool publishes a JSON schema for its arguments intools/list.Ask a service. Each tool calls a service for champions, items or runes (
src/services/).Scrape the wiki. The scrapers fetch pages with
httpxand parse them with BeautifulSoup. Champion pages that need clicks (the level dropdown, ability details, patch history) run in headless Chrome through Selenium. Page requests wait at least 1 s apart, and champion pages are cached on disk for 24 hours.Answer. The result goes back as JSON text inside the MCP response.
Tool | Required | Optional | Returns |
|
|
| Base stats, or stats at that level |
|
|
| All abilities, or one |
|
|
| Patch history, or one patch |
|
|
| Stats, recipe, cost analysis, notes, similar items |
|
|
| Item patch history |
|
|
| Sidebar, notes and strategy |
|
|
| Rune patch history |
|
| Echo, to test the connection | |
| Name, version and tool count |
HTTP and WebSocket. src/mcp_server/server.py runs the same handler in FastAPI, for testing without an editor. It listens on localhost:8000, with GET /health and a WebSocket at /mcp:
python -m src.mcp_server.serverTests. Tests for champion stats and abilities, items and runes are in tests/. Run them from the repo root:
pytestConfiguration. YAML files in config/ hold server, data-source and per-environment settings.
Documents.
docs/lol_data_mcp_server.md: the full specification and task log.docs/RECOMMENDATIONS.md: performance recommendations, ordered by file.src/mcp_server/README.md: what each server file does.
Role in Project Taric. The server is the data source for the other parts: champion, item and rune data for the simulator (Lol_Sim_Env) and the agent (Taric_AI_Agent).
LoL Data MCP Server is not endorsed by Riot Games. League of Legends is a trademark of Riot Games, Inc.
This server cannot be deployed
Maintenance
Related MCP Connectors
Live competitive-game predictions, meta data and decision tools for AI agents.
Teamfight Tactics data & AI coaching for Claude and ChatGPT — 19 tools, built-in Riot key.
The Dappier MCP server connects LLMs and AI agents to real-time, rights-cleared, proprietary data from trusted sources across various domains. It provides specialized knowledge through real-time web search, financial stock market and crypto data access, AI-powered content recommendations from premium publishers, and structured outputs with sub-300ms response times, enabling AI systems to respond to current events and trends.
Esports cognitive-combine data over MCP: free cohort stats, paid player & team scouting reports.
Related MCP Servers
- AlicenseBqualityCmaintenanceA community-developed Model Context Protocol server that integrates with the Riot Games API to provide League of Legends data, enabling AI assistants to retrieve player information, ranked stats, champion mastery, and match summaries through natural language queries.527MIT

OP.GG MCP Serverofficial
AlicenseBqualityCmaintenanceA Model Context Protocol implementation that enables AI agents to retrieve game data from OP.GG for League of Legends, Teamfight Tactics, Valorant, and esports through function calling.24104MIT- AlicenseNot gradedqualityDmaintenanceProvides real-time access to League of Legends esports data including live matches, schedules, leagues, event details, and VODs through a standardized interface.1GPL 3.0
- AlicenseBqualityBmaintenanceMCP server exposing 30 tools for League of Legends player analysis, match review, and training-plan generation.3511 npm1MIT