About Gmod MCP
Gmod MCP is an MCP server published by Sycatle in the Gaming category: mCP server that drives a running Garry's Mod server: inspect entities, players and hooks, run assertions against real state. Conduid read 38 tools from its source: batch, capture_screen, client_input, force_hook, health, inspect_entity and 32 more. No package is published for it, so it installs from a source checkout.
The repository has 4 stars and 0 forks, and its last commit was on 14 Aug 2026. Conduid has no tagged release on record for it. Its topics include game-development, garrys-mod, glua, lua and source-engine.
Install
git clone https://github.com/Sycatle/gmod-mcpTools (38)
batchRuns up to 32 server tools in ONE bridge round trip instead of one per call. A round trip costs about 0.4s, so any act-then-look sequence is dominated by transport unless it is batched. Each step reports its own ok/data/error; a step failing is data, not a transport error. IMPORTANT: with settleMs 0 every step runs in the SAME server tick, and some engine effects only land at the end of a frame -- a removed entity still reads as valid. Set settleMs (100 is usually enough) whenever a step must observe what an earlier one did. Any arg value may be {"__step": 1, "get": "index"} to read a field from an earlier step's result, so spawn-then-act still costs one round trip.capture_screenCaptures the client's screen on the next frame and returns it as a viewable image. Every byte travels in 7KB chunks paced by frame, so a full-resolution capture takes seconds and dominates any act-then-look loop: the default half scale at quality 60 is 4-6x cheaper and still legible for a Derma layout. Pass region (from read_panels' screen_x/screen_y) to capture just one panel. A capture that would exceed the client's channel budget is refused with its size rather than sent: a full-screen quality-80 capture measured 424KB and timed the client out of the server. Requires an active GMod client.client_inputDrives the connected GMod client: movement, aim, keys, Derma clicks, typing, chat. Modal -- 'world' drives movement through CreateMove, 'ui' hands input to the panel system, and the two are mutually exclusive; the action switches mode for you. Durations are SECONDS (CreateMove runs at the client's cmdrate, so tick counts are not a duration), clamped to 5s, and everything resets after 30s or on `gmod_mcp_release` in the client console. To fill a form use `set_text` (targets a field by name and fires its change notification); `type` sends real keystrokes and needs a target or an already-focused field. `click` takes a NAMED target as well as x/y and is self-sufficient -- it moves the cursor, waits for hover to settle, presses and releases, so no `move_cursor` is needed first. Follow with read_view or read_panel_text to see the effect.force_hookGUARDED. Runs hook.Run(name, ...) to exercise a gamemode path without reproducing the situation. JSON cannot carry an Entity, so arguments may be tagged: {"__ent": 3}, {"__ply": "STEAM_0:1:2"}, {"__vec": [x,y,z]}, {"__ang": [p,y,r]}. Requires confirm:true.healthgmod-mcp daemon status: version, detected repo root, presence of the tools/ scripts, state directory. Also probes the addon (3s) and reports the transport state -- whether this daemon owns the shared directory (a second Claude Code session starts a second daemon, which breaks every bridge tool), what is in flight, and any server handler the daemon declares but the game has not registered.inspect_entityDetails of one entity by index: class, model, health, owner, key-values.inspect_panelFinds a panel by NAME, class and/or displayed text, and returns its screen rectangle, its text, whether it holds keyboard focus, and the other matches. NAME is the registered vgui name (R_CharCreate, R_UI_Button, echat.textentry) and is what you want: `class` is the VGUI base the panel derives from, so a kit panel's class reads Label or Panel and searching by class can never find it. Off-screen panels are excluded unless onScreen:false -- a live tree measured 1408 panels of which 5 were on screen.lintRuns tools/lint.sh on an addon (name or path). Returns structured findings (file, line, rule) and the exit code. Exit 0 means clean.packageBuilds an addon's .gma through tools/package-gma.sh, linting first and refusing on failure. Output lands in dist/.patch_fileReplaces a file's contents (inside the repo) after backing it up. Returns a patch id for restore_patch, plus the unified diff. rationale explains the change.read_client_convarsClient-side convar values. Without names, returns a common subset.read_consoleCLIENT Lua errors captured since load. GMod does not expose the console buffer itself.read_convarsServer convar values. Without `names`, returns a common subset.read_entitiesLists entities, filterable by class. Returns index, class, model and position.read_hooksRegistered hooks (hook.GetTable), filterable by event. Returns event -> identifiers.read_logsReads the server logs. source=game (Lua errors, -condebug) or stdout (the wrapper). sinceBoot:true bounds output to the current boot. errorsOnly:true returns structured runtime findings.read_net_messagesRegistered net messages (util.AddNetworkString) and whether a net.Receive exists.read_panel_textDumps what the interface DISPLAYS, as text: name, class, screen rectangle and text content of each panel under a named root. Use this instead of capture_screen to assert a value -- a capture travels in 7KB chunks paced one per frame, and a number read off a compressed JPEG is not an assertion. Text comes from GetText, GetValue, or a .label/.text/.title field (kit buttons paint their label and answer '' to GetText). The list is depth-first with depth relative to the root, so the parent chain is recoverable from the ordering: the DTextEntry that follows the DLabel 'Prénom' is that field. capture_screen remains the tool for anything visual -- z-order, overlap, a missing glyph.read_panelsDerma/VGUI panel tree: class, name, visibility, size, position both parent-relative (x/y) and absolute (screen_x/screen_y), whether mouse input is enabled, and on_screen. Filter on on_screen: `visible` is the panel's own flag only, so a flat tree is mostly panels belonging to closed menus. Use screen_x/screen_y to aim a click or a capture region -- x/y are relative to the parent and are (0,0) for most nested panels.read_playersLists players: name, SteamID, team/job, ping, position, health.read_runtimeSnapshot of server state: map, gamemode, CurTime, player and entity counts, uptime.read_timersState of named timers: exists, time left, repetitions left. GMod cannot enumerate timers, so `names` is required to get anything back.read_viewWhat the client sees and is pointed at: eye position and angles, aim trace (class, index, distance, hit position), health, weapon, cursor position and visibility, the hovered panel, the panel holding keyboard focus, and the current scripted-input mode. This is the cheap half of an act-then-look loop -- one chunk, no image -- and answers 'am I aimed at the door' without a screenshot.reload_addonTouches every .lua file of an addon to trigger autorefresh. Best-effort; structural changes still need a restart.reload_fileTriggers GMod's Lua autorefresh for a file by bumping its mtime. Best-effort: it covers edits, while new files and autoruns still need a restart.restore_patchReverts a patch by id, restoring the previous state.run_console_commandRuns a server console command (game.ConsoleCommand -- queued, around 0.25s of latency). Read the result back in a SEPARATE call: the command has not run when this one returns.run_iterationOne full iteration: optional patch -> reload (or a restart note) -> validate. Returns the applied patch and the verdict. This is the core of the edit/observe/fix loop.run_luaGUARDED. Runs arbitrary Lua server-side (RunString) and returns the resulting value. Requires confirm:true. Audited. WARNING: console commands are QUEUED. A snippet that calls RunConsoleCommand or game.ConsoleCommand and then reads the cvar back in the same snippet reads the OLD value -- the command runs after this execution ends, so the read is not a failure, it is simply early. Split it into two calls, or use `batch` with settleMs between the steps.run_testRuns a GLua test file server-side and returns {passed, failed, results}. path is relative to lua/, e.g. 'myaddon/tests/x.lua'. The file returns a table { [name] = function(t) end }.send_debugPrints a message server-side, useful for marking the log or tracing.set_player_stateGUARDED, DarkRP. Sets a player's money, job, salary or RP name. Money is in INTEGER CENTS (1.50$ is 150) and goes through the r-capitalism ledger when it is loaded, so the audited invariant stays intact. Fails with a named error when DarkRP is absent. Requires confirm:true.spawn_entityGUARDED. Creates and spawns an entity at a position. Returns its EntIndex, which the other world tools take as a target. Requires confirm:true.start_serverStarts the dedicated server through tools/start-server.sh [map] [gamemode] [tickrate] and records the log's boot boundary. Script defaults: rp_nycity_day/darkrp/33.stop_serverStops the dedicated server through tools/stop-server.sh.sync_configReapplies server-config/ and (re)creates the symlinks through tools/sync-server-config.sh. check:true compares without writing (--check).validateVerdict for the loop: the addon's lint plus the current boot's runtime errors. ok=true when lint is clean AND no runtime error was seen.world_editGUARDED. Acts on one entity or player: remove, teleport, set_ang, freeze, unfreeze, set_health, set_armor, give, strip. target is an entity index or a player's SteamID/name. Requires confirm:true.Security checks
6 checks have not been run yet.