# opendota-mcp-server

> MCP Server

This repository provides an MCP server for accessing OpenDota API data, enabling LLMs and AI assistants to retrieve real-time Dota 2 statistics, match data, and player information through a standard interface.

## Overview

- **Category:** AI
- **Language:** Python
- **Stars:** 8
- **Forks:** 1
- **Owner:** asusevski
- **GitHub:** https://github.com/asusevski/opendota-mcp-server
- **Created:** 2025-03-02T23:28:59+00:00
- **Updated:** 2025-03-12T22:32:05+00:00
- **Source:** https://model-context-protocol.com/servers/opendota-api-dota2-data-server

## Setup

## Setup

1. Clone the repository: `git clone https://github.com/asusevski/opendota-mcp-server.git`
2. Change directory: `cd opendota-mcp-server`
3. Option 1: Automated setup: `./scripts/setup_env.sh`
4. Option 2: Manual installation with uv: `uv add pyproject.toml`
5. For development dependencies: `uv pip install -e ".[dev]"`
6. (Optional) Create an OpenDota API key at https://www.opendota.com/api-keys
7. Set your API key as an environment variable: `export OPENDOTA_API_KEY=your_api_key_here`

## Tools

## Available Tools

1. Access player profiles, statistics, and match history
2. Retrieve detailed match information
3. Look up professional players and teams
4. Get hero statistics and rankings
5. Search for players by name
6. get_player_by_id - Retrieve player information by account ID
7. get_player_recent_matches - Get recent matches for a player
8. get_match_data - Get detailed data for a specific match
9. get_player_win_loss - Get win/loss statistics for a player
10. get_player_heroes - Get a player's most played heroes
11. get_hero_stats - Get statistics for heroes
12. search_player - Search for players by name
13. get_pro_players - Get list of professional players
14. get_pro_matches - Get recent professional matches
15. get_player_peers - Get players who have played with a specified player
16. get_heroes - Get list of all Dota 2 heroes
17. get_player_totals - Get player's overall stats totals
18. get_player_rankings - Get player hero rankings
19. get_player_wordcloud - Get most common words used by player in chat
20. get_team_info - Get information about a team
21. get_public_matches - Get recent public matches
22. get_match_heroes - Get heroes played in a specific match
