MCP ExplorerExplorer

Dota 2 Mcp Server

@ismaelMoreauon a year ago
2 MIT
FreeCommunity
AI Systems
Dota 2 MCP Server with Discord bot for real-time rune advice.

Overview

What is Dota 2 Mcp Server

Dota_2_MCP_Server_ is a server that integrates Dota 2 Game State Integration (GSI) data and provides real-time coaching through a Discord bot, offering players advice on rune spawn times.

Use cases

Use cases include providing players with timely rune spawn alerts during matches, integrating with gaming streams for enhanced viewer engagement, and serving as a training tool for new players.

How to use

To use Dota_2_MCP_Server_, clone the repository, set up a Python virtual environment, install the requirements, optionally run it with Docker, configure Dota 2 GSI to POST data to the server, and set up the Discord bot with the necessary permissions.

Key features

Key features include live Dota 2 GSI data reception, exposure of MCP resources and HTTP endpoints, real-time rune spawn announcements via a Discord bot, and Docker support for easy deployment.

Where to use

Dota_2_MCP_Server_ can be used in gaming communities, particularly among Dota 2 players who seek to enhance their gameplay with real-time information and coaching.

Content

Dota 2 MCP Server & Discord Coach Bot

This project provides a Dota 2 Game State Integration (GSI) MCP server and a Discord bot that coaches you with real-time rune spawn advice.

Features

  • Receives live Dota 2 GSI data and exposes it as MCP resources and HTTP endpoints
  • Discord bot announces rune spawn times in your channel (with TTS support)
  • Dockerized and ready for local or cloud deployment

Installation & Setup

1. Clone the Repository

git clone <your-repo-url>
cd dota mcp

2. Create a Python Virtual Environment

python3 -m venv .venv
source .venv/bin/activate

3. Install Requirements

pip install -r requirements.txt

4. (Optional) Build & Run with Docker

docker build -t dota2gsi-mcp .
docker run --name dota2gsi-mcp-server -p 5000:5000 -v "$(pwd):/app" --restart unless-stopped dota2gsi-mcp

5. Set Up Dota 2 GSI

  • Follow the instructions in note.md to configure Dota 2 to POST game state to your server.

6. Set Up the Discord Bot

  • Create a bot in the Discord Developer Portal
  • Copy your bot token and invite the bot to your server with the Send Messages and Send TTS Messages permissions
  • Get your channel ID (right-click channel > Copy ID)
  • Set environment variables:
export DISCORD_TOKEN=your-bot-token
export DISCORD_CHANNEL_ID=your-channel-id
  • Run the bot:
python dota_coach_bot.py

Usage

  • The MCP server will expose endpoints at http://localhost:5000/ and MCP resources at /mcp
  • The Discord bot will announce rune spawn times in your channel

Project Structure

  • dota2gsi_mcp_server.py — MCP server and FastAPI endpoints
  • dota_coach_bot.py — Discord bot for rune timing advice
  • requirements.txt — Python dependencies
  • Dockerfile — Docker build instructions
  • note.md — Dota 2 GSI setup guide
  • .gitignore — Files and folders to ignore in git

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers