
传奇联盟游戏客户端 API MCP 服务器
概览
一个用于访问"传奇联盟"客户端数据的MCP(Model-cloop-Processor)服务器. 这个服务器提供了与"传奇联盟"Live客户端数据API通信的工具集以检索游戏中的数据. 这个项目使用"传奇联盟"游戏客户端的Live客户端数据API访问实时游戏数据. 它利用FastMCP框架将各种终点暴露为工具. API信息可在 [[T0] 找到 - Python 3.8或更高 - uv - 快速而可靠的 Python 套件管理器 - 安装: pip s安装 uv - League of Legends 客户端已安装 和克洛德一起使用这个有两种方法: 在您的 Claude desktop config.json 文件中添加以下内容 : : 替换 C:\ABSOLUTE\PATH\TO\PARENT\FOLDER\lol-client-mcp ,替换您的项目的实际路径。 要将 MCP 服务器连接到 Claude 网络应用程序 :
概述(AI 翻译)
一个用于访问"传奇联盟"客户端数据的MCP(Model-cloop-Processor)服务器. 这个服务器提供了与"传奇联盟"Live客户端数据API通信的工具集以检索游戏中的数据.
□ 概览
这个项目使用"传奇联盟"游戏客户端的Live客户端数据API访问实时游戏数据. 它利用FastMCP框架将各种终点暴露为工具.
API信息可在 [[T0] 找到
□ 安装和使用
· 先决条件
- 3.8级或以上 快速可靠的 Python 软件包管理器
- 安装:
pip install uv - 安装了传奇联盟客户端
QQ 项目设置
-
克隆此存储器:
-
使用 uv 安装所需的软件包:
管理 MCP 服务器
要直接运行 :
与克洛德融合
和克洛德一起使用这个有两种方法:
- 克洛德桌面配置
在您的 [[T2] 文件中添加以下内容 :
** 重要性**:用项目的实际路径替换[[T3]。
QQ 2. 使用网络应用程序
要将 MCP 服务器连接到 Claude 网络应用程序 :
- 联合国.
本页由 AI 翻译,技术细节请以原文为准。
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
- Installation:
- League of Legends client installed
Project Setup
- Clone this repository:
git clone https://github.com/yourusername/lol-client-mcp.git
cd lol-client-mcp
- 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:
-
Run the MCP server:
python main.py -
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.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"lol-client-mcp": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\lol-client-mcp",
"run",
"main.py"
]
}
}
}