JL

johnnyinlee/lol-client-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

12 stars 5 forks 品質 62 トレンド 8Apache-2.0

League of Legends Game Client API MCP Server

概要

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. - Python 3.8 or higher - uv - Fast and reliable Python package manager - Installation: pip install uv - League of Legends client installed There are two ways to use this with Claude: Add the following to your claude_desktop_config.json file: : 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:

README

以下は原文 README の抜粋です。原文を見る。

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.

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

  1. Clone this repository:
git clone https://github.com/yourusername/lol-client-mcp.git
cd lol-client-mcp
  1. Install required packages using uv:
uv pip install httpx fastmcp

Running the MCP Server

To run directly:

python main.py

Integration 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:

  1. Run the MCP server:

    python main.py
    
  2. Configure 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.
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "lol-client-mcp": { "command": "uv", "args": [ "--directory", "C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\lol-client-mcp", "run", "main.py" ] } } }