wc3-mcp
An MCP server and Claude Code plugin for making Warcraft III maps with Claude. It works directly on map files and can also drive the World Editor and the game.
- Maps: create maps (JASS or Lua), and edit map info, imports, object data, GUI/JASS/Lua triggers, terrain, regions, cameras, sounds and placed units, items and doodads.
- Scripts: build
war3map.j/war3map.lua the way the World Editor does, validate them with pjass/JassHelper, and check maps for errors.
- More content: campaigns (
.w3n), AI files (.wai), and models and textures (MDX/MDL, BLP/DDS).
- Desktop: drive the World Editor and run maps in the game (
game_test).
The plugin also installs a skill (wc3-map-making) that tells Claude how to use the tools.
Prerequisites
| Requirement | Why |
|---|
| Windows 10/11 | The editor and game drivers use the Win32 API (pywin32). |
| Warcraft III 3.x (Reforged), installed with Battle.net | Game data, pjass and JassHelper are read from the install. The install is found automatically; otherwise set WC3MCP_INSTALL. |
| uv | Runs the server. On first start it downloads Python 3.13 (if missing) and the Python packages mcp, pywin32, numpy and pillow. |
| Claude Code | Hosts the plugin (any MCP client works with the manual setup below). |
The Battle.net desktop app, logged in (for game_test only) | A game started on its own has no Battle.net session and asks for a login. game_test therefore lets the app start the game, the way its Play button does, and the app hands the game its own session. Log in to the app once yourself with "Keep me logged in"; the tools never type, read or store credentials. The first run stores the map's path in the app's launch options for Warcraft III and restarts the app once; without the app, game_test flashes the game window and waits for you to log in there. |
Install uv (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Install in Claude Code (plugin)
Run in Claude Code:
/plugin marketplace add BenqsXd/wc3-mcp
/plugin install wc3-mcp@wc3-mcp
Or from a terminal:
claude plugin marketplace add BenqsXd/wc3-mcp
claude plugin install wc3-mcp@wc3-mcp
Restart Claude Code. /mcp should list the wc3 server. The first start takes a minute while uv installs the packages.
Try it: "Create a 64x64 Lordaeron Summer map at C:\Maps\Arena.w3x with a hero for player 1, then test it in the game."
Codex, Copilot CLI, Cursor, Gemini CLI, DeepSeek and other harnesses
The repository is also an Agent Plugins plugin (plugin.json, mcp.json,
skills/), a Codex/ChatGPT and a Cursor marketplace, and a Gemini CLI extension:
codex plugin marketplace add BenqsXd/wc3-mcp # Codex / ChatGPT, then /plugins
copilot plugin install BenqsXd/wc3-mcp # GitHub Copilot CLI
gemini extensions install https://github.com/BenqsXd/wc3-mcp # Gemini CLI
Any other MCP client starts the server with uvx --from git+https://github.com/BenqsXd/wc3-mcp wc3-mcp.
docs/harnesses.md has every harness, DeepSeek's agents included, and WC3MCP_TOOLS for
clients that cap the number of tools.
Manual setup (any MCP client, no plugin)
git clone https://github.com/BenqsXd/wc3-mcp
cd wc3-mcp
uv sync
claude mcp add wc3 --scope user -e PYTHONPATH="$PWD\src" -- uv run --directory "$PWD" python -m wc3mcp.server
For other clients, run uv run --directory <repo> python -m wc3mcp.server over stdio with PYTHONPATH=<repo>\src. With plain pip instead of uv, run pip install mcp pywin32 numpy pillow on Python 3.13+, then python -m wc3mcp.server with the same PYTHONPATH. To get the skill too, copy skills/wc3-map-making to %USERPROFILE%\.claude\skills\.
Configuration
All settings are optional environment variables:
| Variable | Default |
|---|
WC3MCP_INSTALL | Warcraft III folder from the registry, else C:\Program Files (x86)\Warcraft III |
WC3MCP_DOCUMENTS | Documents\Warcraft III (follows OneDrive redirection) |
WC3MCP_HOME | %LOCALAPPDATA%\wc3mcp (working copies, backups, logs, tool copies) |
The game install is never modified. Maps are edited in working copies; map_save backs up the original before replacing it.
What's new in 1.17