# OpenDota API Server

Provide real-time access to Dota 2 statistics, match data, player profiles, and professional player information through a standardized interface. Enable AI assistants and LLMs to retrieve detailed ga…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add lieyanqzu/opendota-mcp-server

# Browse available tools
npx -y @smithery/cli@latest tool list lieyanqzu/opendota-mcp-server

# Get full schema for a tool
npx -y @smithery/cli@latest tool get lieyanqzu/opendota-mcp-server get_player_by_id

# Call a tool
npx -y @smithery/cli@latest tool call lieyanqzu/opendota-mcp-server get_player_by_id '{}'
```

## Direct MCP Connection

Endpoint: `https://opendota-mcp-server--lieyanqzu.run.tools`

**Optional config:**
- `opendotaApiKey` (query) — OpenDota API key to increase rate limits

## Tools (17)

- `get_player_by_id` — Get a player's information by their account ID.
- `get_player_recent_matches` — Get recent matches played by a player.
- `get_match_data` — Get detailed data for a specific match.
- `get_player_win_loss` — Get win/loss statistics for a player.
- `get_player_heroes` — Get a player's most played heroes.
- `get_hero_stats` — Get statistics for heroes.
- `search_player` — Search for players by name.
- `get_pro_players` — Get list of professional players.
- `get_pro_matches` — Get recent professional matches.
- `get_player_peers` — Get players who have played with the specified player.
- `get_heroes` — Get list of all Dota 2 heroes.
- `get_player_totals` — Get player's overall stats totals.
- `get_player_rankings` — Get player hero rankings.
- `get_player_wordcloud` — Get most common words used by player in chat.
- `get_team_info` — Get information about a team.
- `get_public_matches` — Get recent public matches.
- `get_match_heroes` — Get heroes played in a specific match.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get lieyanqzu/opendota-mcp-server <tool-name>
```

---

Source: https://github.com/lieyanqzu/opendota-mcp-server
