Skip to main content
Glama
dota2-coach-mcp-server

dota2-coach-mcp-server

dota2-coach-mcp-server

The MCP server behind the dota2-coach Claude Code plugin. Exposes one tool, analyze_dota2_match, that fetches a public Dota 2 match from OpenDota and returns a coaching-report-ready JSON summary (laning, farming, deaths, itemization, objectives, teamfights, benchmark percentiles, skill build, damage sources, rune control).

This repo is deployed at https://dota2-coach.promager.com/mcp, which the plugin's .claude-plugin/plugin.json points to as a remote HTTP MCP server. Installing the plugin does not run any of this code locally — it just connects to wherever this is deployed.

Inputs: match_id (required), player (account_id, personaname substring, or hero name substring, for a deep-dive on one participant), refresh (bypass cache), no_wait (don't wait for OpenDota to parse an unparsed match).

Deploy (production)

npm install
PORT=8787 npm run start:http

Then put it behind a reverse proxy that terminates TLS and forwards to that port, e.g. an Nginx or Caddy config for dota2-coach.promager.com proxying to http://127.0.0.1:8787. Keep the process alive across reboots/crashes with systemd or pm2, for example:

pm2 start server.js --name dota2-coach-mcp -- --http
pm2 save

Set DOTA2_COACH_CACHE_DIR to a persistent path (survives restarts/deploys) if you don't want to re-fetch/re-parse matches on every redeploy; it defaults to ./cache next to this file otherwise.

No auth is implemented; anyone who has the URL can call the tool. That's a reasonable default since it only proxies OpenDota's own public, free API and holds no secrets, but consider adding an API key check (via headers in the plugin's mcpServers config, once needed) if this ever needs to be locked down.

Related MCP server: FACEIT CS2 Coaching MCP Server

Local dev / stdio

npm install
npm start          # stdio, for local testing or a Claude Desktop mcpServers entry

Repo layout

  • server.js, two transports picked by CLI flag: default stdio, --http for Streamable HTTP (what's actually deployed).

  • lib/ — the OpenDota fetch/cache/summarize logic. lib/analyze.js is the entry point; see its interpretation notes cross-referenced in the plugin repo's SKILL.md for what each output field means.

Available Tools

1 tool
analyze_dota2_matchAnalyze Dota 2 matchA

Fetch a public Dota 2 match from OpenDota and return a coaching-report-ready JSON summary: result, draft, per-player stats and benchmark percentiles vs. their rank bracket, objectives/teamfight timelines, rank medal, and (with player) a deep-dive on one participant (lane efficiency, deaths log, skill build, damage sources, rune control, item/ability usage counts, item timing, gold/xp/net-worth timelines). Use the returned JSON to write the actual coaching analysis yourself — this tool only extracts and translates data, it does not generate advice.

Inputs: match_id (required), player, no_wait, refresh.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no risk of misselection or overlap. Its purpose—extracting Dota 2 match data for coaching—is clearly stated.

    Naming Consistency5/5

    The single tool uses a clear verb_noun snake_case pattern (analyze_dota2_match). With only one tool, there are no inconsistent naming conventions to compare against.

    Tool Count3/5

    A single tool is thin for a server framed around coaching, even though this tool is comprehensive. Typical related operations like match discovery or player history are absent, making the surface feel under-scoped.

    Completeness4/5

    The tool covers deep single-match extraction including draft, per-player stats, timelines, and optional player deep-dive. It lacks match discovery/list and broader player profile tools, but the core analysis workflow is otherwise usable.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers