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.
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.
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.
pip install uv
git clone https://github.com/yourusername/lol-client-mcp.git cd lol-client-mcp
uv pip install httpx fastmcp
To run directly:
python main.py
There are two ways to use this with Claude:
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.
To connect the MCP server to the Claude web application:
Run the MCP server:
python main.py
Configure the server connection in the Claude web interface:
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.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.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.All rights belong to Riot Games.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!