Skip to main content
Glama
OpenDota MCP Server

OpenDota MCP Server

by asusevski

OpenDota MCP サーバー

OpenDota APIデータにアクセスするためのモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーにより、LLMとAIアシスタントは標準インターフェースを介してリアルタイムのDota 2統計、試合データ、プレイヤー情報などを取得できます。

特徴

  • 選手プロフィール、統計、試合履歴にアクセス

  • 詳細な試合情報を取得する

  • プロの選手やチームを調べる

  • ヒーローの統計とランキングを取得する

  • 名前で選手を検索する

  • さらにもっと!

Related MCP server: MonkeyType MCP Server

インストール

# Clone the repository
git clone https://github.com/asusevski/opendota-mcp-server.git
cd opendota-mcp-server

# Option 1: Automated setup (works with bash, zsh, and other shells)
./scripts/setup_env.sh

# Option 2: Manual installation with uv
uv add pyproject.toml

# For development dependencies
uv pip install -e ".[dev]"

使用法

環境の設定

  1. (オプションですが推奨) https://www.opendota.com/api-keysで OpenDota API キーを作成します。

  2. API キーを環境変数として設定します。

export OPENDOTA_API_KEY=your_api_key_here

サーバーを直接実行する

python -m src.opendota_server.server

Claude Desktopでサーバーを実行する

こちらに従ってください: https://modelcontextprotocol.io/quickstart/user

WSL を使用する場合、リポジトリをクローンして Python 環境をセットアップしていると仮定すると、claude_desktop_config.json は次のように記述されます。

{
  "mcpServers": {
    "opendota": {
      "command": "wsl.exe",
      "args": [
        "--",
        "bash",
        "-c",
        "cd ~/opendota-mcp-server && source .venv/bin/activate && python src/opendota_server/server.py"
      ]
    }
  }
}

サンプルクライアントの使用

python -m src.client

含まれる具体的なツール:

  • get_player_by_id - アカウントIDでプレイヤー情報を取得する

  • get_player_recent_matches - プレイヤーの最近の試合を取得する

  • get_match_data - 特定の試合の詳細データを取得する

  • get_player_win_loss - プレイヤーの勝敗統計を取得する

  • get_player_heroes - プレイヤーが最もプレイしたヒーローを取得する

  • get_hero_stats - ヒーローの統計情報を取得する

  • search_player - 名前でプレイヤーを検索

  • get_pro_players - プロ選手のリストを取得する

  • get_pro_matches - 最近のプロの試合を取得する

  • get_player_peers - 指定したプレイヤーとプレイしたプレイヤーを取得する

  • get_heroes - Dota 2 のすべてのヒーローのリストを取得します

  • get_player_totals - プレイヤーの総合統計の合計を取得します

  • get_player_rankings - プレイヤーのヒーローランキングを取得する

  • get_player_wordcloud - チャットでプレイヤーが使用する最も一般的な単語を取得します

  • get_team_info - チームに関する情報を取得する

  • get_public_matches - 最近の公開マッチを取得する

  • get_match_heroes - 特定の試合で使用されたヒーローを取得する

ライセンス

マサチューセッツ工科大学

Available Tools

17 tools
get_heroesB

Get list of all Dota 2 heroes.

Returns:
    List of all heroes with basic information

Inputs: no named parameters. Returns: result

get_hero_statsB

Get statistics for heroes.

Args:
    hero_id: Optional hero ID to get stats for a specific hero

Returns:
    Hero statistics including win rates by skill bracket

Inputs: hero_id. Returns: result

get_match_dataB

Get detailed data for a specific match.

Args:
    match_id: ID of the match to retrieve

Returns:
    Detailed match information including players, scores, and stats

Inputs: match_id (required). Returns: result

get_match_heroesB

Get heroes played in a specific match.

Args:
    match_id: ID of the match to retrieve

Returns:
    List of heroes played by each player in the match

Inputs: match_id (required). Returns: result

get_player_by_idB

Get a player's information by their account ID.

Args:
    account_id: The player's Steam32 account ID

Returns:
    Player information including rank, matches, and statistics

Inputs: account_id (required). Returns: result

get_player_heroesB

Get a player's most played heroes.

Args:
    account_id: Steam32 account ID of the player
    limit: Number of heroes to retrieve (default: 5)

Returns:
    List of most played heroes with stats

Inputs: account_id (required), limit. Returns: result

get_player_peersA

Get players who have played with the specified player.

Args:
    account_id: Steam32 account ID of the player
    limit: Number of peers to retrieve (default: 5)

Returns:
    List of players frequently played with

Inputs: account_id (required), limit. Returns: result

get_player_rankingsC

Get player hero rankings.

Args:
    account_id: Steam32 account ID of the player

Returns:
    Player's hero rankings

Inputs: account_id (required). Returns: result

get_player_recent_matchesA

Get recent matches played by a player.

Args:
    account_id: Steam32 account ID of the player
    limit: Number of matches to retrieve (default: 5)

Returns:
    List of recent matches with details

Inputs: account_id (required), limit. Returns: result

get_player_totalsB

Get player's overall stats totals.

Args:
    account_id: Steam32 account ID of the player

Returns:
    Summary of player's total stats

Inputs: account_id (required). Returns: result

get_player_win_lossB

Get win/loss statistics for a player.

Args:
    account_id: Steam32 account ID of the player

Returns:
    Win/loss record

Inputs: account_id (required). Returns: result

get_player_wordcloudB

Get most common words used by player in chat.

Args:
    account_id: Steam32 account ID of the player

Returns:
    List of player's most frequently used words

Inputs: account_id (required). Returns: result

get_pro_matchesB

Get recent professional matches.

Args:
    limit: Number of matches to retrieve (default: 5)

Returns:
    List of recent professional matches

Inputs: limit. Returns: result

get_pro_playersB

Get list of professional players.

Args:
    limit: Number of players to retrieve (default: 10)

Returns:
    List of professional players

Inputs: limit. Returns: result

get_public_matchesB

Get recent public matches.

Args:
    limit: Number of matches to retrieve (default: 5)

Returns:
    List of recent public matches

Inputs: limit. Returns: result

get_team_infoC

Get information about a team.

Args:
    team_id: Team ID

Returns:
    Team information

Inputs: team_id (required). Returns: result

search_playerB

Search for players by name.

Args:
    query: Name to search for

Returns:
    List of matching players

Inputs: query (required). Returns: result

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 17 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting different resources (heroes, matches, players, teams, pro scene). However, some player-focused tools like get_player_heroes and get_player_rankings could potentially overlap in retrieving hero-related player data, though descriptions clarify their specific focuses.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with get_ prefix and snake_case throughout. The naming is highly predictable and readable, making it easy to understand each tool's function at a glance.

    Tool Count4/5

    17 tools is slightly high but reasonable for a comprehensive Dota 2 statistics server. The count supports detailed player analysis, match data, hero stats, and professional scene coverage without being overwhelming for the domain scope.

    Completeness5/5

    The toolset provides excellent coverage of the OpenDota API domain with comprehensive player analysis (stats, matches, heroes, peers, rankings), match data (public, pro, detailed), hero statistics, team info, and search functionality. No obvious gaps exist for typical agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A community-developed Model Context Protocol server that integrates with the Riot Games API to provide League of Legends data, enabling AI assistants to retrieve player information, ranked stats, champion mastery, and match summaries through natural language queries.
      5
      27
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A Model Context Protocol server that enables LLMs to interact with all MonkeyType API endpoints, providing access to typing test data, user profiles, leaderboards, and statistics through natural language.
      22
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that enables LLMs to retrieve NBA data including player stats, team information, game logs, and league standings through the nba_api library.
      10
      1
      -