SuperAPIAI Directory

opendota-mcp-server

github.com · AI developer platforms

Dota 2 statistics via the OpenDota API: player stats, hero data and match analysis.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

OpenDota MCP Server is a Model Context Protocol (MCP) server that provides AI assistants such as Claude with seamless access to the OpenDota API for querying Dota 2 player statistics, match data, and hero information.

Key capabilities

  • Provides more than 20 tools across 5 categories, offering comprehensive access to Dota 2 data.
  • Natural language support: fuzzy matching for hero names, lane positions, and statistical fields.
  • Dual transport modes: supports both stdio (local) and HTTP (remote) modes.
  • Rate limiting: built-in protection that complies with OpenDota API limits.
  • Reference data caching: fast queries through local hero/item data.

Available tools Player tools (6): query player statistics, win/loss records, hero preferences, and performance metrics.

  • get_player_info: retrieve player profiles, win rates, and frequently used heroes.
  • get_player_win_loss: win/loss statistics with advanced filtering.
  • get_heroes_played: detailed statistics for all heroes played.
  • get_player_peers: find teammates who frequently party together.
  • get_player_totals: aggregated player statistics.
  • get_player_histograms: match data distributed by statistical field.

Hero tools (4): access hero information, matchups, and item builds.

  • get_heroes: list all heroes and their attributes.
  • get_hero_matchups: matchup data and win rates.
  • get_hero_item_popularity: popular item builds by game stage.
  • get_hero_stats: aggregated hero statistics and pick rates.

Match tools (3): retrieve detailed match information and parsed data.

  • get_match_details: comprehensive match information.
  • get_parsed_match_details: parsed match data with advanced analysis.
  • get_player_recent_matches: a player's recent matches.

Query tools (4): convert names to IDs through fuzzy matching.

  • get_hero_id_by_name: hero name → ID (can handle spelling errors).
  • get_hero_by_id: get hero details by ID.
  • convert_lane_name_to_id: lane/position → lane_role ID.
  • resolve_time_name: time period name → OpenDota filter parameter.

Other tools (3): search and utility functions.

  • search_players: search for players by name.
  • get_constants: retrieve OpenDota constants and reference data.
  • get_player_counts: retrieve player counts by rank tier.

Usage Prerequisites: Python 3.10 or later, pip package manager.

Install from source: Option one: local server (stdio mode), suitable for integrating Claude Desktop on this machine. Configuration file locations: on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, %APPDATA%\Claude\claude_desktop_config.json; on Linux, ~/.config/Claude/claude_desktop_config.json. It is recommended to add the installed command to claude_desktop_config.json after running pip install -e . Note: replace /path/to/your/opendota-mcp-server with the actual path to the cloned repository. On macOS/Linux, you can run pwd in the project directory to see the path; on Windows, you can run cd to see the full path. You can also use the Python module or a shell script directly. After updating the configuration, fully restart Claude Desktop and start a new conversation, and the OpenDota tools will be available.

Option two: remote server (HTTP mode), which allows access to a deployed server from any location. Use the publicly deployed server address https://opendota-mcp-server-jylza6gata-ew.a.run.app/mcp . Add it in claude_desktop_config.json, or go to Claude.ai → Settings → MCP Servers, click "Add Server", enter the server URL, then save and start a conversation.

Option three: deploy it yourself. It can be deployed to Google Cloud Run or any container platform.

Environment variables Create a .env file in the project root directory (or copy it from .env.example).

OpenDota API key (optional): the key is optional, but it is recommended for a higher rate limit and better performance. Without a key, the limit is 60 requests/minute (anonymous); with a key, registered users enjoy a higher limit. How to get it: visit https://www.opendota.com/api-keys , log in with a Steam account, click "Create API Key", copy the generated key, add it to the .env file: OPENDOTA_API_KEY = your-api-key-here , then restart the server. After configuration, the server will automatically detect and use the key, and a confirmation message will appear in the logs.

Use cases and limitations It is suitable for users who want to use an AI assistant to query and analyze Dota 2 statistics in natural language. The project itself does not provide other pricing, cost, or platform support information. Use is subject to the OpenDota API rate limits; without an API key, the rate is limited.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools