Hammer-MCP
MCP server that lets AI agents see and edit maps in Valve Hammer Editor: Source 1 Hammer, Hammer++, Strata, Source 2 (read) - beta
Install / Use
claude mcp add EpicMorg -- npx -y github:EpicMorg/Hammer-MCPIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
OtherSupported Platforms
Our assessment of Hammer-MCP
Hammer-MCP scores 87/100 on our quality scale, 160th of 366 Other skills we index (top 44%).
Its MCP Server is 17 KB long, well organised into 14 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 44 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 4 days ago, so Hammer-MCP is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-28. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
Hammer-MCP compared with similar skills
All 4 of these similar skills score higher than Hammer-MCP; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| Hammer-MCP (this skill)by EpicMorg | 87 | 44 | 4d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 122.3k | 1d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 115.4k | 3d ago | CLAUDE.md |
| archifyby tt-a1i | 100 | 101.0k | today | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.5k | today | CLAUDE.md |
Frequently asked questions
- How do I install Hammer-MCP?
- Run
claude mcp add EpicMorg -- npx -y github:EpicMorg/Hammer-MCP. The install tabs above show the steps for each supported agent. - Which AI agents does Hammer-MCP work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is Hammer-MCP safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is Hammer-MCP still maintained?
- The repository was last updated 4 days ago, so Hammer-MCP is actively maintained.
Skill content
View source on GitHubAsk your agent "put a warm light at each corner of the room and name them by the scheme" — and watch the entities
appear in the Hammer you already have open. No plugins, no patched editor: Hammer-MCP talks to Hammer through the
shell channel that Valve built into the editor 20 years ago (Worldcraft_ShellMessageWnd, the mechanism behind
editor_sendcommand.cpp in the Source SDK) and through Hammer's own menu commands.
AI agent (Claude Code, Cursor, …)
│ MCP over HTTP (+ optional Bearer token, LAN-capable)
▼
┌────────────────────────────┐ WM_COPYDATA (shell channel: entities, keyvalues, nodes)
│ hammer-mcp.exe (tray) │ ───► WM_COMMAND (menu: save, undo, redo, run map, …) ──► Hammer / Hammer++
│ process attach · settings │ ───► reads the saved .vmf (map summary, mapversion)
│ live log │
└────────────────────────────┘
What works today
Verified live on Hammer++ 8873 x64 (TF2 Classified) and x86 (Source SDK 2013 SP mod), from an agent on another machine over the LAN:
| | |
|---|---|
| ✅ Create point entities with keyvalues (light, info_target, prop_dynamic with a model, …) | ✅ Rotate entities (a spinning locker at ~28 edits/s, Hammer stays responsive) |
| ✅ Set keyvalues, delete entities | ✅ Edits land in Hammer's undo history — Ctrl+Z works |
| ✅ Save / undo / redo / Run Map / Check for Problems via menu commands | ✅ Map summary from the saved .vmf (entities, brushes, classes, skybox…) |
| ✅ Recognises the running Hammer build by hash (registry of 183 known builds) | ✅ Token auth, localhost by default |
| ✅ Map knowledge: entities, outputs, I/O graph, validation against the game's FGD | ✅ Compile with Hammer's own Run Map sequences, parsed log, leak trace, compiled .bsp entities |
Screenshots
| Pick a Hammer process | Attached: build, shell channel | Live log of the demo | |---|---|---| | <img src="docs/media/screenshot-1.png" width="260"> | <img src="docs/media/screenshot-2.png" width="260"> | <img src="docs/media/screenshot-3.png" width="260"> |
Supported editors
The shell channel exists in every stock Source Hammer since 2006 and in Hammer++ since build 8867; menu command ids are identical across all 152 Source Hammer builds we analysed. From the next release (0.9) the adapter also reads the live selection and 3D camera on builds with a known memory layout.
| Editor | Live edits (shell) | Menu commands | Selection & camera (adapter, 0.9) | Map files |
|---|:---:|:---:|:---:|:---:|
| Hammer++ 8867+ (all games, x86 & x64) | ✅ | ✅ | ✅ | ✅ |
| Hammer++ ≤ 8866 | — | ✅ | ✅ | ✅ |
| Source Level Editor 3.129 | ✅ | ✅ | ✅ | ✅ |
| Stock Hammer, 2013 branch and newer — SDK 2013 SP/MP, HL2, TF2, CS:S, HL1, GMod, … (x86 & x64) | ✅ | ✅ | ✅ ² | ✅ |
| Stock Hammer, older branches — Orange Box, L4D/L4D2, Portal 2, Alien Swarm, CS:GO, … (EP1: selection in progress) | ✅ | ✅ | ✅ ² | ✅ |
| Slammin' Hammer 5.2, Black Mesa, Nuclear Dawn | ✅ | ✅ | ✅ ¹ ² | ✅ |
| Strata Hammer (Portal: Revolution, P2CE, …) | — | ✅ | — | ✅ |
| Source 2 Hammer (CS2, Dota 2, …) — recognised, .vmap and FGD read, unsaved state via VConsole2 | — | — | — | ✅ read |
| GoldSrc: Hammer 3.4 / 3.5 and its mods (Neon, Neo, CSM) | — | ✅ | ✅ | RMF / MAP read |
| GoldSrc: Worldcraft 1.1–3.3; J.A.C.K. | — | partly | — | RMF / MAP read |
¹ Nuclear Dawn included. ² Memory layout derived from the binaries; live check pending.
Checked live so far (0.9 development builds): Hammer++ 8873 (x64 and x86) and 8862, Source Level Editor 3.129, Valve Hammer Editor 3.4 and 3.5, CS2; the rest comes from static analysis of the binaries. Per-build details, what is live-checked and what is not: editor support matrix. Reports for other builds are very welcome.
Quick start
- Download/build
hammer-mcp.exeand run it — it lives in the tray. - Settings: pick a mode, address (
localhostby default), port (47800), generate a token for LAN use → Apply. - Main: choose your Hammer process → Attach (meta info shows the build, shell channel, open map) → Start (Start needs an attached process; Apply on the Settings tab lights up only when something changed).
- Connect your agent — tray menu → Copy client config:
claude mcp add --transport http hammer http://127.0.0.1:47800/mcp # LAN: ... http://10.0.0.5:47800/mcp --header "Authorization: Bearer <token>" - Open a map in Hammer and save it (sessions are bound to the saved
mapversion). Ask away.
Without the tray app: hammer-mcp-cli
The release also has hammer-mcp-cli.exe - the same server for MCP clients that start servers themselves (stdio):
{ "mcpServers": { "hammer": { "command": "C:\\Tools\\hammer-mcp-cli.exe", "args": ["--stdio", "--auto"] } } }
--auto attaches to the first running Hammer with a shell channel, --pid N to a given process; --mode Basic is read-only;
--http --port 47800 serves HTTP like the app. A Dockerfile builds it for MCP catalogs (Hammer itself needs Windows).
Tools for the agent
| Tool | What it does |
|---|---|
| hammer_status | Which Hammer is attached, its build, shell channel, open map, saved mapversion, allowed mode |
| map_summary | Saved .vmf: versions, entity/brush counts, classes, skybox, visgroups |
| list_entities · get_entity · find_io | Saved map: entities with keyvalues and outputs, who triggers whom |
| game_configs · fgd_class · fgd_search | Hammer's game config and the game's FGD as an entity reference (keyvalues, choices, inputs, outputs) |
| validate_map | Saved map vs FGD: unknown classes, outputs to missing names, unknown inputs / outputs, extra keyvalues |
| check_assets | Materials, models, overlays, decals, skybox, sounds and sound script names of the saved map vs the game's search paths (gameinfo.txt, folders, VPKs) |
| compile_sequences · compile_log · leak_trace | Hammer's own Run Map sequences (CmdSeq.wc / Hammer++ / Strata / J.A.C.K.), parsed compile log, leak path from the .lin |
| bsp_entities | Entities as vbsp wrote them into the compiled .bsp (entity lump), outputs included |
| source2_console | Source 2 only: allowlisted developer console commands over VConsole2 (open maps, force autosave, help) |
| run_compile | Runs one of those sequences (vbsp / vvis / vrad, copy .bsp); edit modes only |
| create_entity | Point entity at x y z, with keyvalues |
| set_keyvalue · rotate_entity · delete_entity | Edit the entity of a class at an origin |
| save_map · undo · redo | Hammer menu commands |
| open_run_map_dialog · open_check_for_problems | Open those Hammer dialogs for the user |
| find_assets | Find models, materials, textures, sounds, sound script names, sprites, particles by name in the game's files and VPKs (GoldSrc: files and WAD textures / decals); returns what to write in the entity |
| user_requests · wait_for_user · say_to_user | The chat in Hammer (with the adapter): read the user's lines, wait for an answer (up to 10 min), answer them |
| pending_changes | Approval mode: what is waiting for the user and what they decided |
| hammer_selection · hammer_camera (0.9) | With the adapter: what is selected in Hammer right now (entities with keyvalues, brushes with faces and textures) and where the 3D view looks |
| hammer_ui (0.9) | What is known about the attached Hammer's UI: menu and dialog ids, verified step-by-step recipes |
| check_model_clipping · check_cubemaps (0.9) | Saved map: props whose model boxes overlap brushes or other props (candidates to look at), env_cubemap projection settings |
Modes: Auto (best available: the adapter if you connected it, otherwise the shell channel, otherwise read-only) · Basic (read-only) · Shell (live edits + menu through the shell channel only) · Advanced (strict adapter-only mode, for debugging).
The adapter (0.7+)
Connect adapter in the app (Auto or Advanced) injects a small native adapter into the attached Hammer — only when
you press the button, only into a standalone Hammer exe of a known build. It adds an MCP menu to Hammer: pause the
agent, chat with the agent, live activity log, pending changes with check boxes (approval mode), undo the
agent's step, status, disconnect. Working in OpenCode? The app's OpenCode tab sends your chat lines into the
OpenCode session, so the agent there wakes up and answers. Disconnect unloads it; Hammer keeps running. From 0.9, on builds
with a known memory layout the adapter also reads the live selection and the 3D camera (hammer_selection,
hammer_camera) — see the editor support matrix. The native folder of the zip must stay next to hammer-mcp.exe.
Limits of the shell channel
The shell channel reference explains where the channel comes from (public Source SDK code since 2006), how to send commands, edit sessions, every command and what it cannot do — useful for any tool author, not only for Hammer-MCP.
It is write-only and entity-level: entities are addressed by class + origin (no ids), brushes and brush entities
can't be created, there is no "move", and unsaved state can't be read back — the server reads the saved .vmf.
Outputs set with set_keyvalue are stored by Hammer as plain keyvalues: they are not shown on the Outputs tab, but
vbsp writes them into the .bsp as real outputs and they fire in game.
From 0.9 the adapter lifts part of these limits (live selection and camera). It is only ever injected into a standalone
Hammer executable of a known build (hammer.exe, hammerplusplus.exe) — never into a game process: Source 2
Hammer runs inside cs2.exe / dota2.exe, and touching a VAC-protected process can get a Steam account banned.
Safety and VAC
Hammer-MCP is meant to be safe to run next to games with Valve Anti-Cheat.
- Source 1, Hammer++, Strata, GoldSrc: Hammer is its own process (
hammer.exe,hammerplusplus.exe, …), not a
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
122.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
115.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
archify
101.0kTurn any idea, plan, or codebase into an interactive diagram or one-page answer: 10 diagram types, Architecture Diagnosis, Story video and PR walkthroughs. An Agent Skill for Claude Code, Codex, Cursor and more.
hyperframes
91.5kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
