1. Conduid
  2. Finance
  3. Hammer MCP
MCP server · Finance

Hammer MCP

MCP server for Source-engine map work: read and lint VMF, edit without reformatting, measure BSP against format limits, compile under Wine (stock or Hammer++)

58Fair

Scored 5 hours ago · breakdown

About Hammer MCP

Hammer MCP is an MCP server published by Sycatle in the Finance category: mCP server for Source-engine map work: read and lint VMF, edit without reformatting, measure BSP against format limits, compile under Wine (stock or Hammer++). Conduid read 77 tools from its source: align_faces, check_vmf_rules, clip_solids, delete_solids, edit_vmf, group_solids and 71 more. No package is published for it, so it installs from a source checkout.

The repository has 35 stars and 4 forks, is licensed MIT, and its last commit was on 8 Nov 2026. Conduid has no tagged release on record for it. It passes all 5 static checks Conduid ran on the repository. Its topics include bsp, garrys-mod, hammer-editor, level-design, mapping and source-engine.

Install

From source
git clone https://github.com/Sycatle/hammer-mcp

Tools (77)

align_facesRealigns a texture: to the world, to the face's own plane, or fitted to it
ParameterTypeDescription
mode *string'arc' is 'face' plus continuity: facets that touch without turning a corner are one run, and each carries its texture on from where the last one stopped. It is what a curve needs and what neither of the others gives -- a ring aligned to 'face' restarts the brick at every seam, which reads as flat plates however well the smoothing groups are set.
path *stringPath to the .vmf, absolute or relative to the repo root.
repeatnumberFor 'fit': how many times the texture repeats across the face. Default once.
rotatenumberTurn the axis pair in the face's plane, degrees.
scalenumberMultiply both texture scales by this afterwards. Zero is refused.
shiftnumberAdd to the u and v offsets, in texels.
check_vmf_rulesChecks a map against its own `<map>.rules.json`. Reports; never refuses. A run where a rule matched nothing is `skipped`, never `pass`, and it says what segmentation the verdict rests on. A width or clearance violation carries `evidence`: the direction swept, the yaw it came from, what stopped it — and `measured: null` rather than a bare zero when no body fits where it would have measured
ParameterTypeDescription
eyeHeightnumberHeight above each end's origin that a sightline is traced at. Source's own eye is 64. It is in every sightline violation's message, because a rule that fails on a lintel is otherwise indistinguishable from one that fails on a wall.
limitnumber
maxCellsnumber
minRoomAreanumberBelow this floor area, in square units, a region is merged into its largest neighbour. The same knob read_vmf_rooms takes: pass both the same value, or a diagnosis and the verdict it explains are about different segmentations.
path *stringPath to the .vmf, absolute or relative to the repo root.
rulesPathstringOverride the sibling file. There is no search up the directory tree.
seedsarrayPoints inside the map, for rules about rooms. Default: the spawn entities.
severitystringReport only violations at least this severe.
stepnumber
clip_solidsCuts brushes with a plane — front, back, or both. Hammer's most-used tool
ParameterTypeDescription
cutMaterialstringMaterial for the new face. Default: the material of the largest face kept.
keep *string'front' is the side the normal points towards. 'both' leaves two brushes.
materialstringBrushes carrying this on at least one face.
ownerstring'world', or a brush entity classname.
path *stringPath to the .vmf, absolute or relative to the repo root.
plane *anyA point the plane passes through.
solidIdsarrayHammer ids of the brushes to cut.
withinobjectBrushes lying entirely inside this box.
delete_solidsRemoves brushes. The counterpart write_vmf_solid never had
ParameterTypeDescription
path *stringPath to the .vmf, absolute or relative to the repo root.
edit_vmfEdits a `.vmf` by splicing: entities, keyvalues, outputs. Nothing else moves
ParameterTypeDescription
ops *array
path *stringPath to the .vmf, absolute or relative to the repo root.
group_solidsHammer groups: several brushes that click as one
ParameterTypeDescription
path *stringPath to the .vmf, absolute or relative to the repo root.
ungroupbooleanTake the brushes out of their group instead.
healthState of the toolchain: game profile, binaries, FGDs, Wine, sidecar — and how many tools this build serves, and whether it is older than the source
hollow_solidsTurns a block into the walls of a room, mitred — Hammer's version overlaps
ParameterTypeDescription
directionstring'in' keeps the outer surface where it was; 'out' keeps the inner one.
innerMaterialstringMaterial for the faces hollowing created. Default TOOLS/TOOLSNODRAW.
keepSourcebooleanLeave the original brush in place. Default false, because a block left inside its own walls is still a solid block.
materialstringBrushes carrying this on at least one face.
ownerstring'world', or a brush entity classname.
path *stringPath to the .vmf, absolute or relative to the repo root.
solidIdsarrayHammer ids of the brushes to hollow.
thickness *numberWall thickness, in Hammer units.
withinobject
measure_vmf_approachHow much clear room a person has in front of each entity — the door that opens into a wall
ParameterTypeDescription
classnamestringOnly entities whose classname contains this.
limitnumber
minClearUnitsnumberReport only entities with less than this in front. 0 reports all of them.
path *string
targetnamestring
measure_vmf_clearanceFree width and headroom at a point, measured with a swept player hull, not a ray. Says when no body fits there rather than reporting the hull's own width
ParameterTypeDescription
at *arrayWhere to measure, in Hammer units.
axisarrayMeasure across this direction only. Omit to search for the narrowest.
maskstring`player` counts clip brushes, which are invisible and stop people.
path *string
move_verticesMoves a brush's corners — Hammer's VM tool, with its refusals
ParameterTypeDescription
moves *arrayCorners to move, each named by where it is now.
path *stringPath to the .vmf, absolute or relative to the repo root.
solidId *numberHammer id of the brush. read_vmf_solids lists the corners.
tolerancenumberHow close a coordinate must be to a real corner to name it. Default 0.5, because corners read back through JSON are rounded and exact equality would make the tool unusable from outside.
paint_displacementThe blend channel: uniform, by height, or by slope
ParameterTypeDescription
path *stringPath to the .vmf, absolute or relative to the repo root.
rule *objectFully the first texture at or below this z.
solidIdsarray
read_brush_volumesFootprint and volume of each brush entity, by class
ParameterTypeDescription
classnamestringRestrict to one classname, e.g. func_door.
limitnumber
path *stringPath to the .bsp, absolute or relative to the repo root.
read_bsp_entitiesEntities of lump 0, filtered and paginated, with a classname histogram
ParameterTypeDescription
histogramOnlybooleanReturn only the classname histogram and counts.
path *stringPath to the .bsp, absolute or relative to the repo root.
read_bsp_infoHeader of a `.bsp`: ident, version, mapRevision, all 64 lumps, and whether vrad produced HDR
ParameterTypeDescription
allLumpsbooleanInclude empty lumps (default: only lumps with content).
path *stringPath to the .bsp, absolute or relative to the repo root.
read_compile_logTurns compiler output into findings, each with what the message actually means
ParameterTypeDescription
text *stringRaw compiler output.
read_displacementsThe terrain grids of a `.vmf`, their vertices in world space, and their seams
ParameterTypeDescription
includeVerticesbooleanReturn every vertex. Off by default: a power-4 displacement has 289 of them and a hillside has dozens of displacements.
path *stringPath to the .vmf, absolute or relative to the repo root.
read_entity_reportHammer's Entity Report: every entity and its keyvalues, filterable
ParameterTypeDescription
classnamestringSubstring, case-insensitive.
hasKeystringOnly entities carrying this keyvalue.
keyValuestringWith hasKey: the exact value it must have.
limitnumber
path *stringPath to the .vmf or .bsp, absolute or relative to the repo root.
targetnamestringSubstring, case-insensitive.
read_fgd_classA class's schema per the game's FGD: keyvalues, inputs, outputs
ParameterTypeDescription
classnamestringExact class, e.g. logic_relay.
limitnumber
prefixstringWhen listing: keep classes starting with this.
read_game_contentHammer's texture and model browsers: what the game actually has, by name
ParameterTypeDescription
detailsbooleanRead the .vmt of each result for its shader, its surface property, and whether every texture it names actually exists in this install. Off by default: a Garry's Mod install holds tens of thousands, and parsing them all to answer one search would cost seconds.
kindstringMaterials (.vmt) or models (.mdl).
limitnumber
pattern *stringName to look for. 'brick' matches anything containing it; 'brick*' is a glob.
read_gmaHeader and index of a Workshop archive: what is in it, and where
ParameterTypeDescription
limitnumberMaximum entries to return. Default 200.
matchstringOnly entries whose path contains this, case-insensitively.
path *stringPath to the .gma, absolute or relative to the repo root.
read_leakTurns ` leaked ` into a position and a named entity
ParameterTypeDescription
limitnumber
path *stringThe .lin pointfile, or the .vmf/.bsp it sits beside.
read_lightmap_budgetWhere a compiled map's lightmap resolution went: total luxels, distribution, costliest faces
ParameterTypeDescription
limitnumberHow many of the costliest faces to list.
path *stringPath to the .bsp, absolute or relative to the repo root.
read_lump_patchDecodes a `.lmp` and its entities
ParameterTypeDescription
limitnumber
path *stringPath to the .lmp file.
read_lump_patch_statusCompares built patches to what is deployed, and to map revisions
ParameterTypeDescription
bspSearchPathsarrayWhere to look for the target .bsp, relative to the repo root.
read_map_dependenciesEvery asset a map references, and whether each will be there: packed, from the game, or missing
ParameterTypeDescription
limitnumberMaximum entries per list. Default 300.
path *stringPath to the .bsp, absolute or relative to the repo root.
read_map_extentsReal world extents (lump 14), in Hammer units and in metres
ParameterTypeDescription
path *stringPath to the .bsp, absolute or relative to the repo root.
read_map_geometryHow full each lump is, and how much room is left before vbsp's ceiling
ParameterTypeDescription
nearLimitOnlybooleanReturn only the lumps at or above 80% of their ceiling.
path *stringPath to the .bsp, absolute or relative to the repo root.
read_map_organisationVisgroups, groups and the cordon, with what belongs to each
ParameterTypeDescription
path *stringPath to the .vmf, absolute or relative to the repo root.
read_map_reportJudges a map against a budget profile: a verdict per criterion, not another number
ParameterTypeDescription
path *stringPath to the .bsp, absolute or relative to the repo root.
profilestringBudget profile id. 'source-stock' (default) asks only whether the map will compile and load. 'gmod-darkrp' adds what a live DarkRP city needs.
verdictsarrayReturn only these verdicts. Omit for all of them.
read_materialsMaterial table of a compiled map, and how many `TEXINFO` reference each one
ParameterTypeDescription
limitnumber
nameContainsstringCase-insensitive substring filter on the material path.
path *stringPath to the .bsp, absolute or relative to the repo root.
sortBystringusage: most-referenced material first. name: alphabetical.
read_model_infoA prop's hull, skins, sequences and materials, before you place it
ParameterTypeDescription
model *stringModel path. The models/ prefix and the .mdl suffix are added if missing.
read_navSays whether a nav mesh still matches its map
ParameterTypeDescription
path *stringThe .nav, or the .bsp beside it.
read_pakfileContents of the embedded pakfile (lump 40), and the compile evidence it carries
ParameterTypeDescription
limitnumberHow many of the largest entries to list.
path *stringPath to the .bsp, absolute or relative to the repo root.
read_prop_surveyProp inventory, and which `prop_dynamic` are dynamic for nothing
ParameterTypeDescription
limitnumberCap on the listed conversion candidates.
path *stringPath to the .bsp, absolute or relative to the repo root.
read_sightlinesLongest clear lines of sight, traced against the world tree
ParameterTypeDescription
elevationnumberGround elevation to sample. Defaults to the median entity origin z.
elevationTolerancenumberHow far a surface may sit from `elevation` and still be sampled.
eyeHeightnumberHeight above ground for the sample point. 64 is a standing player's eye.
limitnumber
path *stringPath to the .bsp, absolute or relative to the repo root.
requireNearbyContentbooleanKeep only points with a map entity nearby, as a proxy for built-up area.
spacingnumberGrid step in Hammer units. Smaller is finer and quadratically slower.
read_source_gamesSource games installed here, read from Steam and from `gameinfo.txt`
read_visleaf_statsQuality of a compiled map's visibility split: leaf/cluster counts, leaf volume distribution
ParameterTypeDescription
path *stringPath to the .bsp, absolute or relative to the repo root.
read_vmfEntities, outputs and counts of a `.vmf`. `collapseInstances` expands `func_instance`
ParameterTypeDescription
classnamestringRestrict the entity list to one class.
collapseInstancesbooleanExpand every func_instance first, the way vbsp does at compile time. A map using instances otherwise reads as one entity where there is a whole building: counts are far too low, and outputs crossing an instance look like they target nothing. Off by default because it changes every count and every targetname.
limitnumber
path *stringPath to the .vmf, absolute or relative to the repo root.
read_vmf_leakWhether a `.vmf` seals, without compiling it, with the path out
ParameterTypeDescription
maxCellsnumber
path *stringPath to the .vmf, absolute or relative to the repo root.
seedsarrayPoints known to be inside. Default: every spawn entity in the map.
stepnumberCell size in units. 16 is the coarsest that resolves a 32-unit doorway. Halving it multiplies the cell count by eight.
read_vmf_lintWhat will break at compile time or in game, before compiling
ParameterTypeDescription
collapseInstancesbooleanExpand every func_instance first, the way vbsp does at compile time. A map using instances otherwise reads as one entity where there is a whole building: counts are far too low, and outputs crossing an instance look like they target nothing. Off by default because it changes every count and every targetname.
limitnumber
path *stringPath to the .vmf, absolute or relative to the repo root.
rulestringKeep only findings from this rule.
severitystringKeep only findings at this severity.
read_vmf_nearest_surfaceExact distance from a point to the nearest surface, and which face it belongs to
ParameterTypeDescription
ownersarray
path *string
radiusnumberHow far to look. Nothing within it reports null rather than the nearest anyway.
read_vmf_roomsThe rooms of a `.vmf`, the doorways between them and how they connect — every merge it made with the reason, the doorway that merge stopped reporting, and the standable places no walk reaches. Each doorway carries both its cell-count estimate and its measured width, from a swept player hull at the same col
ParameterTypeDescription
mergeLimitnumberHow many merges to report, newest first-hit last. mergeCount stays exact.
minRoomAreanumberBelow this floor area, in square units, a region is merged into its largest neighbour.
read_vmf_sightlinesLongest clear sight lines in an uncompiled `.vmf`, sampled where a person can stand
ParameterTypeDescription
eyeHeightnumber
limitnumber
maxCellsnumber
path *string
seedsarray
spacingnumberTake one sample cell in this many, per axis. Pairs cost the square of this.
stepnumber
read_vmf_solidsRebuilds every brush from its planes: is it closed, convex, in the world, on a grid
ParameterTypeDescription
gridnumberGrid size corners are expected to land on. 1 (default) means integers; 0 disables.
includestringWhich solids to return. 'invalid' (default) returns only those with an error.
limitnumberMaximum solids to return. Default 50.
path *stringPath to the .vmf, absolute or relative to the repo root.
verticesbooleanInclude every corner's coordinates. Off by default: it is a lot of numbers.
read_vmf_surfacesFaces sorted into floor, wall, ceiling — and which of them a person could touch
ParameterTypeDescription
exposedOnlyboolean
kindstring
limitnumber
materialstringOnly faces whose material contains this.
path *string
read_vmf_traceTraces a ray or a swept player hull through an uncompiled `.vmf`: what is in the way, how far, which face
ParameterTypeDescription
ownersarrayOnly trace against these owners, e.g. ["world", "func_detail"]. Absent means every brush in the file, including brush entities.
path *stringPath to the .vmf, absolute or relative to the repo root.
read_vmf_visibilityWhether named pairs of points can see each other, and the brush that blocks the ones that cannot
ParameterTypeDescription
ownersarray
pairs *arrayWhat this sight line is, for the report.
path *stringPath to the .vmf, absolute or relative to the repo root.
render_vmf_planA dimensioned floor plan: rooms, areas, doorway widths as measured rather than counted, grid, scale bar, north
ParameterTypeDescription
cutZnumberHeight of the cut. Default: 48 units above the lowest floor a person can stand on.
gridnumberGrid spacing, and the scale bar's length.
heightnumber
path *stringPath to the .vmf, absolute or relative to the repo root.
roomsbooleanOutline rooms and dimension the doorways.
seedsarray
svgbooleanAlso return the SVG text. It can be long.
widthnumber
render_vmf_tourWalks a .vmf and returns one picture of the whole place: a contact sheet of eye-height views, one per room and one from each side of every doorway, worked out from the map rather than from cameras you supply. This exists because of a measurement -- across three sessions in which cold agents built the same map end to end, render_vmf_view was called once between them, and the map that passed every check had a door painted flat on a wall, counters that were single boxes and no skirting anywhere. None of that is visible to any check and all of it is obvious in one look. Cameras stand where a player would, via the same floor-finding measure_vmf_clearance uses, so no frame is the inside of a slab. When the room pass finds nothing to walk it falls back to the spawn and an outside view, and says so rather than returning an empty sheet.
ParameterTypeDescription
fovnumber
heightnumber
maxCellsnumber
minRoomAreanumberSquare units below which a region is not a room.
path *stringPath to the .vmf, absolute or relative to the repo root.
stepnumberCell size for the room pass. Vary it if the rooms come out wrong; see building.md.
widthnumberPer frame, not per sheet.
render_vmf_viewRenders an uncompiled `.vmf` from a camera and returns the picture: form and occlusion, no textures
ParameterTypeDescription
anglesarrayPitch, yaw, roll in degrees. Positive pitch looks down, as Source means it.
eyeHeightnumberAdded to the origin's z. 64 is Source's standing eye height.
fovnumberHorizontal field of view.
fromEntitystringStand at this targetname's origin -- an info_player_start, say.
heightnumber
lookAtarrayAim at this point instead of giving angles. Overrides `angles`.
lookAtEntitystringAim at this targetname's origin. Overrides `angles` and `lookAt`.
nearnumber
originarrayEye position. Omit with `fromEntity`, or with neither to frame the whole map.
path *stringPath to the .vmf, absolute or relative to the repo root.
standbooleanPut the eye where a standing player's would be: drop to the floor under `origin` and rise to eye height. Use this rather than guessing a z.
widthnumber
run_bsp_renameRenames a compiled `.bsp` and the content packed inside it — the nodegraph, cubemap patches, soundscripts. Drives ficool2's `bsp_rename`, a separate download; `health` says whether it is there
ParameterTypeDescription
bsp *stringPath to the .bsp, absolute or relative to the repo root.
newName *stringThe new map name, without the .bsp suffix. Letters, digits, _ - . only.
run_compilevbsp, vvis and vrad under Wine, or natively on Windows, findings per stage. Drives the Hammer++ chain by default, with its culling flags; falls back to the stock compilers when Hammer++ is absent and says which one ran
ParameterTypeDescription
confirmboolean
cullbooleanHammer++ only, and ON by default whenever the ++ chain runs. Culls unreferenced planes, vertices, brushes and brush sides even when no limit is reached yet. Measured on ttt_traps: -20.5% PLANES, -12.8% VERTEXES, -10.5% file size, with FACES and TEXINFO unchanged -- which is what distinguishes a prune from a broken map. Pass false to compile without it; read_map_geometry before and after is the check. Passing true with toolchain 'stock' is refused rather than ignored.
fastbooleanvvis -fast and vrad -fast: minutes instead of hours, dev quality only.
hdrbooleanvrad -both, for an HDR and an LDR lightmap set.
stagesarrayStages to run, in order. vbsp alone is enough to check a map seals.
timeoutMinutesnumber
vmf *stringPath to the .vmf, absolute or relative to the repo root.
run_cubemap2hdrTurns an LDR cubemap into the HDR one Source loads in HDR mode. Refuses anything but DXT1 up front, naming the format the file actually is
ParameterTypeDescription
vtf *stringPath to the LDR cubemap .vtf, absolute or repo-relative.
run_gma_extractPulls matching files out of a `.gma` by offset, without unpacking the rest
ParameterTypeDescription
destination *stringDirectory to write into. Created if absent.
flattenbooleanWrite basenames only, instead of recreating the addon's directories.
limitnumberRefuse to extract more than this many. Default 64.
match *stringOnly entries whose path contains this, case-insensitively. Required.
path *stringPath to the .gma.
run_packPacks files into a `.bsp` via bspzip. `auto` derives the list from the map itself
ParameterTypeDescription
autobooleanDerive the list from the map: assets it references that sit loose in the game's content tree rather than in a VPK. Needs the Python sidecar.
bsp *stringTarget .bsp. It is rewritten in place.
confirmboolean
excludearraySubstrings of in-game paths auto should skip. For the occasional stock file that ships loose -- Garry's Mod keeps detail.vbsp in its own root -- which auto would otherwise pack harmlessly but pointlessly.
filesarrayPath inside the map, e.g. materials/foo/bar.vmt.
run_pakfile_extractGets files out of a compiled map's pakfile — the counterpart `read_pakfile` never had. Refuses an entry that would escape the destination, never overwrites unless told
ParameterTypeDescription
bsp *stringPath to the .bsp, absolute or relative to the repo root.
into *stringDirectory to write into. Created if it is not there.
limitnumberHow many files to write. A production map packs ten thousand.
overwritebooleanReplace files that are already there. Off by default.
patternstringGlob over the in-map path, case-insensitive: `materials/maps/*/c*.vtf` for the cubemaps. Absent extracts everything, up to `limit`.
run_tga2skyboxBuilds a cubemap `.vtf` from six TGA faces, LDR and HDR — the half of cubemap work that does not need the engine running. Drives ficool2's `tga2skybox`
ParameterTypeDescription
base *stringName shared by the faces: `sky_x` for sky_xrt.tga ... sky_xdn.tga.
dir *stringDirectory holding the six TGA faces. The .vtf files are written here too.
run_vtf_convertConverts an image (.tga, .png, .bmp, .jpg ...) into a .vtf the engine can load, written beside the source. The step that used to need a GUI: read_game_content finds what the game ships, this makes what it does not. Drives VTFCmd from ficool2's VTFEdit++, a separate download; health says whether it is installed. Reads the result back and reports its real format and size rather than the ones asked for.
ParameterTypeDescription
alphaFormatstringFormat for textures that have an alpha channel. VTFCmd's default is DXT5.
flagsarrayVTF flags to set, e.g. NOLOD, CLAMPS, CLAMPT. Passed through one by one.
formatstringFormat for textures with no alpha: DXT1, BGR888, RGBA8888 ... VTFCmd's default is DXT1, which is what a wall texture should be.
image *stringPath to the source image, absolute or relative to the repo root.
noMipmapsbooleanSkip mipmaps. Right for a UI texture, wrong for anything in the world.
versionstringVTF version to write, e.g. 7.4. Left alone unless a target needs one.
sculpt_displacementFlatten, raise, slope or noise — with a seed, so it can be made twice
ParameterTypeDescription
path *stringPath to the .vmf, absolute or relative to the repo root.
shape *objectSame seed, same terrain, every time.
solidIdsarrayDisplacements on these brushes.
set_cordonThe cordon box, and whether it is on — the one setting that changes what compiles
ParameterTypeDescription
activebooleanDefault true. False leaves the box and turns it off.
namestringDefault 'cordon'.
path *stringPath to the .vmf, absolute or relative to the repo root.
set_face_materialSets the material on selected faces. Nothing could change one before
ParameterTypeDescription
newMaterial *stringMaterial to apply, in any of the usual forms.
path *stringPath to the .vmf, absolute or relative to the repo root.
set_lightmap_scaleSets `lightmapscale` on selected faces, and projects the luxel bill before writing
ParameterTypeDescription
allbooleanRequired to act on every face of the map when no other selector is given.
facingstringOnly faces pointing this way: up is a floor, down a ceiling, side a wall.
materialstringOnly faces whose material contains this text.
minAreanumberOnly faces of at least this many square units.
path *stringPath to the .vmf, absolute or relative to the repo root.
scale *numberUnits per luxel. Hammer's default is 16; powers of two are the convention.
solidIdsarrayOnly faces of these solids.
set_map_propertiesworldspawn: the sky, the detail sprites, the fog
ParameterTypeDescription
detailmaterialstringThe sprite sheet itself.
detailvbspstringWhich sprites go on which material.
maxpropscreenwidthstring
path *stringPath to the .vmf, absolute or relative to the repo root.
skynamestring
set_smoothing_groupsHammer's 1-to-32 groups, written as the bitmask the file stores
ParameterTypeDescription
groups *arrayHammer's group numbers, 1 to 32. Empty clears every group.
path *stringPath to the .vmf, absolute or relative to the repo root.
set_solid_classMoves brushes between the world and a brush entity — `func_detail` and back
ParameterTypeDescription
entityIdnumberExisting entity of that class to add to. Omit to create one. Grouping is taste, not performance: vbsp dissolves every func_detail into the world regardless.
path *stringPath to the .vmf, absolute or relative to the repo root.
solidIds *arrayHammer ids of the solids to move. read_vmf_solids lists them.
to *string'world' to make them structural again, or a brush entity classname such as func_detail, func_illusionary, func_brush.
set_visgroupNames a selection so later calls can say the name instead of a box
ParameterTypeDescription
colorstringEditor colour, 'r g b'. Default '255 255 255'.
name *stringVisgroup name, as Hammer's tree shows it.
path *stringPath to the .vmf, absolute or relative to the repo root.
removebooleanTake the brushes out instead of putting them in.
sew_displacementsPulls displacements back together along the edges they share
ParameterTypeDescription
path *stringPath to the .vmf, absolute or relative to the repo root.
tolerancenumberHow close two flat points must be to count as the same one. Default 0.1. Must be positive: zero would group every vertex of the map into one.
transform_solidsMoves, turns, scales or mirrors brushes already in the file, texture lock included
ParameterTypeDescription
gridnumberRound every corner to this grid afterwards. Default 0, which rounds nothing. Snapping is what makes a face stop being flat, so what it costs is measured and reported as planarityError rather than assumed to be nothing.
mirrorobjectDefault the selection's centre.
path *stringPath to the .vmf, absolute or relative to the repo root.
rotateobjectAxis to turn about. Need not be unit length.
scaleobjectDefault the selection's centre.
textureLockbooleanDefault true: the texture stays put on its face. Refused on a scale that stretches one axis more than another, because no texture axis pair can express that -- pass false to accept the stretch.
validate_ioEvery output checked against the FGD — the wire that fires into nothing
ParameterTypeDescription
limitnumber
path *stringPath to the .vmf or .bsp, absolute or relative to the repo root.
write_displacementCreates terrain grids on selected faces — 5×5, 9×9 or 17×17
ParameterTypeDescription
allbooleanEvery quadrilateral face of the map. Required when nothing else narrows it.
path *stringPath to the .vmf, absolute or relative to the repo root.
power *number2, 3 or 4: a 5x5, 9x9 or 17x17 grid.
write_hint_brushPlaces a hint brush, straight or diagonal, to shape where vvis splits the map
ParameterTypeDescription
hintFacesstringWhich faces carry the hint. 'largest' (default) hints the two biggest opposing faces, which for a thin slab is the plane you meant. 'all' hints every face.
path *stringPath to the .vmf, absolute or relative to the repo root.
rotateZnumberDegrees to turn the slab about its own centre. 45 gives a diagonal cut. Corners are rounded to whole units, so the faces stay exactly planar.
write_lump_patchBuilds an entity patch from add/update/remove operations
ParameterTypeDescription
bsp *stringTarget .bsp. Its mapRevision and entity list are the base.
dryRunbooleanCompute and report the result without writing.
ops *array
outstringOutput path. Default: server-config/maps/<map>_l_0.lmp
write_portalAreaportals and occluders — the runtime half of visibility
ParameterTypeDescription
classname *stringWhat to place. A window fades rather than sealing.
keyvaluesobject
path *stringPath to the .vmf, absolute or relative to the repo root.
targetnamestring
write_vmfCreates an empty `.vmf` — Hammer's File > New. Refuses to overwrite. Checks the `skyname` it writes against the game's own content, and names complete skies the game has when that one is absent
ParameterTypeDescription
gridSpacingnumberThe grid an editor opens the file showing. Cosmetic; nothing compiles from it.
path *stringWhere to create the .vmf, absolute or relative to the repo root.
skynamestringworldspawn's skyname. read_game_content lists what the game has.
write_vmf_fittingBuilds the things a room is finished with -- a door casing, a counter, skirting or a cornice -- as the several brushes each of them actually is. write_vmf_solid makes one convex shape per call, so an agent that thinks 'counter' writes a box: three rounds of building maps with these tools produced counters, shelving and doorways that were each a single slab, with a door texture painted flat on a wall where a frame should be. The trade here is that you own the envelope and this owns the articulation -- give it the same mins/maxs you would have given a box and get a worktop with a nosing over a body over a recessed kick. Every internal dimension comes from a table measured off models Valve ships (read_model_info, 13/08/2026), which also found that Source's world is built a third taller than its own player: a door leaf is 108 units, a shop counter 56, with the eye at 64. Refuses any assembly whose parts share an interior or fail to join up, which is a class of error per-brush validation cannot see.
ParameterTypeDescription
entityIdnumberHammer id of a brush entity to add them to. Omit to add them to the world.
fittings *arrayWhat to build, in order.
lightmapScalenumberLuxels per unit on every face. Default 16.
materialstringMaterial for every face. Default TOOLS/TOOLSNODRAW.
materialsobjectMaterial per role, as write_vmf_solid takes it and at the same threshold.
path *stringPath to the .vmf, absolute or relative to the repo root.
textureScalenumberTexture scale on both axes. Default 0.25.
write_vmf_solidCreates brushes — box, wedge, prism, cone, arch, sphere, torus, stairs, or a hull face by face. One material, or one per role: top, bottom, sides
ParameterTypeDescription
entityIdnumberHammer id of a brush entity to add them to. Omit to add them to the world.
lightmapScalenumberLuxels per unit on every face. Default 16.
materialstringMaterial for every face. Default TOOLS/TOOLSNODRAW, which draws nothing.
materialsobjectFaces pointing up: the floor of a slab.
path *stringPath to the .vmf, absolute or relative to the repo root.
solids *arrayShapes to create, in order.
textureScalenumberTexture scale on both axes. Default 0.25.

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 7.0K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
  • ✓No dynamic code executionScanned 128 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
stdiosrc/index.ts:2
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
3 callssidecar/main.py:131, sidecar/main.py:155, sidecar/main.py:157
Lockfile
pnpm-lock.yaml

Pattern matches on the source text of 128 files: places to read, not proof of what the code does at run time.

README

The repository's README runs to about 7.0K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Hammer MCP

How do I install Hammer MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Hammer MCP safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). It passes all 5 static checks Conduid ran on the repository. Conduid's scan of 128 source files found that it serves MCP over stdio and writes or deletes files (3 calls). Its dependencies are pinned by pnpm-lock.yaml. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Hammer MCP still maintained?

Yes — the last commit was 23 days ago. The repository has 35 stars and 4 forks and 9 open issues.

What tools does Hammer MCP provide?

Conduid read 77 tools from the source: align_faces, check_vmf_rules, clip_solids, delete_solids, edit_vmf, group_solids, health, hollow_solids and 69 more. 75 of them publish their parameters, listed under Tools above.

What license is Hammer MCP released under?

The repository declares the MIT license.