Godot-MCP — Model Context Protocol (MCP) integration for the Godot Engine. AI tools for the Godot Editor in C#, with cloud connection to ai-game.dev. Apache-2.0
Godot-MCP — Model Context Protocol (MCP) integration for the Godot Engine. AI tools for the Godot Editor in C#, with cloud connection to ai-game.dev. Apache-2.0
Godot MCP is an AI-powered game development assistant for the Godot Editor. Connect Claude, Cursor, Copilot, or any MCP-aware agent to Godot and let it inspect and drive your project — create nodes, edit scenes, manage resources and scripts, capture screenshots, and more.
Godot-MCP is the Godot counterpart of Unity-MCP: a C# editor addon that exposes Godot Editor operations as AI Tools and connects them to an MCP server through the same hosted cloud backend (ai-game.dev) that powers Unity-MCP — or your own self-hosted server. The MCP / reflection stack is not forked: it is shared with Unity-MCP and consumed from nuget.org as PackageReferences.
Join our Discord Server — Ask questions, showcase your work, and connect with other developers!
.cs and .gd scripts, and attach them to nodes.tscn scenes, mutate .tres/.res resourcesai-game.dev out of the box, or point at your own serverGet up and running from a terminal using the godot-cli (the Godot analog of unity-mcp-cli) — no manual file copying or csproj editing required:
…That's it. Ask your AI "Create 3 cubes in a circle with radius 2" and watch it happen. ✨
Offline / dev install:
install-plugin --source /addons/godot_mcpcopies the addon from a local directory instead of downloading it. Prefer the matching release version withinstall-plugin --versionif you need a specific addon build. The manual route (copy the addon + add the NuGet packages yourself) is still documented under Installation Steps 1–2 for the Asset Library / hand-managed flows.
See the full CLI documentation for every command, editor-resolution order, and connection env vars.
MCP Server setup
Godot-MCP ships 42 built-in tools grouped into 12 families. Tool names mirror Unity-MCP where
sensible (scene-*, node-*, …). Every tool returns a structured, ReflectorNet-serialized
result (or a PNG image for screenshots). All editor tools are available immediately after the addon is
enabled — no extra configuration required. The runtime-errors family is the exception: it surfaces
errors from the running game and is OFF by default — opt in with builder.WithRuntimeErrorCapture()
(see Capturing in-game runtime errors).
| Family | Tools | What it does |
|---|---|---|
| ping | ping |
Lightweight readiness probe — echoes a message back, or returns pong. Verifies the end-to-end MCP path (editor → SignalR → tool dispatch). System tool — reachable over the server's /api/system-tools/ HTTP surface, not advertised to AI agents in tools/list. |
| node | node-find, node-create, node-modify, node-set-parent, node-reorder, node-duplicate, node-delete |
Inspect and edit the active scene tree (the Godot analog of Unity GameObjects), driving EditorInterface on the main thread. Child order — which is layout order in a VBoxContainer/HBoxContainer — is settable both on creation (node-create's index) and afterwards (node-reorder). |
| scene | scene-open, scene-save, scene-create, scene-list-opened, scene-get-data |
Open, save, create, and inspect Godot scenes (res://*.tscn PackedScenes) in the editor. |
| resource | resource-find, resource-get-data, resource-modify, resource-create, resource-move, resource-delete |
Find and mutate Godot resources (.tres/.res) through ResourceLoader/ResourceSaver/EditorFileSystem, keeping .import sidecars consistent. |
| filesystem | filesystem-list, filesystem-reimport |
Browse and reimport the project's res:// tree via the editor EditorFileSystem index (file types + uids without loading resources). |
| script | script-read, script-create, script-update, script-delete, script-attach-to-node, script-validate |
CRUD on C# (.cs) and GDScript (.gd) files, plus attaching a script to a node and validating GDScript. |
| screenshot | screenshot-viewport, screenshot-camera, screenshot-isolated |
Capture the editor viewport, a specific camera, or an isolated node render, returned as a PNG image the LLM can inspect. |
| editor | editor-application-get-state, editor-application-set-state, editor-selection-get, editor-selection-set |
Read/drive the editor run-and-play lifecycle (Godot launches the game in a separate process) and the current selection. |
| console | console-get-logs, console-clear-logs |
Read and clear the plugin's editor log collector (GD.Print/GD.PushWarning/GD.PushError). |
| reflection | reflection-method-find, reflection-method-call |
Find and call C# methods (static/instance, public/private) across every loaded assembly via ReflectorNet — the engine-agnostic escape hatch. |
| skills | godot-skill-create, godot-skill-generate |
Author a new MCP tool as a C# file in the project, and regenerate the SKILL.md files from the tools the editor currently has registered. System tools — reachable over the server's /api/system-tools/ HTTP surface (like ping), not advertised to AI agents in tools/list. |
| runtime-errors | runtime-errors-get, runtime-errors-clear |
Poll errors raised inside the running game (NOT the editor) — GDScript runtime errors, push_error/push_warning, shader errors, and C# unhandled / unobserved-Task exceptions, with multi-frame GDScript backtraces on Godot 4.5+. OFF by default — opt in with builder.WithRuntimeErrorCapture(). |
ping
ping — Lightweight readiness probe; echoes a message back, or returns pong. A System tool: call it
over /api/system-tools/ping (or godot-cli run-system-tool ping); it is not listed in tools/list.node
node-find — Find nodes in the active scene tree by path, type, or name.node-create — Create a new node under a parent (optionally instancing a .tscn sub-scene), optionally
at a specific sibling index (negative counts from the end).node-modify — Set fields/properties on one or more nodes.node-set-parent — Reparent nodes within the scene tree.node-reorder — Move an existing node to a different position among its siblings (Node.MoveChild) —
the only way to rearrange an existing scene short of delete-and-recreate.node-duplicate — Duplicate nodes together with their subtrees.node-delete — Delete nodes from the active scene.scene
scene-open — Open a res://*.tscn PackedScene in the editor.scene-save — Save an open scene back to its .tscn file.scene-create — Create a new scene asset in the project.scene-list-opened — List the scenes currently open in the editor.scene-get-data — Retrieve the root nodes / structure of a scene.resource
resource-find — Search the project for resources (.tres/.res).resource-get-data — Read a resource's serialized fields and properties.resource-modify — Modify a resource's properties.resource-create — Create a new resource asset.resource-move — Move / rename a resource, keeping .import sidecars consistent.resource-delete — Delete a resource from the project.filesystem
filesystem-list — Browse the res:// tree (file types + uids) via the editor file index.filesystem-reimport — Reimport files in the project.script
script-read — Read a .cs / .gd script file.script-create — Create a new script file.script-update — Update an existing script file's contents.script-delete — Delete a script file.script-attach-to-node — Attach a script to a node.script-validate — Validate GDScript (.gd) files and return structured parse/compile diagnostics.screenshot
screenshot-viewport — Capture the editor viewport as a PNG.screenshot-camera — Capture from a specific camera.screenshot-isolated — Render a node in isolation from a chosen angle.editor
editor-application-get-state — Read the editor application/run state.editor-application-set-state — Start / stop the running game.editor-selection-get — Get the current editor selection.editor-selection-set — Set the current editor selection.console
console-get-logs — Read the plugin's collected editor logs (with filtering). This includes the
plugin's connection lifecycle diagnostics (connect/disconnect, drain-timeout, config save/load,
skill-gen, dev-control, dispatcher, and runtime-capture warnings), which route through the same
capture sink as its framework logs.console-clear-logs — Clear the collected log cache.reflection
reflection-method-find — Find C# methods (including private) across every loaded assembly.reflection-method-call — Call any C# method with input parameters and get the result.runtime-errors (in-game; OFF by default — enable with builder.WithRuntimeErrorCapture())
runtime-errors-get — Read captured in-game runtime errors (oldest-first, newest-kept page); poll only new errors via sinceSequence. Returns available:false when capture was never enabled, so an empty list is never mistaken for health.runtime-errors-clear — Clear the captured in-game runtime-error buffer (a no-op when capture is not enabled); the monotonic sequence counter is preserved.skills (system tools — served on
No open issues yet, or sync has not completed.