mcp-riot

MCP.Pizza Chef: jifrozen0110

MCP-Riot is an open-source MCP server that connects to the Riot Games API to deliver League of Legends player data, ranked stats, champion mastery, and match summaries to AI assistants through natural language queries. It enables real-time retrieval of detailed player profiles and game history, enhancing AI workflows with rich gaming context. This server is community-developed and not affiliated with Riot Games.

Use This MCP server To

Retrieve player ranked stats and level via natural language Fetch recent match summaries for League of Legends players Query top champion masteries for a given player Provide AI assistants with real-time League of Legends game data Enable chatbots to answer player-specific game questions Integrate League of Legends stats into gaming dashboards Support esports analytics with live player data Automate generation of player performance reports

README

smithery badge

MCP Riot Server

MCP-Riot is a community-developed Model Context Protocol (MCP) server that integrates with the Riot Games API to provide League of Legends data to AI assistants via natural language queries.

This project enables AI models to retrieve player information, ranked stats, champion mastery, and recent match summaries.

Disclaimer: This is an open-source project not affiliated with or endorsed by Riot Games. League of Legends® is a registered trademark of Riot Games, Inc.


Demo

mcp-riot-lol

✨ Features

🧾 Player Summary

"What's the current rank and top champions of Hide on bush?"

Provides the player's:

  • Level
  • Ranked Solo Tier
  • Top champion masteries
  • Recent match history

🔝 Top Champions

"What champions is he best at?"

Returns the top N champions based on mastery points.

🎯 Champion Mastery

"How good is this player with Ahri?"

Returns detailed champion mastery data for a specific champion.

🕹️ Recent Matches

"Show the last 3 matches for this summoner"

Lists recent matches including champion used, K/D/A, and result.

📊 Match Summary

"Summarize this match for a given match ID"

Returns the player’s match stats, such as KDA, damage, wards, and result.


🚀 Quick Start

1. Clone & Install

git clone https://github.com/jifrozen0110/mcp-riot.git
cd mcp-riot

# Install dependencies (using uv or pip)
uv sync

2. Get Your API Key and Set Environment

Create .env file with your Riot API key:

RIOT_API_KEY=your_riot_api_key

You can get your key from https://developer.riotgames.com/

3. Configure MCP Client

Register this server in your MCP client (e.g., Claude for Desktop).

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
    "mcpServers": {
        "amadeus": {
            "command": "/ABSOLUTE/PATH/TO/PARENT/FOLDER/uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER",
                "run",
                "--env-file",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/.env",
                "riot.py"
            ]
        }
    }
}

Replace /ABSOLUTE/PATH/TO/PARENT/FOLDER/ with the actual path to your project folder.

my case:

{
    "mcpServers": {
        "amadeus": {
            "command": "/Users/jifrozen/.local/bin/uv",
            "args": [
                "--directory",
                "/Users/jifrozen/mcp-riot/src/",
                "run",
                "--env-file",
                "/Users/jifrozen/mcp-riot/.env",
                "server.py"
            ]
        }
    }
}

🛠️ Tools

The following tools will be exposed to MCP clients:

get_player_summary

Summarizes level, rank, top champions, and recent matches.

get_top_champions_tool

Returns top champions by mastery points.

get_champion_mastery_tool

Returns mastery details for a specific champion.

get_recent_matches_tool

Returns recent matches for the given summoner.

get_match_summary

Returns match performance stats for a given match ID and puuid.


📚 References


📝 License

MIT License © 2025 jifrozen0110

mcp-riot FAQ

How do I authenticate the MCP-Riot server with the Riot Games API?
You need to provide a valid Riot Games API key in the server configuration to enable data access.
Can MCP-Riot handle multiple player queries simultaneously?
Yes, MCP-Riot supports concurrent requests to fetch data for multiple players in real time.
Is MCP-Riot officially supported by Riot Games?
No, MCP-Riot is a community-developed open-source project and is not affiliated with or endorsed by Riot Games.
What types of player data can MCP-Riot provide?
It provides player level, ranked solo tier, top champion masteries, and recent match history.
How does MCP-Riot format the data for AI models?
Data is structured into natural language summaries and JSON objects suitable for LLM consumption.
Can MCP-Riot be extended to support other Riot Games titles?
While currently focused on League of Legends, the server architecture allows potential extension to other Riot APIs.
What are the rate limits when using MCP-Riot?
Rate limits depend on your Riot Games API key and Riot's API policies, not MCP-Riot itself.
How do I deploy MCP-Riot?
MCP-Riot can be deployed as a standalone server with access to the Riot API and configured via environment variables or config files.