Skip to content

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

The screenshot godot-mcp answered

The demo game. A round teal robot stands on a grassy ledge against a wooden crate, one coin floats above the crate and one at the far left, and the counter in the top-right corner shows 2.
The demo project in examples/site-demo, running in Godot 4.7.1. The picture is the PNG of this answer, converted to WebP for the page.

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
  • GDScript, scenes, resources and settings, read and changed on a machine with no Godot installed.

  • A GDScript file pinned by its SHA-256, with which Godot writes every scene and resource the server changes.

  • GDScript passed on the command line to each game the server starts. No autoload is installed and no setting changes.

  • An 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_mcp add-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.edit applies a batch of changes as one entry in the scene's undo history, and editor.undo takes 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 with conflict.

  • 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.

The editor add-on

The Godot 4.7.1 editor with the demo project's main scene open in the 2D view. The Player node is selected, and the Inspector shows its script's Speed and Jump Speed. The godot_mcp dock reads godot-mcp connected, and the Godot MCP panel at the bottom lists 13 requests, newest first, from editor.scene.save down to editor.scene.open.The Godot 4.7.1 editor with the demo project's main scene open in the 2D view. The Player node is selected, and the Inspector shows its script's Speed and Jump Speed. The godot_mcp dock reads godot-mcp connected, and the Godot MCP panel at the bottom lists 13 requests, newest first, from editor.scene.save down to editor.scene.open.
Godot 4.7.1 with the godot_mcp add-on, on the demo project.

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 the game

The demo game after the scenario. The robot is back at the left edge, the coin that was there is gone, one coin still floats above the crate, and the counter shows 3.
The screenshot the scenario's last step took, converted to WebP for the page.

One 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 full
  • Codex

    codex mcp add godot-mcp -- godot-mcp serve --project /path/to/my-game --profile full
  • OpenCode

    An mcp entry in opencode.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 full
  • Cursor

    The same command as an entry of the mcpServers JSON block.

Claude Desktop and any other client that starts a process over stdio run the same command, most of them from a JSON block.

MCP clients

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.

Profiles and answers · Tools and resources

ProfileAddsTools such as
coreReads; changes nothingproject.info.get scene.tree.get gdscript.references.get
editorWrites and the editor add-onfile.patch scene.batch.apply editor.addon.install
runtimeRuns and watches the gameproject.run.start input.sequence.send runtime.screenshot.capture
fullAll threecore 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-musl

    Statically 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-darwin

    Games 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-msvc

    Statically linked C runtime. Games and editors run in a window in a logged-on desktop session, or headless, contained by a Job Object.

sh
curl -fsSL https://raw.githubusercontent.com/sunerpy/godot-mcp/main/scripts/install.sh | sh
powershell
irm https://raw.githubusercontent.com/sunerpy/godot-mcp/main/scripts/install.ps1 | iex
sh
git clone https://github.com/sunerpy/godot-mcp.git
cd godot-mcp && make dist

The installer checks the archive it downloads against the release's SHA256SUMS.txt.

The install guide

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_local listens on loopback and accepts only requests that carry the per-launch secret, and proxied_oidc only an authenticated proxy hop carrying one user's token. open listens 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.

How it is organised

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.

What it covers

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.

A Rust server, not only an editor plugin

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.

Godot versions

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.

Editing the project

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.

Threat model

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.

HTTP

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.

HTTP

Install godot-mcp

One binary for Linux, macOS and Windows, under the MIT License. Bug reports and feature requests go to GitHub Issues.

godot-mcp is released under the MIT License and is one of the FirLab projects. It is not affiliated with the Godot Engine project. Content from godot-mcp@ed14fb3.