Overview
An MCP server that lets an AI agent see and edit maps live in Valve's Hammer editor (Source 1), Hammer++ and similar builds. It runs as a Windows tray app (hammer-mcp.exe, .NET 10, win-x64 and win-x86) and talks to the Hammer you already have open through the shell channel Valve built into the editor (the mechanism behind editor_sendcommand.cpp in the Source SDK) and through Hammer's own menu commands; no plugin and no patched editor. It can create point entities with keyvalues (lights, info_target, prop_dynamic with a model), set keyvalues, rotate and delete entities, save, undo and redo (edits land in Hammer's undo history), run the map and run Check for Problems, summarise the saved .vmf, validate entities and outputs against the game's FGD, compile with Hammer's own Run Map sequences and parse the log and leak trace. Transport is MCP over Streamable HTTP, on localhost by default, with an optional Bearer token for LAN use. Flags: marked beta by the author; the shell channel is write-only and entity-level (entities are addressed by class and origin, brushes cannot be created, there is no move command, and unsaved state cannot be read back); Windows only; the README says it is built to avoid touching VAC-protected game processes and that Source 2 Hammer, which runs inside cs2.exe or dota2.exe, is not injected. MIT. 43 stars on GitHub (created 2026-11-10).
Quick summary. This page gives a short overview of this mcp server. For installation steps, full documentation and the latest changes, read the official source; details such as features and versions can change there first.
Example prompts example
Illustrative examples written by FoxaMind's AI Trends Scout — not quoted from the source.
- Open a map in Hammer and save it first; sessions are bound to the saved mapversion.
- Ask: put a warm light at each corner of the room and name them by the scheme.
- Use hammer-mcp-cli.exe if your MCP client starts servers itself over stdio.