Unofficial, local-only MCP server for bounded access to the STRATZ GraphQL API.
Ask your AI agent:
“Analyze my last 10 Dota matches and find my most common throw pattern.”
“Compare this player’s hero pool against the current meta.”
“Summarize live pro matches with draft strengths and weaknesses.”
Stratz MCP server for Dota 2 analytics via the STRATZ GraphQL API — query matches, players, heroes, leagues, and live games from Claude/Codex.
स्टार
4
टूल
—
अपटाइम
—
“Find Dota matches where Team X lost after a 10k gold lead.”
Install
Build from a source checkout:
git clone <public-source-remote> stratz-mcp
cd stratz-mcp
make build
The executable is written to ./dist/stratz-mcp. Source builds require Go 1.25 or newer, Make, and Git.
Semantic version tags and GitHub-generated source archives are published on the releases page. Prebuilt binaries and container images are not published; build from source.
Configure
Set exactly one credential source:
export STRATZ_API_TOKEN='...'
./dist/stratz-mcp doctor
./dist/stratz-mcp serve
Alternatively use --token-file, or an explicit --env-file. Configuration precedence is CLI, environment, explicit YAML, defaults. Run stratz-mcp help for global options. Tokens are never accepted in YAML.
Common environment variables include STRATZ_CACHE_ENABLED, STRATZ_CACHE_DIR, STRATZ_LOG_LEVEL, and STRATZ_LOG_FORMAT. See configuration and the CLI reference.
Connect an MCP client
The command value must be the absolute path to the built executable, not the
repository directory. For example, if the repository is checked out at
/path/to/stratz-mcp, use /path/to/stratz-mcp/dist/stratz-mcp.
The examples below forward STRATZ_API_TOKEN from the MCP client's environment.
Export it before starting the client from that same shell:
export STRATZ_API_TOKEN='...'
codex
Codex native configuration in ~/.codex/config.toml:
[mcp_servers.stratz]
command = "/path/to/stratz-mcp/dist/stratz-mcp"
args = ["serve"]
# Forward the existing variable; this does not set its value.
env_vars = ["STRATZ_API_TOKEN"]
Do not commit the dotenv file. Use only one credential source: either forward
STRATZ_API_TOKEN or pass --env-file, not both. Restart the MCP client after
changing its configuration or environment.
Pi
Pi uses the pi-mcp-adapter
package to connect to MCP servers:
pi install npm:pi-mcp-adapter
Restart Pi, then create the ignored project-local .mcp.json file:
The set -a and set +a pair exports the sourced token to the server
process without placing the secret in MCP configuration. Run /reload in Pi
after changing .mcp.json.
Docker images are not published by this repository. The MCP client only needs to run docker run; build an image only if the referenced image tag does not already exist locally:
Use exactly one credential source: forwarded STRATZ_API_TOKEN, Docker --env-file, or --token-file. Restart or reconnect the MCP client after changing Docker image tags, configuration, or environment.
MCP capabilities
The server exposes exactly seven v2 tools: stratz_server_info, stratz_query_players, stratz_query_matches, stratz_query_heroes, stratz_query_leagues, stratz_query_constants, and guarded stratz_execute_graphql. Query tools use explicit modes, and hero/player statistics are opt-in. The v2 cutover has no compatibility aliases; see the v1-to-v2 migration guide before updating a client. It also exposes local schema/constants resources and five generated prompts/portable skills. See:
All MCP traffic is stdio. The server prefers MCP 2026-07-28 and retains tested legacy 2025-11-25 stdio lifecycle compatibility for clients that still initialize that way. Stdout is reserved for JSON-RPC; diagnostics go to stderr.
Docker
Local images should run as UID/GID 65532 with a read-only root filesystem and /cache as the persistent writable volume. See development for the local Docker smoke sequence.
Security and status
Do not publish fetched schema snapshots, constants, cache data, or local build artifacts. See SECURITY.md.
S
Stratz
aneviaro·4 स्टार·
Stratz MCP server for Dota 2 analytics via the STRATZ GraphQL API — query matches, players, heroes, leagues, and live games from Claude/Codex.
अभी टूल सूची नहीं है। रिमोट सर्वर को पहले हेल्थ चेक के बाद सूची मिलती है।
FAQ
सवाल
Stratz कैसे इंस्टॉल करें?
इस पेज पर Cursor, Claude Desktop, Claude Code या VS Code के लिए stdio कॉन्फ़िग कॉपी करें। यह पब्लिशर का इंस्टॉल इस्तेमाल करता है, PlugMCP प्रॉक्सी नहीं।
क्या Stratz के लिए API key चाहिए?
इस रिकॉर्ड में कोई ज़रूरी एनवायरनमेंट वेरिएबल दर्ज नहीं है।
Stratz कौन सा ट्रांसपोर्ट इस्तेमाल करता है?
Stratz stdio पर लोकल चलता है।
Stratz की पिछली जाँच कब हुई थी?
पिछली जाँच 2026-11-05 को हुई। Stratz MCP server for Dota 2 analytics via the STRATZ GraphQL API — query matches, players, heroes, leagues, and live games from Claude/Codex.