Introduction
godot-mcp is a Model Context Protocol server for one Godot project. Your MCP client — Claude Code, Codex CLI, an editor's agent — starts it as a local process and talks to it over stdio. The client never talks to the Godot editor directly, and it does not matter which editor or IDE you use.
What it gives an agent
- Answers about the project without the engine. Project discovery and validation, GDScript symbols, references, callers and impact, scene and resource trees, and the dependency graph are read from the project's files, so they work on a machine with no Godot installed.
- Changes that are proved, not assumed. Every write names the SHA-256 of what it replaces and is journaled before it runs. A stale edit is refused with
conflict; a crash part-way is settled before the next request, never guessed. - The real engine. GDScript checks, imports, tests and exports run in the Godot build you configure, inside a process boundary the server owns.
- Games and editors it owns. It starts the game or a headless editor, sends input, reads the live scene tree, captures screenshots and recordings, and debugs through the editor's language server and debug adapter.
- Recipes for common setups.
scene.recipe.applyadds a physics body, lights, particles, navigation, a sound, a shader material, a HUD, a grid map, a joystick or an AnimationTree state machine to a scene by name, as one journaled change, andresource.createmakes a theme or a 3D material the same way. What it covers lists the tools for each part of a Godot project.
A Rust server, not only an editor plugin
godot-mcp is written in Rust and GDScript, each where it does the most good. The server is one static Rust binary, with no language runtime to install: it speaks MCP, reads GDScript, scenes and resources without the engine, keeps the journal that makes every change provable, and starts and contains every Godot process it uses. GDScript runs inside Godot, and only where a task needs the engine:
- the headless helper, a script pinned by its SHA-256, with which Godot itself writes the text of every scene and resource the server changes and answers the reads only the engine can;
- the runtime probe, which the server passes on the command line to each game it starts: no autoload is installed and no project setting changes, so there is nothing to undo when the game stops;
- the
godot_mcpadd-on, an editor plugin you install only to bring the editor you have open into the work.
A tool built only as an editor plugin lives inside the editor: it works only while the editor runs, and only with what the editor holds. godot-mcp works beside the project instead. Analysis and file edits need no Godot at all; a Godot executable is enough for checks, imports, tests, exports and games; and the add-on adds the editor you are using, with the server keeping its journal, policy and recovery rules for the edits made there.
How it is organised
Every tool needs one of five things, and the tool inventory names it for each:
| Needs | Means | Examples |
|---|---|---|
project_files | The project's files only, on a machine with or without Godot | scene.tree.get, gdscript.references.get, file.patch |
headless_engine | A Godot executable, which the server starts without a window of its own | script.check, project.test, project.export |
game_session | A game the server started with project.run.start | runtime.tree.get, input.key.send, runtime.screenshot.capture |
editor_session | A headless editor the server started with editor.session.start | debug.command |
live_editor | Your Godot editor, connected through the godot_mcp add-on | editor.scene.tree.get, editor.undo |
A profile decides which tools are listed at all: core reads, editor adds the writes and the editor add-on, runtime adds running and observing the game, and full is all three. A listed tool whose engine, game or editor is not there right now answers unavailable and says which, so a client can rely on the tool list and learn about the machine from the answers. See Profiles and answers.
What it is not
An agent's own GDScript runs only after you start the server with --allow-scripts, and no typed tool calls an engine method outside its fixed set. godot-mcp never downloads Godot or export templates. It serves one project for one user; it is not a shared service. And loading a Godot project runs that project's code, so the server's process boundaries contain and stop what it starts without making an untrusted project safe to open — the threat model says exactly where the lines are.
Next
- Install the binary.
- Quick start: register it with a client and make the first calls.
- What it covers: the tools for animation, physics, 3D, particles, navigation and the other parts of a project.