Skip to main content
Glama

opendota-mcp

中文文档

A Model Context Protocol server that gives LLMs and agents direct access to Dota 2 data through the OpenDota API — with full data mapping (every hero/item/ability id resolved to names, every enum to human-readable labels) and 28-language localization of game-entity names.

Built so an agent can answer questions like "敌法师克制哪些英雄?", "What did SumaiL play in his last 5 ranked matches?", or "Show me the latest pro matches and break down the draft" — without ever seeing a raw numeric id.

Highlights

  • 54 tools covering the whole public OpenDota API (64 with an optional STRATZ token): matches, players, heroes, teams, pro scene, leagues, live games, scenarios, raw SQL explorer, constants, search, and replay-parse submission.

  • Data mapping for LLMs — responses are compact and readable out of the box:

    • hero_id: 53 → hero: { id: 53, name: "自然先知", name_en: "Nature's Prophet" }

    • game_mode: 22 → "All Draft", lobby_type: 7 → "Ranked", rank_tier: 55 → "Legend 5"

    • durations → "37:22", timestamps → ISO, per-player KDA/win/side computed, win rates pre-calculated

  • Statistically honest aggregates: every win rate carries a 95% confidence half-width (win_rate_ci95_pp) and small samples are flagged low_sample, so agents say "countered, 62% ± 4" instead of quoting noise as fact.

  • 28 languages for hero/item/ability names (English, 简体中文, 繁體中文, Русский, Español, Português, Français, Deutsch, 日本語, 한국어, ไทย, Tiếng Việt, Türkçe, + more), generated from Valve's official localized game data. Per-tool language parameter or a global default via env.

  • Community nicknames (黑话): 火猫, 大骨灰, 白牛, 跳刀, BKB ... 180+ curated nickname mappings work anywhere a name is accepted; ambiguous ones (猴子/ES) return candidates so the agent asks instead of guessing (see below).

  • Agent-friendly entry points: search_dota_entities resolves any localized or English name ("敌法师", "blink dagger", "祈求者") to the ids other tools need; search_players finds account ids by display name.

  • Optional STRATZ layer (STRATZ_API_TOKEN, free): ten rank-bracket/position-split aggregate tools with full-pool samples — bracket counters, item builds, talent/skill stats, lane matchups, position stats, patch trends, counter-pick and full lineup composition analysis with data-backed coaching notes.

  • Guidance baked in: 4 registered MCP prompts (match-analysis, player-review, hero-guide, meta-report) plus a loadable Agent Skill encoding the full analysis playbook.

  • Polite API client: built-in token-bucket rate limiting (respects the 60/min free tier), response caching with disk persistence, 429 handling, and optional OPENDOTA_API_KEY support.

Related MCP server: opendota-mcp-server

Quick start

Requirements: Node.js ≥ 18.

git clone https://github.com/yuxiang115/opendota-mcp.git
cd opendota-mcp
npm install
npm run build
node dist/index.js   # starts the MCP server on stdio

Or run directly once published / from the repo with npx:

npx opendota-mcp
# or from a checkout
npx .

The package ships an Agent Skill (skill/SKILL.md) that teaches the host agent the full Dota analysis playbook (which tools to call, how to read enriched fields, rank-bracket data boundaries). Skills are loaded by the host application, not the MCP server, so after adding the server run:

npx opendota-mcp install-skill          # auto-detects installed hosts
npx opendota-mcp install-skill all      # force every supported host
npx opendota-mcp install-skill zcode    # or pick: claude-code | zcode | openclaw
npx opendota-mcp install-skill openclaw --force   # overwrite an existing skill (updates)

Manual equivalent if you prefer:

Host

Where the skill goes

Claude Code

~/.claude/skills/opendota/SKILL.md

ZCode

~/.agents/skills/opendota/SKILL.md

openclaw

openclaw skills install <repo>/skill

No install yet

curl -fsSL https://raw.githubusercontent.com/yuxiang115/opendota-mcp/main/skill/SKILL.md -o SKILL.md

Restart the host (or start a new session) afterwards. Everything works without the skill too — it just shortens the agent's path to the right tools.

Environment variables

Variable

Default

Description

OPENDOTA_API_KEY

(none)

Your OpenDota API key — raises the rate limit from 60/min to 3000/min.

OPENDOTA_LANGUAGE

english

Default language for hero/item/ability names. Accepts Steam codes (schinese) or tags (zh-CN).

OPENDOTA_BASE_URL

https://api.opendota.com/api

Point at a self-hosted OpenDota instance if you run one.

OPENDOTA_RATE_LIMIT

55 (or 1200 with a key)

Max requests/minute the client will send.

STRATZ_API_TOKEN

(none)

Enables the STRATZ tools. Free token from stratz.com/api (Steam login). Adds 10 rank-bracket/position-split aggregate tools (see below).

STRATZ_BASE_URL

https://api.stratz.com/graphql

Override for testing.

OPENDOTA_ALIASES_FILE

~/.config/opendota-mcp/aliases.json if present

Extra community-nickname mappings (see below).

Community nicknames (黑话)

Chinese players rarely call heroes/items by their official names — they say 火猫 (Ember Spirit), 大骨灰 (Spirit Vessel), 白牛 (Spirit Breaker), 跳刀 (Blink Dagger). The server ships 180+ curated nickname mappings that work everywhere a name is accepted: search_dota_entities, hero params, item params. Ambiguous nicknames (猴子 = Phantom Lancer or Monkey King, ES = four different spirits) deliberately do not resolve — the tools return the candidates so the agent asks the user instead of guessing.

Missing a nickname? Drop a JSON file at ~/.config/opendota-mcp/aliases.json (or point OPENDOTA_ALIASES_FILE at it):

{ "heroes": { "我的外号": "ember_spirit" }, "items": { "我的道具": "blink" } }

Targets are npc-internal names; invalid targets are ignored silently, and user entries override the builtins. PRs adding entries to src/aliases.ts are welcome.

STRATZ-powered bracket stats (optional)

OpenDota's public scenario endpoints no longer filter by rank bracket and its hero-vs-hero aggregates draw from a small parsed-match sample (~100 games per pairing). When STRATZ_API_TOKEN is set, ten additional tools register, backed by STRATZ's GraphQL API with full-pool samples (tens of thousands of games) and bracket/position filters:

Tool

Answers

get_matchups_by_rank

Who does a hero beat / lose to at a given bracket (with 95% CIs). Pass vs_hero for one exact pairing, even mid-table ones.

get_item_builds_by_rank

Which items a hero buys at a bracket/position, average purchase minute, and win rate.

get_talent_stats

Which talent choice actually wins, per bracket/position.

get_skill_builds_by_rank

Skill builds per bracket/position: at what hero level each ability gets its first point and is maxed, with share + win rates.

get_hero_position_stats

Per-position games, win rates and full per-game profile (K/D/A, damage, tower damage) — is the hero a 1 or a 4?

get_draft_composition

Coach-level lineup analysis: damage mix, control concentration, sustain gap, early/mid/late windows for both teams + data-backed coaching notes.

get_match_coaching

One-call post-game coaching report: feed a match_id — auto-detects the bracket from player medals, both lineups portrait, every player vs bracket averages, timing verdict, coach notes.

get_lane_matchups

Lane-phase outcomes (win/loss/draw) vs each opponent hero.

get_draft_advice

Given the enemy lineup (+ your allies), ranks counter picks with per-enemy win rates and ally synergy.

get_hero_trend

Win rate per patch (all 8 brackets supported) — is the hero still good after the nerf?

Brackets map to STRATZ's tiers (herald_guardian … divine_immortal); the trend tool supports all 8 fine brackets. All win rates are recomputed from raw counts and every row carries win_rate_ci95_pp / low_sample so agents quote numbers honestly. STRATZ requests are cached (30 min) and rate-throttled.

HTTP deployment (Docker)

For a shared always-on server (remote MCP clients instead of per-host stdio):

  1. Clone and start. Every setting is optional — an unset value means the feature is simply off (open access, no operator credentials):

git clone https://github.com/yuxiang115/opendota-mcp.git && cd opendota-mcp
OPENDOTA_HTTP_TOKEN=$(openssl rand -hex 24) docker compose up -d --build
# or: echo "OPENDOTA_HTTP_TOKEN=..." > .env && docker compose up -d --build
# or nothing at all -> open access, callers bring their own credentials
  1. Put nginx (or any TLS proxy) in front for HTTPS — disable buffering and raise read timeouts for the SSE stream. /healthz is an unauthenticated liveness probe. Running the image without compose: set OPENDOTA_TRANSPORT=http and PORT. The disk cache persists in the opendota-cache volume.

Connecting MCP clients

Every client needs the URL (https://your-host/mcp). If the server operator set OPENDOTA_HTTP_TOKEN, also send it as a header: Authorization: Bearer <token> — that token is just the door key, it decides who may connect and nothing else. (No token configured = open access.)

Bring your own quota (optional): by default every caller shares the server's OpenDota rate limit and (if configured) its STRATZ token. To use your OWN credentials instead, add these headers to the client config — the server bills each request to the caller's keys:

Header

What it is

X-OpenDota-Key

Your OpenDota API key (60/min free → 3000/min).

X-Stratz-Token

Your STRATZ token — the 10 bracket/position tools light up for your session even if the server has none configured.

Strict bring-your-own server: leave the upstream env credentials unset entirely. Callers without headers still get every OpenDota tool on the free tier (60 req/min shared per server IP); the STRATZ tools simply do not appear in their tool list. No errors, no degraded warnings — each session sees exactly what its credentials unlock.

Claude Code:

claude mcp add --transport http opendota https://your-host/mcp   --header "Authorization: Bearer <your token>"

Cursor / Claude Desktop / any MCP client with JSON config:

{
  "mcpServers": {
    "opendota": {
      "type": "http",
      "url": "https://your-host/mcp",
      "headers": {
        "Authorization": "Bearer <your token>",
        "X-OpenDota-Key": "<your own OpenDota key, optional>",
        "X-Stratz-Token": "<your own STRATZ token, optional>"
      }
    }
  }
}

ChatGPT (connectors): Settings → Apps & Connectors → Advanced → Add new connector, paste the MCP URL. ChatGPT's UI cannot set custom headers, so pass credentials as URL query params instead — one URL unlocks everything:

https://your-host/mcp?stratz_token=<your STRATZ token>

(Query params end up in proxy access logs — fine for a home deployment, avoid on shared infrastructure.)

Smoke-test the endpoint with curl (expect mcp-session-id in the response headers; without the header you get 401):

curl -i https://your-host/mcp \
  -H "Authorization: Bearer <your token>" \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}'

Claude Code

claude mcp add opendota -- npx opendota-mcp

Claude Desktop

Add to claude_desktop_config.json (Stores → Claude Desktop → config):

{
  "mcpServers": {
    "opendota": {
      "command": "npx",
      "args": ["opendota-mcp"],
      "env": {
        "OPENDOTA_LANGUAGE": "english"
      }
    }
  }
}

Cursor / other MCP clients

{
  "mcpServers": {
    "opendota": {
      "command": "npx",
      "args": ["opendota-mcp"]
    }
  }
}

Windows note: Claude Desktop (and some other clients) cannot spawn npx directly on Windows — use the cmd /c wrapper instead:

{ "command": "cmd", "args": ["/c", "npx", "-y", "opendota-mcp"] }

This pattern is covered by the integration test (npm run integration).

Tools

Lookup & system

Tool

Description

search_dota_entities

Resolve hero/item/ability names (English or any supported localized name) to numeric ids. Start here.

search_players

Find players by display name → account ids.

list_supported_languages

All available localization languages.

get_api_health

OpenDota service health.

get_constants

Raw OpenDota constants resource (heroes, items, item_ids, abilities, ability_ids, game_mode, lobby_type, region, patch, ...).

Matches

Tool

Description

get_match

Full match detail as a compact enriched view (heroes/items/abilities named, KDA/GPM/XPM per player, optional picks_bans/teamfights/objectives/chat/graphs/logs via include).

request_match_parse

Submit a match for replay parsing and poll until finished (default waits 45s; deep data then available via get_match).

get_parse_job_status

Poll a parse job.

Players

All player-match tools accept the standard OpenDota filters (hero_id, game_mode, patch, date, win, lane_role, with_hero_id, against_hero_id, limit/offset, ...). One deliberate default change: this server sends significant=0 (ALL game modes, Turbo included) where OpenDota's own default silently hides Turbo games — pass significant=1 for standard-mode-only stats.

Tool

Description

get_player

Profile + rank medal ("Immortal", "Legend 3") + MMR estimate.

get_player_recent_matches

~20 most recent matches, enriched.

get_player_matches

Filtered match history.

get_player_win_loss

Win/loss counts + win rate.

get_player_heroes

Most-played heroes with win rates.

get_player_peers

Duo/party partners: games, win rate together, avg GPM/XPM while partied — the "how do we perform as a stack" view.

get_player_opponents

People you keep getting matched against: scans recent matches (incl. Turbo) → repeat enemies, their rank, favorite heroes vs you, your win rate against them.

get_player_partnership

Duo drill-down with ONE friend: same-side vs against games and win rates, both players' most-picked heroes in shared games (who picks what when partied), last time together.

get_player_pros

Pro players encountered.

get_player_totals

Lifetime aggregates (kills, gold, damage...).

get_player_counts

Matches by mode/lobby/lane/region/patch (ids resolved).

get_player_histogram

Distribution of one stat.

get_player_wardmap

Ward placement heatmap.

get_player_wordcloud

Chat word counts.

get_player_rating_history

Rank medal history.

get_player_hero_rankings

Hero leaderboard percentiles.

refresh_player

Ask OpenDota to refresh a player's history.

Heroes

Tool

Description

get_heroes

All heroes with localized names, attributes, roles, base stats.

get_hero_kit

Full ability reference for a hero (accepts id or name, any language): every ability with description, mana cost, cooldown, per-level numbers, Aghanim's flags, plus all talents and non-deprecated facets — no more guessing what newer heroes do.

get_item_details

Item reference for up to 10 items (id/name, any language): cost, active/passive effects, stat attributes, cooldown/mana, components.

get_hero_stats

Pick/ban/win rates by bracket (Herald→Immortal, pro, turbo).

get_hero_matchups

Counter relationships vs every other hero (win rates).

get_hero_recent_matches

Recent public matches on a hero.

get_hero_benchmarks

Percentile benchmarks by rank bracket.

get_hero_item_popularity

Items by game phase, named.

get_hero_duration_performance

Win rate by game-duration bin.

get_hero_players

Top players of a hero.

get_hero_rankings

Global hero leaderboard.

Scenarios & explorer

Aggregated public-match statistics via OpenDota's scenario/explorer datasets (parsed matches only; no rank-bracket filter upstream — the STRATZ tools above cover bracket splits).

Tool

Description

get_item_timing_stats

Win rate by item purchase timing ("PA with Battle Fury before minute 15: 58%").

get_lane_role_stats

Win rate per lane role × game-length bin.

get_public_matches

Live feed of recent public matches by rank bracket, heroes resolved.

get_skill_builds

Most common ability-upgrade orders with per-level win rates (SQL aggregation).

get_hero_synergy

Best/worst allies for a hero by same-team win rate.

get_item_winrate_vs_hero

Item win rate against one specific enemy — the with/without cross-tab ("Ember with Spirit Vessel vs Necrophos: 52.8% vs 46.2%").

get_explorer_schema

Table/column dictionary of the public SQL dataset.

run_explorer_query

Run your own read-only SQL against it.

Teams, pro scene & live

Tool

Description

get_teams / get_team

Pro teams by rating / one team's profile.

get_team_matches / get_team_players / get_team_heroes

Team match history, roster, hero pool.

get_pro_matches

Latest professional matches.

get_pro_players

Registered pro players.

get_leagues / get_league_matches

Leagues and their matches.

get_live_matches

Top live games with heroes and ranks.

Prompts

Four ready-made workflow prompts are registered on the server (slash menu / prompt picker in MCP clients), encoding the validated analysis playbooks:

Prompt

Use

match-analysis

Full post-game breakdown: timeline, lanes, draft, blame analysis with data evidence.

player-review

Recent form: win rates, hero pool, rank trend, improvement advice.

hero-guide

Complete current-patch guide for one hero (abilities → bracket stats → counters → builds → timing).

meta-report

Patch meta report by bracket with pro-scene signals.

Localization

Hero, item and ability names are localized into 28 languages, generated from Valve's official localized Dota 2 data feeds (npm run build:locales regenerates the tables in locales/):

english, schinese (简体中文), tchinese (繁體中文), japanese, koreana, russian, spanish, latam, brazilian, portuguese, french, german, italian, turkish, polish, czech, danish, dutch, finnish, greek, hungarian, norwegian, romanian, swedish, thai, vietnamese, ukrainian, bulgarian.

Pass language on any tool that returns game-entity names ("schinese", "zh-CN", "ru", ...), or set OPENDOTA_LANGUAGE globally. Every name field is returned as { name: <localized>, name_en: <English> } so agents can cross-reference guides in either language. Rank medal names are localized too, using Valve's official client terms (DOTARankTierName: 万古流芳 = Ancient, 冠绝一世 = Immortal, ...) for schinese/tchinese; other languages fall back to English medal names.

Example: enriched match view

get_match(match_id=8978292022, language="schinese") returns (abridged):

{
  "radiant_win": true,
  "duration": "37:22",
  "game_mode": "Captains Mode",
  "league": "EPL Masters 2026",
  "players": [
    {
      "is_radiant": true, "win": true,
      "personaname": "pray",
      "hero": { "id": 53, "name": "自然先知", "name_en": "Nature's Prophet" },
      "kills": 6, "deaths": 2, "assists": 21, "kda": 13.5,
      "gold_per_min": 901, "xp_per_min": 1062, "last_hits": 649,
      "items": [{ "slot": 0, "id": 116, "name": "闪烁匕首", "name_en": "Blink Dagger" }]
    }
  ]
}

Development

npm install
npm run build           # compile src/ → dist/
npm run build:locales   # re-fetch Valve localization feeds → locales/
npm run integration     # end-to-end tests over stdio (incl. mock-upstream regression tests)
npm run smoke           # quick end-to-end pass with real API calls
npm run check           # typecheck only

Every upstream endpoint is cached at the HTTP layer (shared across tools, persisted to disk), tiered by how fast the data actually changes:

Tier

TTL

Covers

parsed matches

7 days (+disk)

replay analysis is immutable — repeat reviews and 30-match social scans cost 0 requests

unparsed matches

10 min

until the parse lands; entries auto-upgrade once parsed

aggregates

6 hours

heroStats, matchups, benchmarks, scenario tables, explorer SQL

player profiles

1 hour

peers, hero pools, ratings, totals, teams

live/recent

60 s

recent matches, live feed, search

constants

1 h SWR (+bundle)

heroes/items/abilities

STRATZ queries cache for 4 hours (24 h for version tables). Game constants are bundled with the package (constants-bundle/, regenerated by npm run build:data and refreshed daily by CI). At boot the server sends a single patch-probe request and compares it to the bundle: matching means the seeded constants are used with zero further fetches, while a newer patch (new heroes/items always ship with one) triggers an immediate background refresh. Entries then refresh hourly via stale-while-revalidate. Typical upstream cost: cold start + a fully-enriched match analysis = 2 requests; repeat questions about the same match = 0. A constants-bundle miss simply falls back to fetching everything from the API.

The bundle updates itself: every successful network fetch of a constants resource is written back into constants-bundle/ (best-effort — read-only installs such as npx caches silently keep the shipped copy), and the manifest's max_patch_id advances with it. So the seed gets fresher the longer the server runs; users never need to update anything manually. OPENDOTA_BUNDLE_PERSIST=0 disables write-back.

Project layout:

src/
├── index.ts        # stdio MCP server entry, tool registration
├── config.ts       # env handling
├── client.ts       # OpenDota HTTP client: rate limiting, caching, errors
├── constants.ts    # OpenDota constants loaders + enum labels
├── aliases.ts      # community nickname tables + user extension
├── locales.ts      # 28-language name tables + language normalization
├── mapping.ts      # id→name resolution, enum→label, row enrichment
├── enrich.ts       # match/heroStats/itemPopularity transformers
└── tools/          # tool definitions by domain
locales/            # generated name tables (one dir per language)
scripts/            # build-locales, smoke test

Attribution

  • Data: OpenDota API — an open Dota 2 data platform.

  • Bracket-split aggregates (optional): STRATZ API — free GraphQL Dota 2 statistics.

  • Localized names: Valve's official Dota 2 data feeds.

  • Dota 2 is a trademark of Valve Corporation. This project is not affiliated with Valve, OpenDota or STRATZ.

License

MIT

Available Tools

42 tools
get_api_healthA

Check OpenDota API service health/statistics. Useful to verify connectivity before deeper queries.

Inputs: no named parameters.

get_constantsA

Get a raw OpenDota game-constants resource (heroes, items, abilities, item_ids, ability_ids, game_mode, lobby_type, region, patch, cluster, countries, ...). Note: OpenDota constants are English-only; for localized names prefer tools with a language parameter.

Inputs: resource (required).

get_hero_benchmarksB

Benchmarks for a hero: what various percentiles of players achieve (last hits, kills, GPM, ...) by rank bracket (1 Herald ... 8 Immortal; omit for all).

Inputs: hero_id (required), bracket.

get_hero_duration_performanceA

A hero's win rate binned by match duration bucket (in 5-minute bins: '0-5', '5-10', ...). Shows hero power curve across game length.

Inputs: hero_id (required).

get_heroesA

List all Dota 2 heroes with names (localized + English), primary attribute, attack type, roles, and base stats. Good starting point for hero questions.

Inputs: language.

get_hero_item_popularityA

Item popularity for a hero by game phase (start_game_items, early_game_items, mid_game_items, late_game_items), with item names resolved.

Inputs: hero_id (required), language.

get_hero_matchupsA

How a hero performs against every other hero (games played and win rate from public matches). The classic 'counters' lookup — low win_rate vs a hero means that hero counters this one.

Inputs: hero_id (required), limit, language.

get_hero_playersC

Players who have played a hero recently (account id, name, games, wins), with win rates.

Inputs: hero_id (required).

get_hero_rankingsB

Global top players on a hero (leaderboard scores and ranks).

Inputs: hero_id (required).

get_hero_recent_matchesB

Recent public matches on a hero (per-player rows: account id, rank, KDA, items-lite), enriched.

Inputs: hero_id (required), limit, language.

get_hero_statsA

Full hero statistics: pick/ban counts and win rates across pro play, public skill brackets (Herald through Immortal) and turbo, with hero names resolved. Use for meta/tier questions.

Inputs: language.

get_league_matchesB

Matches played in a league/tournament, enriched. Use get_leagues to find league ids.

Inputs: league_id (required), language.

get_leaguesB

All tracked leagues/tournaments with ids and tiers (professional, premium, ...).

Inputs: no named parameters.

get_live_matchesB

Top live games currently in progress (average rank, spectate count, scoreboard) with hero names.

Inputs: language.

get_matchA

Get a Dota 2 match by id as a compact, human-readable view: heroes/items/abilities resolved to names, game mode/lobby/skill/region as labels, per-player KDA/GPM/XPM/items, and optional pick-ban draft. Works with parsed matches too ( richer item/ability data when available).

Inputs: match_id (required), include, language.

get_parse_job_statusA

Check the status of a match parse job submitted via request_match_parse.

Inputs: job_id (required).

get_playerA

Get a player's profile and current competitive standing: display name, avatar, country, rank medal (e.g. 'Immortal', 'Legend 3'), leaderboard position, MMR estimate.

Inputs: account_id (required).

get_player_countsA

Match counts broken down by leaver status, game mode, lobby type, lane role, region and patch, with ids resolved to readable names.

Inputs: account_id (required), win, date, sort, +15 more.

get_player_heroesB

Heroes a player has played (with the standard filters), with hero names, games, wins, win rate, and with/against splits.

Inputs: account_id (required), win, date, sort, +16 more.

get_player_hero_rankingsC

A player's hero leaderboard rankings (top-100 percentile scores per hero), with hero names.

Inputs: account_id (required), language.

get_player_histogramB

Distribution of one stat for a player, e.g. wins per x-value. Common fields: kills, deaths, assists, gold_per_min, xp_per_min, last_hits, hero_damage, duration, lane_role, leaver_status, game_mode.

Inputs: field (required), account_id (required), win, date, +16 more.

get_player_matchesA

Get a player's rated match history with rich filters (hero, game mode, patch, date range, side, with/against heroes, ...). Each row is enriched with hero name, win/loss, game mode label. For summaries use get_player_win_loss or get_player_heroes instead.

Inputs: account_id (required), win, date, sort, +17 more.

get_player_peersC

Players this player has played with most: names, games together, wins, win rate.

Inputs: account_id (required), limit.

get_player_prosC

Professional players this player has played with or against, with team affiliations.

Inputs: account_id (required), limit.

get_player_rating_historyB

History of a player's rank medal changes over time (rank_tier snapshots per match).

Inputs: account_id (required).

get_player_recent_matchesA

Get a player's ~20 most recent matches (regardless of filters), enriched with hero names, win/loss, KDA, game mode, skill bracket.

Inputs: account_id (required), language.

get_player_totalsC

Lifetime aggregate totals for a player (kills, deaths, assists, last hits, gold, damage, ... as field/sum pairs).

Inputs: account_id (required), win, date, sort, +15 more.

get_player_wardmapA

Ward placement heatmap for a player: total observer/sentry counts plus the raw position maps (keys are x,y on a 64x64 grid — divide by 64 for map fraction; game coords = value*range/64).

Inputs: account_id (required), win, date, sort, +15 more.

get_player_win_lossA

Get a player's win/loss counts (with the same filters as get_player_matches) plus win rate.

Inputs: account_id (required), win, date, sort, +15 more.

get_player_wordcloudA

Words said in this player's matches, sorted by count: words by the player (my_words) and by everyone (all_words). Useful for chat-toxicity or tilt flavor.

Inputs: account_id (required), win, date, sort, +15 more.

get_pro_matchesA

Most recent professional matches (league, teams, score, duration), newest first. Paginate with less_than_match_id. Enriched with readable fields.

Inputs: limit, language, less_than_match_id.

get_pro_playersA

List of professional players with their teams, countries and Steam ids.

Inputs: no named parameters.

get_teamA

Get one professional team's profile (rating, wins/losses, logo, tags).

Inputs: team_id (required).

get_team_heroesC

Heroes a pro team plays most, with games, wins and win rates.

Inputs: team_id (required), language.

get_team_matchesC

A pro team's recent matches, enriched with hero names for both sides and game mode labels.

Inputs: team_id (required), limit, language.

get_team_playersC

Players who played for a team, with games played, wins, and current-member flag.

Inputs: team_id (required).

get_teamsA

List professional teams ranked by rating, with wins/losses and recent ratings.

Inputs: page.

list_supported_languagesA

List the languages available for hero/item/ability name localization, with their Steam codes (e.g. "schinese") and labels. Pass one of these to the language parameter of other tools.

Inputs: no named parameters.

refresh_playerA

Ask OpenDota to refresh a player's match history (up to ~500 recent matches), medal and profile name. Use when a player's data looks stale, then re-query. Counts as 1 API call.

Inputs: account_id (required).

request_match_parseA

Submit a match for full replay parsing and WAIT for it to finish (default 45s). Unparsed matches lack teamfights/graphs/ward logs; once parsed, call get_match with include.teamfights for the deep view. Counts as 10 API calls. If status comes back unfinished, retry later or poll with get_parse_job_status.

Inputs: match_id (required), wait_seconds.

search_dota_entitiesA

Find heroes/items/abilities by name (English or any supported localized name) and get their numeric ids. Use this FIRST to resolve names like "敌法师", "Anti-Mage", "blink dagger", "祈求者" into the ids other tools need (hero_id, item ids, ...). Case-insensitive substring match.

Inputs: query (required), kind, limit, language.

search_playersA

Search Dota 2 players by display name (personaname). Returns account ids usable with the player tools. For a Steam profile URL, the account id is the trailing number.

Inputs: q (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 42 tools

    Disambiguation4/5

    Tools are clearly organized by primary entity (player, hero, team, league, match) and most have a singular purpose; similarly named tools like get_player_matches and get_player_recent_matches are distinguishable by their descriptions. A few player-stat tools (totals, counts, histogram, heroes) overlap in subject but differ in output shape, so some care is still needed.

    Naming Consistency5/5

    Nearly all tools follow a consistent get_<resource>_<detail> snake_case pattern, such as get_player_matches, get_team_heroes, and get_hero_matchups. Action verbs like request, refresh, search, and list are used only where appropriate, with no style mixing or vague naming.

    Tool Count2/5

    42 tools is a very large surface for an MCP server and exceeds the comfortable range, making agent selection harder even though the tools are well-named. Many related stat tools could be consolidated into fewer parameterized tools without losing functionality.

    Completeness4/5

    The set covers core read-only Dota 2 workflows well: player history and stats, hero matchups and benchmarks, teams, leagues, pro matches, match parsing, constants, and name resolution. A few niche OpenDota endpoints such as player ability/item usage are missing, but there are no obvious workflow dead-ends.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to query Riot Games data such as accounts, summoners, match history, and champion mastery via natural language.
      75 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude Code to fetch a public Dota 2 match from OpenDota and return a coaching-report-ready JSON summary covering laning, farming, deaths, itemization, objectives, teamfights, benchmark percentiles, skill build, damage sources, and rune control, with optional deep-dives on a specified player.
      1
      MIT