lol-client-mcp Public
Communicates with the League of Legends Live Client Data API to retrieve in-game data, offering tools to access game statistics, events, player information, abilities, runes, items, and scores during active gameplay.
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-client-mcp Public what's my current KDA in this game?"
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 Client MCP
An MCP (Model-Controller-Processor) server for accessing League of Legends client data. This server provides a collection of tools that communicate with the League of Legends Live Client Data API to retrieve in-game data.
Overview
This project accesses real-time game data using the League of Legends game client's Live Client Data API. It utilizes the FastMCP framework to expose various endpoints as tools.
API information can be found at https://developer.riotgames.com/docs/lol.
Related MCP server: League of Legends Stats MCP Server
Installation and Usage
Prerequisites
Python 3.8 or higher
uv - Fast and reliable Python package manager
Installation:
pip install uv
League of Legends client installed
Project Setup
Clone this repository:
git clone https://github.com/yourusername/lol-client-mcp.git
cd lol-client-mcpInstall required packages using uv:
uv pip install httpx fastmcpRunning the MCP Server
To run directly:
python main.pyIntegration with Claude
There are two ways to use this with Claude:
1. Claude Desktop Configuration
Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"lol-client-mcp": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\lol-client-mcp",
"run",
"main.py"
]
}
}
}Important: Replace C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\lol-client-mcp with the actual path to your project.
2. Using with Web Application
To connect the MCP server to the Claude web application:
Run the MCP server:
python main.pyConfigure the server connection in the Claude web interface:
Go to MCP settings at the bottom when starting a conversation
Select 'lol-client-mcp' and connect
API Tools List
Game Data
get_all_game_data(): The Live League of Legends Client Data API has a number of endpoints that return a subset of the data returned by the /allgamedata endpoint. This endpoint is great for testing the Live Client Data API, but unless you actually need all the data from this endpoint, use one of the endpoints listed below that return a subset of the response.get_game_stats(): Basic data about the game.get_event_data(): Get a list of events that have occurred in the game.
Active Player Data
get_active_player(): Get all data about the active player.get_active_player_name(): Returns the player name.get_active_player_abilities(): Get Abilities for the active player.get_active_player_runes(): Retrieve the full list of runes for the active player.
Player List and Individual Player Data
get_player_list(): Retrieve the list of heroes in the game and their stats.get_player_scores(riot_id): Retrieve the list of the current scores for the player.get_player_summoner_spells(riot_id): Retrieve the list of the summoner spells for the player.get_player_main_runes(riot_id): Retrieve the basic runes of any player.get_player_items(riot_id): Retrieve the list of items for the player.
Troubleshooting
Connection Error: Check if the League of Legends client is running.
Timeout Error: Verify that the game has actually started. This API does not work in the game lobby.
Precautions
This API only works when the League of Legends client is running and a game is in progress.
Use in compliance with Riot Games API policies.
License
All rights belong to Riot Games.
Available Tools
12 toolsget_active_playerC
Get all data about the active player.
Inputs: no named parameters.
get_active_player_abilitiesC
Get Abilities for the active player.
Inputs: no named parameters.
get_active_player_nameC
Returns the player name.
Inputs: no named parameters. Returns: result
get_active_player_runesB
Retrieve the full list of runes for the active player.
Inputs: no named parameters.
get_all_game_dataA
The Live League of Legends Client Data API has a number of endpoints that return a subset of the data returned by the /allgamedata endpoint. This endpoint is great for testing the Live Client Data API, but unless you actually need all the data from this endpoint, use one of the endpoints listed below that return a subset of the response.
Inputs: no named parameters.
get_event_dataC
Get a list of events that have occurred in the game.
Inputs: no named parameters.
get_game_statsD
Basic data about the game.
Inputs: no named parameters.
get_player_itemsB
Retrieve the list of items for the player.
Inputs: riot_id (required). Returns: result
get_player_listB
Retrieve the list of heroes in the game and their stats.
Inputs: no named parameters. Returns: result
get_player_main_runesC
Retrieve the basic runes of any player.
Inputs: riot_id (required).
get_player_scoresC
Retrieve the list of the current scores for the player.
Inputs: riot_id (required).
get_player_summoner_spellsC
Retrieve the list of the summoner spells for the player.
Inputs: riot_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Multiple tools have overlapping or unclear boundaries, causing potential confusion. For example, get_active_player_abilities, get_active_player_runes, and get_player_main_runes could be confused with each other or with get_active_player, and get_all_game_data overlaps in scope with several other tools like get_game_stats and get_event_data. The descriptions do not clearly differentiate these tools, leading to ambiguity in selection.
The naming is mostly consistent with a verb_noun pattern (e.g., get_active_player, get_game_stats), but there are minor deviations such as get_all_game_data using 'all' as a prefix and get_player_main_runes using 'main' as an adjective. Overall, the naming is readable and follows a predictable structure, with only slight inconsistencies.
With 12 tools, the count is reasonable for a League of Legends client data server, covering various aspects like player data, game stats, and events. It is slightly on the higher side but still well-scoped, as each tool targets specific data subsets, though some overlap exists. The number is appropriate for the domain without being excessive.
The tool set covers key data retrieval aspects such as player info, game stats, and events, but there are notable gaps. For instance, it lacks update or action-oriented tools (e.g., for interacting with the game), and some tools like get_all_game_data may duplicate others, reducing efficiency. While agents can work with the provided tools, the surface is not fully comprehensive for a complete client interaction experience.
Maintenance
Related MCP Connectors
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
The official MCP Server for the Mux API
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides access to League of Legends statistics via the SportData.io API, allowing agents to query and analyze LoL competitive gaming data.-
- AlicenseBqualityBmaintenanceMCP server exposing 30 tools for League of Legends player analysis, match review, and training-plan generation.3514 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Valorant esports analytics that exposes structured metrics and database query tools, enabling AI-assisted match analysis, player profiling, scouting reports, and coaching insights.Apache 2.0