Skip to main content
Glama

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

Related MCP server: lol-client-mcp Public

✨ 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

Available Tools

5 tools
get_champion_mastery_toolC

🎯 Get the player's mastery info for a specific champion.

Returns detailed mastery data (level, points, last play time, etc.) for the requested champion.

Inputs: game_name (required), tag_line (required), champion_name (required), language.

get_match_summaryA

📊 Get a detailed summary of a specific match for a given player.

Extracts and returns only the relevant stats (KDA, damage, vision, win/loss, etc.) from the match.

Inputs: match_id (required), puuid (required).

get_player_summaryB

🧾 Get a complete summary of a player's profile.

Includes level, solo rank, top champion masteries, and recent matches in a single output.

Inputs: game_name (required), tag_line (required), language.

get_recent_matches_toolC

🕹️ Get the player's recent match history.

Returns a brief summary of the player's most recent matches, including champion, score, and result.

Inputs: game_name (required), tag_line (required), count.

get_top_champions_toolC

🔝 Get the player's top champion masteries.

Returns a list of the player's most-played champions based on mastery points.

Inputs: game_name (required), tag_line (required), language, count.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    Most tools have distinct purposes, but 'get_player_summary' includes top champions and recent matches, overlapping with 'get_top_champions_tool' and 'get_recent_matches_tool', which could cause agent confusion.

    Naming Consistency3/5

    All tools start with 'get' and use snake_case, but two tools have a '_tool' suffix ('get_champion_mastery_tool', 'get_recent_matches_tool') while others lack it, creating inconsistency.

    Tool Count5/5

    5 tools is well-scoped for a Riot Games data server, covering essential player and match info without being too few or too many.

    Completeness4/5

    The set covers core player data (mastery, matches, summary) but lacks operations like summoner search or match timeline, leaving minor gaps.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      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.
      12
      12
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      A comprehensive League of Legends data ecosystem that provides access to champion statistics, item data, and patch history via the Model Context Protocol. It enables analysis of game mechanics, build optimization, and meta tracking through real-time data integration.
      1
      MIT