gmod-mcp (Garry's Mod)
MCP server running inside Garry's Mod so AI agents can run Lua, read errors and drive
gmod-mcp (Garry's Mod) is an open-source MCP server for game development. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- Windows, Linux, Self-hosted
- Runs
- Locally
- Version
- 0.3.8
- Listing updated
Similar MCP servers
Install
In Claude Desktop → Settings → Extensions
https://github.com/ExtReMLapin/gmod-mcp/releases/download/v0.3.8/gmod-mcp.mcpbDownload the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.
Using several servers? Build one config file with the MCP config generator.
About gmod-mcp (Garry's Mod)
Gmod-mcp is a native module dropped into a Garry's Mod install that exposes the running game to an AI coding agent over a local MCP connection. An agent can execute Lua in the menu, client and server realms, load maps, read the console and error log, inspect and spawn entities, take screenshots and trace hook calls.
The server listens only on 127.0.0.1 behind a bearer token and refuses requests from browser origins other than local ones. It stays inactive unless the game is launched with the -mcp option, and it never touches the client realm while connected to a server that is not on the same machine. Claude Code users can install it as a plugin, which adds a bridge that keeps the tools listed while the game is closed.
It suits Garry's Mod addon and gamemode developers who want an agent to write, test and debug Lua against a live game, including running several test clients side by side on Windows.
What it does
- Multi-realm Lua execution
- Runs code in the menu, client and server states and reports the results back to the agent.
- Error and console access
- Reads Lua errors and console output from all realms, with stack traces, so failures can be diagnosed.
- Hook tracing and profiling
- Traces hook calls and measures the cost of hooks and performance snapshots.
- Screenshots and world inspection
- Captures the screen, traces surfaces and finds, spawns or edits entities in the running game.
- Long-running Lua jobs
- Runs multi-frame scripts with progress reporting, cancellation and background execution.
- Multiple test clients
- Launches and closes several test game instances and routes calls to a chosen one.
Good for
- Debugging an addon's Lua errors by letting an agent reproduce and read the stack traces
- Testing a git branch of an addon in a separate game client without changing the installed copy
- Checking which functions and hooks run on the client versus the server
- Running automated GLuaTest suites against a live map
- Inspecting entities and map state while developing a gamemode
Pricing
Open source
Free and MIT licensed; self-hosted in your own game folder.
gmod-mcp (Garry's Mod) FAQ
Does gmod-mcp (Garry's Mod) work on Linux?
Dedicated servers on Linux are supported. Test clients launched through the tool are Windows only, and the Linux client game has not been tested.
Does the game need to be running for the agent to connect?
The game must be started with the -mcp launch option. With the Claude Code plugin, the bridge stays connected while the game is closed and reports that the game is not running.
Can gmod-mcp (Garry's Mod) connect my game to other servers?
No. Console connect commands to servers not on the same machine are refused, and the client realm is locked on remote servers.
Is gmod-mcp (Garry's Mod) free?
Yes. gmod-mcp (Garry's Mod) is open source, so you can use and self-host it for free.
What are the best alternatives to gmod-mcp (Garry's Mod)?
The closest alternatives to gmod-mcp (Garry's Mod) are Roblox Studio MCP, Funplay Godot MCP, Godot MCP, Glade MCP and Godot MCP Enhanced.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.