home / mcp / lol client mcp server
League of Legends Game Client API MCP Server
Configuration
View docs{
"mcpServers": {
"johnnyinlee-lol-client-mcp": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\lol-client-mcp",
"run",
"main.py"
]
}
}
}You run a lightweight MCP server that taps into the League of Legends Live Client Data API to fetch real-time in-game data. The server exposes a set of practical tools you can call from an MCP client to retrieve game stats, active player data, events, and more, all while the LoL client is running.
Start by launching the MCP server in your environment. Once running, you can connect your MCP client (such as Claude or another integrating tool) to access endpoints that return game data like current stats, active player details, and event history. The server relies on the Live Client Data API provided by the LoL game client, so you should keep the LoL client open and a game in progress to obtain live data.
Prerequisites and setup are straightforward: ensure you have Python 3.8 or higher and the FastMCP tooling available via the UV wrapper.
Install the required Python packages using UV with the following command.
uv pip install httpx fastmcpThere are two common integration paths you can follow to connect with Claude.
1) Claude Desktop Configuration — add this MCP server entry to your claude_desktop_config.json.
{
"mcpServers": {
"lol-client-mcp": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\lol-client-mcp",
"run",
"main.py"
]
}
}
}To connect the MCP server to the Claude web application, follow these steps.
First, start the MCP server using Python.
python main.pyThe server is designed to work when the League of Legends client is running and a game is in progress. Ensure you comply with Riot Games API usage policies and only access data while a game is active.
- Connection issues: Make sure the League of Legends client is running and a game is in progress.
- Timeout issues: Confirm that a game has started; the API does not operate in the game lobby.
- The MCP server relies on real-time data from the LoL client and operates only while a game is actively in progress.
- Use in compliance with Riot Games API policies.
All rights belong to Riot Games.
Fetches data from a subset of the Live Client Data API endpoints for testing and broad data access.
Retrieves basic data about the current game session.
Returns a list of events that have occurred in the game.
Provides all data about the currently active player.
Returns the active player's name.
Fetches the abilities available to the active player.
Retrieves the full list of runes for the active player.
Retrieves the list of heroes in the game and their stats.
Gets the current scores for a specified player by riot_id.
Retrieves the summoner spells for a specified player.
Fetches the basic runes for a specified player.
Retrieves the list of items for a specified player.