About Godot AI
Godot AI is an MCP server published by hi-godot in the Gaming category: production-grade MCP server and AI tools for the Godot engine. A Snap to install. Totally free and fun. Conduid read 19 tools from its source: animation_create, batch_execute, editor_reload_plugin, editor_screenshot, editor_state, logs_read and 13 more. It is published to PyPI as godot-ai and runs with uvx.
The repository has 3.8K stars and 206 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v4.4.2 (16 Nov 2026). It follows v4.4.1 (3 Nov 2026), and the 5 most recent releases go back to v4.3.0 (3 Oct 2026). It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned and No dynamic code execution. Its topics include game-development, godot and godot-plugin.
Install
uvx godot-aipip install godot-aigit clone https://github.com/hi-godot/godot-aiTools (19)
animation_createCreate a new Animation clip inside an AnimationPlayer's default library.| Parameter | Type | Description |
|---|---|---|
| length * | number | Duration in seconds. |
| loop_mode | string | "none" (default) | "linear" | "pingpong". |
| name * | string | Animation clip name (e.g. "idle", "pulse"). |
| overwrite | boolean | Replace an existing animation with the same name. |
| player_path * | string | Scene path to the AnimationPlayer node. |
| session_id | string | Optional Godot session to target. Empty = active session. |
batch_executeExecute a list of editor sub-commands in order, stopping on first error.| Parameter | Type | Description |
|---|---|---|
| commands * | array | List of `{"command": str, "params": dict}` items. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| undo | boolean | Roll back succeeded sub-commands on failure. Default True. |
editor_reload_pluginReload the Godot editor plugin.| Parameter | Type | Description |
|---|---|---|
| session_id | string | Optional Godot session to target. Empty = active session. |
editor_screenshotCapture a screenshot of the Godot editor viewport or running game.| Parameter | Type | Description |
|---|---|---|
| azimuth | number | Camera azimuth in degrees (0=front, 90=right). |
| coverage | boolean | With view_target, capture two reference shots + AABB. |
| elevation | number | Camera elevation in degrees (0=level, 90=overhead). |
| fov | number | Camera FOV in degrees. Tight 20-30 = zoom; 60-75 = context. |
| height | integer | Cinematic render height, 1..4096 pixels. Supply with width. |
| include_image | boolean | Return image data. Default True. |
| max_resolution | integer | Maximum longest edge. Default 640. 0 removes the requested cap. Large PNGs are downscaled further to fit the MCP transport; metadata reports the actual and original dimensions. |
| orthographic_view | string | Frame view_target in one 3D viewport image using a Godot axis view (top, bottom, front, back, left, right) or "custom" with both elevation (-90 to 90) and azimuth in degrees. Requires coverage=False and no fov. Returns orthographic_size in world units and restores the original editor camera. |
| overwrite | boolean | Replace an existing save_to PNG. Default False. |
| render_mode | string | For one 3D viewport image, use "normal" for scene lighting or "unshaded" to inspect material colors without lighting. Omit to capture the editor's current display mode. Supports view_target and its framing angles. Requires coverage=False. |
| save_to | string | Cinematic only: save the full render to a res:// PNG path. Parent directories are created. max_resolution and transport limits affect only the inline preview, not the saved PNG. With include_image=False, only metadata crosses the transport; saved_path, saved_width, saved_height and saved_bytes describe the file. File writes require a writable editor and cannot be undone. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| show_gizmos | boolean | Override View Gizmos for one 3D viewport image. Transform handles have their own editor setting. Either override adds viewport_overlays to the capture metadata. |
| show_grid | boolean | Override View Grid for one 3D viewport image. Showing the grid requires the editor-wide grid to be enabled. Omit to use the viewport's setting. |
| source | string | "viewport" | "viewport_2d" | "cinematic" | "game". Default "viewport". |
| user_prompt | string | Optional context from the agent that requested the capture. With Vision Routing enabled it is sent alongside the image so the vision model can describe what the agent is looking for. |
| view_target | string | Node3D scene path(s) to frame, comma-separated. |
| width | integer | Cinematic render width, 1..4096 pixels. Supply with height. Omit both to use the editor viewport size. |
editor_stateGet current Godot editor state: version, readiness, open scene, play state.| Parameter | Type | Description |
|---|---|---|
| session_id | string | Optional Godot session to target. Empty = active session. |
logs_readRead recent log lines from the Godot editor, plugin, or running game.| Parameter | Type | Description |
|---|---|---|
| count | integer | Max lines to return. Default 50. |
| include_details | boolean | Include rich error metadata for game/editor entries. |
| offset | integer | Lines to skip. Default 0. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| since_cursor | integer | Editor-log cursor from a previous source="editor" response. |
| since_run_id | string | Game-log run id from a previous response; reads that retained run instead of the current run. |
| source | string | "plugin" | "game" | "editor" | "all". Default "plugin". |
node_createCreate (spawn) a new node in the scene tree.| Parameter | Type | Description |
|---|---|---|
| name | string | Optional name; Godot auto-names if empty. |
| parent_path | string | Parent path relative to the edited scene root (e.g. "/Main"), NOT runtime "/root/...". Empty = scene root. |
| scene_file | string | Optional editor-scene guard (EDITED_SCENE_MISMATCH). |
| scene_path | string | Optional res:// path of a PackedScene to instantiate. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| type | string | Godot node class (e.g. "Node3D", "MeshInstance3D"). |
node_findFind nodes in the scene tree by name, type, or group.| Parameter | Type | Description |
|---|---|---|
| group | string | Group name the node must belong to. |
| limit | integer | Max number of results. Default 100. |
| name | string | Substring match on node name (case-insensitive). |
| offset | integer | Number of results to skip. Default 0. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| type | string | Exact Godot class name (e.g. "MeshInstance3D"). |
node_get_propertiesGet properties of a node.| Parameter | Type | Description |
|---|---|---|
| fields | array | When non-empty, return only these property names. |
| path * | string | Scene path relative to the edited scene root (e.g. "/Main/Camera3D"), NOT runtime "/root/..." paths. Derive from prior tool responses or scene_get_hierarchy. |
| session_id | string | Optional Godot session to target. Empty = active session. |
node_set_propertySet a property on a node.| Parameter | Type | Description |
|---|---|---|
| path * | string | Scene path relative to the edited scene root (e.g. "/Main/Camera3D"), NOT runtime "/root/..." paths. |
| property * | string | Property name (e.g. "fov", "position", "mesh"). Must match Godot's exact identifier — introspect with ``node_get_properties`` if unsure rather than guessing. |
| scene_file | string | Optional editor-scene guard. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| value | any | New value. Pass null (or "" for resources) to clear. |
project_runRun (play) the Godot project from the editor.| Parameter | Type | Description |
|---|---|---|
| autosave | boolean | When True (default), Godot persists in-memory MCP scene mutations to disk before running. Pass False for smoke tests where MCP edits should stay in memory. |
| mode | string | "main" | "current" | "custom". Default "main". |
| scene | string | Scene path (e.g. "res://levels/level1.tscn"). Required for "custom". |
| session_id | string | Optional Godot session to target. Empty = active session. |
scene_get_hierarchyGet the scene tree hierarchy from the open scene.| Parameter | Type | Description |
|---|---|---|
| depth | integer | Maximum walk depth. Default 10. |
| limit | integer | Max number of nodes to return. Default 100. |
| offset | integer | Number of nodes to skip. Default 0. |
| session_id | string | Optional Godot session to target. Empty = active session. |
scene_openOpen an existing scene file (.tscn) in the editor.| Parameter | Type | Description |
|---|---|---|
| force_reload | boolean | Re-read the scene from disk even when it is already open. This discards unsaved in-memory edits to that scene. |
| path * | string | File path of the scene to open (e.g. "res://main.tscn"). |
| session_id | string | Optional Godot session to target. Empty = active session. |
scene_saveSave the currently edited scene to disk.| Parameter | Type | Description |
|---|---|---|
| session_id | string | Optional Godot session to target. Empty = active session. |
script_attachAttach a script to a node in the scene tree.| Parameter | Type | Description |
|---|---|---|
| path * | string | Scene path of the node (e.g. "/Main/Player"). |
| script_path * | string | res:// path of the .gd (e.g. "res://scripts/player.gd"). A .cs requires a .NET-enabled editor build; other builds get a clear error. Build the assembly before expecting executable behavior. |
| session_id | string | Optional Godot session to target. Empty = active session. |
script_createCreate a script file on disk: GDScript (.gd, validated) or C# (.cs, text only).| Parameter | Type | Description |
|---|---|---|
| content | string | GDScript or C# source. Empty creates a blank file. |
| path * | string | res:// path ending in .gd or .cs (e.g. "res://scripts/player.gd"). |
| session_id | string | Optional Godot session to target. Empty = active session. |
script_patchAnchor-based string-replace edit on a .gd or .cs file.| Parameter | Type | Description |
|---|---|---|
| new_text * | string | Replacement (empty deletes). |
| old_text * | string | Exact substring to find. Must be unique unless replace_all. |
| path * | string | res:// path ending in .gd or .cs. |
| replace_all | boolean | Replace every occurrence. Default False. |
| session_id | string | Optional Godot session to target. Empty = active session. |
session_activateSet the active Godot editor session for subsequent tool calls.| Parameter | Type | Description |
|---|---|---|
| session_id * | string | An exact session id (``<project-slug>@<16hex>``, e.g. ``my_game@7f9c3a10d8e426b1``, from ``session_manage`` with op="list") OR a substring hint like a project folder name ("test_project", "my_game"). |
test_runRun GDScript test suites inside the connected Godot editor.| Parameter | Type | Description |
|---|---|---|
| exclude_test_name | string | Skip tests whose name contains this substring. |
| session_id | string | Optional Godot session to target. Empty = active session. |
| suite | string | Run only the named suite (e.g. "scene", "node", "editor"). Empty runs all suites. |
| test_name | string | Run only tests whose name contains this substring. |
| verbose | boolean | Include every individual test result. Default False. |
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 948 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- !No dynamic code executionScanned 129 source files and found 1 call to eval or shell execution, in src/godot_ai/handlers/editor.py:504. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/godot_ai/__init__.py:200, src/godot_ai/__init__.py:200, src/godot_ai/__init__.py:200
- Starts other programs
- 3 callssrc/godot_ai/attach/ensure.py:532, src/godot_ai/release_verify.py:254, src/godot_ai/release_verify.py:275
- Outbound network calls
- 24 callssrc/godot_ai/attach/ensure.py:344, src/godot_ai/attach/ensure.py:354, src/godot_ai/attach/ensure.py:399
- Writes or deletes files
- 17 callssrc/godot_ai/attach/ensure.py:518, src/godot_ai/release_verify.py:253, src/godot_ai/release_verify.py:274
- Lockfile
- None in the repository
Pattern matches on the source text of 129 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 948 words, fetched 6 days ago. The original in the repository is authoritative.
Read full README