godot-mcpAn MCP server for Godot projects
One static binary beside your project. Your agent reads GDScript, scenes and resources without the engine, changes them through journaled transactions, and runs, drives, captures and debugs the game and the editor.
- Runs as
- One local process, stdio by default
- Godot
- 4.4.0 or later, the build you point it at
- Built as
- A Rust server with an optional editor plugin
What an agent sent the running game
› input.sequence.sendaction ui_right press holdMs 2000wait ms 2000steps_run 2› runtime.waitproperty score == 2satisfied true› runtime.screenshot.captureartifact 960 × 540 529325 bytesThe screenshot godot-mcp answered

A Rust server, not only an editor plugin
Your client talks to one Rust binary. GDScript runs inside Godot only where a task needs the engine, so analysis and file edits work with no editor open and no Godot installed.
Your MCP client
Starts godot-mcp as a process and talks to it over stdio, or over HTTP when you turn that on, on this machine or across your development network.
godot-mcp
One static Rust binary beside the project, with no language runtime to install.
- Speaks MCP
- Reads GDScript, scenes and resources without the engine
- Journals every change before it runs
- Starts and contains every Godot process it uses
The project's files
No engineGDScript, scenes, resources and settings, read and changed on a machine with no Godot installed.
The headless helper
Needs GodotA GDScript file pinned by its SHA-256, with which Godot writes every scene and resource the server changes.
The runtime probe
Needs GodotGDScript passed on the command line to each game the server starts. No autoload is installed and no setting changes.
The godot_mcp add-on
Needs GodotAn optional editor plugin for the editor you have open. Each change it makes is one undoable editor action.
A tool that is only an editor plugin works only while the editor runs, and only with what the editor holds. godot-mcp works beside the project, and its add-on brings in your editor when you want it.
What your agent can do with it
Each of these is a set of tools the agent calls. The ones marked No engine answer from the project's files on a machine without Godot; the others run the Godot build you configure.
- No engine
Read the project
Scene trees, GDScript symbols, references, callers and impact, and the dependency graph, read from the files. Every relation says how sure it is.
Player CharacterBody2D player.gd Coins/CoinA.collected → ._on_coin_collected exact - No engine
Change it safely
Every write names the SHA-256 of what it replaces and is journaled before it runs. A stale edit is refused, and a crash part-way is settled before the next request.
file.patch player.gd → conflict - Needs Godot
Check, import and test
Scripts checked by Godot itself, the import pipeline, and the project's own GUT or gdUnit4 suite with exact counts, in the build you configure.
script.check player.gd → passed - Needs Godot
Export
A preset exported with exactly the templates of your Godot build, as a managed export you can follow and cancel. The output goes to the server's storage, never into the project.
- export.presets.list
- project.export
- project.export.status
- project.export.cancel
- Needs Godot
Run the game
The main scene or any scene, in a window or headless, with a probe the server passes on the command line, so nothing in the project changes.
project.run.start → running, probe connected - Needs Godot
Play it and check it
Keys, mouse and actions that are always released afterwards, then waits and assertions in one scenario that reports every step.
test.scenario.run → passed, 5 of 5 steps - Needs Godot
Work in your editor
With the
godot_mcpadd-on, edit and save the scenes your editor holds, paint tiles, key animations, capture the window and read the log. Each edit is one undoable action.- editor.scene.edit
- editor.undo
- editor.scene.save
- editor.screenshot.capture
- Needs Godot
Debug
A headless editor session hosts Godot's language server and debug adapter, for breakpoints, the stack, scopes and variables, and a script's diagnostics.
- editor.session.start
- debug.command
- debug.session.get
Edits you can undo, in your editor
The godot_mcp add-on connects the Godot editor you have open. An agent's change to an open scene goes into the editor's own undo history, and the add-on's panel lists the requests the editor answered.
One undoable action
editor.scene.editapplies a batch of changes as one entry in the scene's undo history, andeditor.undotakes it back.Nothing saved until you ask
An edit stays in the editor until
editor.scene.save, and a headless write to a file the editor holds is refused withconflict.Requests on the panel
The panel lists the newest 500 requests the editor answered, each with its method, what it was about and its result, but never its arguments.
A switch for you
While Pause agent edits is on, the editor refuses every change the server asks it to make; reads still work.


A game it plays and checks
The server starts the game with a probe of its own, sends it input and reads its state back. test.scenario.run runs input, waits and assertions in one call and answers a report.
Input that is always released
Every key, button and action is released when its hold ends, when the sequence ends or when the session stops.
Waits on the game's own state
A wait holds until a node exists or is gone, a property compares, a signal fires or a control shows a text.
A report, not a log
Each step passes, fails with what was expected and what was found, or says why it could not run.

› test.scenario.runsteps: assert_property, input, wait, assert_ui_text, screenshottwo-coins assert_property passedwalk-back input passedthird-coin wait passedhud assert_ui_text passedafter screenshot passedverdict passed passed 5 total 5One command in any MCP client
godot-mcp is a stdio MCP server. Every client that starts a process runs the same command, and most register it in one line.
Claude Code
claude mcp add godot-mcp -- godot-mcp serve --project /path/to/my-game --profile fullCodex
codex mcp add godot-mcp -- godot-mcp serve --project /path/to/my-game --profile fullOpenCode
An
mcpentry inopencode.json, in the project or in its global configuration.Pi Agent
pi mcp add godot-mcp -- godot-mcp serve --project /path/to/my-game --profile fullCursor
The same command as an entry of the
mcpServersJSON block.
Claude Desktop and any other client that starts a process over stdio run the same command, most of them from a JSON block.
Choose what it may do
A profile is the ceiling for everything the server may do to your project. core reads and changes nothing. editor adds the writes, each one journaled and checked against what it replaces. runtime adds running the project and watching it.
Running an agent's own GDScript is off in every profile until you start the server with --allow-scripts.
| Profile | Adds | Tools such as |
|---|---|---|
core | Reads; changes nothing | project.info.get scene.tree.get gdscript.references.get |
editor | Writes and the editor add-on | file.patch scene.batch.apply editor.addon.install |
runtime | Runs and watches the game | project.run.start input.sequence.send runtime.screenshot.capture |
full | All three | core editor runtime |
A tool outside the profile is not listed. A listed tool whose engine, game or editor is not there answers unavailable and says which one.
The engine, exactly
Every Godot build the project supports is an exact patch version in one lock, with its official download and digest. Each release has an archive for every platform below, smoke-tested there against the newest build.
- 4.7.2
Editor check, export templates, display check and the packaged smoke, on Linux, macOS and Windows
- 4.7.1
Editor check and export templates, on Linux
- 4.6.1
Editor check and export templates, on Linux
- 4.5.1
Editor check and export templates, on Linux
- 4.4.1
Editor check and export templates, on Linux
Linux x86_64
x86_64-unknown-linux-muslStatically linked. Games and editors run in a window under X11 or Wayland, or headless, contained by a process group, a delegated cgroup or a container adapter.
macOS Apple silicon
aarch64-apple-darwinGames and editors run in a window in a logged-in user's session, or headless, contained by a process group or a container adapter.
Windows x86_64
x86_64-pc-windows-msvcStatically linked C runtime. Games and editors run in a window in a logged-on desktop session, or headless, contained by a Job Object.
curl -fsSL https://raw.githubusercontent.com/sunerpy/godot-mcp/main/scripts/install.sh | shirm https://raw.githubusercontent.com/sunerpy/godot-mcp/main/scripts/install.ps1 | iexgit clone https://github.com/sunerpy/godot-mcp.git
cd godot-mcp && make distThe installer checks the archive it downloads against the release's SHA256SUMS.txt.
The minimum supported version is 4.4.0. Intel macOS, Linux arm64 and Windows ARM64 have no archive; build from source there.
Where your project goes
godot-mcp works on your machine. It makes no network request of its own, apart from fetching your identity provider's signing keys when you configure OIDC.
Tool calls
Goes toYour MCP client
Over stdio the client and the server talk through two pipes. An answer carries the project data the call asked for, and nothing goes anywhere else.
HTTP, when you turn it on
Goes toThe clients that reach the listener
trusted_locallistens on loopback and accepts only requests that carry the per-launch secret, andproxied_oidconly an authenticated proxy hop carrying one user's token.openlistens on the address you give it, for a development network whose machines are yours, with no credential or one token.The engine
Goes toYour machine
Godot runs locally from the build you configure, inside a process boundary the server owns. godot-mcp never downloads an engine or export templates.
Logs and captures
Goes toLocal files
Diagnostics go to stderr or a rolling file with secrets and source redacted. Screenshots, recordings and exports stay on disk as artifacts until their retention ends.
Questions
Do I need the Godot editor open?
No. Analysis and file edits work from the project's files with no Godot installed. Checks, imports, tests, exports and games need a Godot executable, which the server starts itself. Only the editor tools need your editor, through the godot_mcp add-on.
Which parts of a Godot project can it work on?
Animation, AnimationTree, physics, 3D, particles, navigation, audio, shaders, themes, TileMap and the running game, each through tools the agent calls. scene.recipe.apply adds a common setup, such as a physics body, smoke particles or an AnimationTree state machine, to a scene by name, and every recipe is also an MCP prompt the agent can find.
Is it an editor plugin?
It includes one, the optional godot_mcp add-on, which brings the editor you have open into the work. The server itself is one Rust binary beside the project, so with no editor open it still reads, edits, runs, tests and exports the project.
Which Godot versions does it support?
Godot 4.4.0 or later. CI checks the exact builds 4.4.1, 4.5.1, 4.6.1, 4.7.1 and 4.7.2, and a tool that needs a newer build says so, such as editor.log.get, which needs 4.5.1.
Can it break my project?
Every write names the SHA-256 of what it replaces and is journaled before it runs, so a stale edit is refused with conflict and a crash part-way is settled before the next request. It does not edit binary .scn and .res files; save them as text first.
Does it run GDScript an agent writes?
Only after you start the server with --allow-scripts, and its typed tools call no engine method outside their own fixed set. Loading a project runs that project's own code, so the server contains what it starts without making an untrusted project safe to open.
Can an agent on another machine use it?
Yes, on a development network whose machines are yours: godot-mcp serve --http 0.0.0.0:8765 serves MCP over HTTP to the other machines, with no credential or with one token. Beyond such a network, keep HTTP on loopback or put an authenticated reverse proxy in front.
Does it send my project anywhere?
No. It makes no network request of its own, apart from fetching your identity provider's signing keys when you configure OIDC, and it never downloads Godot or export templates. One server serves one project for one user; it is not a shared service.
Install godot-mcp
One binary for Linux, macOS and Windows, under the MIT License. Bug reports and feature requests go to GitHub Issues.