Godot MCP
v4.3.0Agent-driven Godot playtesting: editor control, input injection, game-time stepping, live state.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
godot_scene
Manage scenes in the editor: open a scene, save the open scene, or reload an open scene from disk after you edit its .tscn directly (so the editor picks up the change without a full restart). To create a new scene, write the .tscn file directly — header [gd_scene format=3] without a uid (the editor assigns one when it imports the file), then one [node name="X" type="Node2D"] block per node — and open it with this tool.
| Parameter | Type | Description |
|---|---|---|
action * | string | open: Open a scene file save: Save the currently active scene to its own file. Honors reset_on_save: players with a RESET animation are written at their rest pose, not a previewed one. reload: Reload… |
scene_path | string | for open: Path to scene file to open; for save: Must match the active scene's file (defaults to it); a scene with no file yet may be saved to a new path. Naming a different scene is rejected (SCENE_MI… |
godot_node_read
Inspect scene nodes in the editor: read a node's effective properties (including class defaults a .tscn read cannot show), view the full scene tree as the editor sees it (including children inside instanced sub-scenes), and find nodes by name or type. Use it to discover node paths and verify the live state of the open scene before or after making changes. It cannot modify anything; to update properties or reparent a node, use godot_node_edit.
| Parameter | Type | Description |
|---|---|---|
action * | string | get_properties: Get a node's properties get_scene_tree: Full hierarchy of the open scene as the editor sees it, including children inside instanced sub-scenes (a .tscn file read cannot show those). De… |
max_children | integer | Cap how many children are listed per node. Omit to list every child. (for: get_scene_tree) |
max_depth | integer | Cap recursion depth (root = depth 1). Omit for the full tree. (for: get_scene_tree) |
name_pattern | string | Glob pattern to match node names, e.g. "*Spawner*", "Turret?" (for: find) |
node_path | string | Path to the node (required for: get_properties) |
root_path | string | Path to start search from (defaults to scene root). An absolute /root/... path may name an autoload or any node beside the scene. (for: find) |
type | string | Filter by node type, e.g. "CharacterBody2D", "Area2D" (for: find) |
godot_node_edit
Modify scene nodes in the editor: update a node's properties, or reparent it (the editor rewrites child paths and signal connections correctly; hand-editing .tscn for a reparent does not). Use it to change existing nodes in the open scene. To inspect properties, the scene tree, or search for nodes, use godot_node_read; to add or remove nodes, or attach scripts and connect signals, edit the .tscn file directly, then verify with godot_node_read's get_scene_tree.
| Parameter | Type | Description |
|---|---|---|
action * | string | update: Update a node's properties reparent: Move a node to a new parent |
node_path * | string | Path to the node |
new_parent_path | string | Path to the new parent node (required for: reparent) |
properties | object | Properties to set on the node (required for: update) |
godot_editor_read
Observe the editor and running game: get editor state (open scene, play state, camera, viewport), read the current node selection, pull editor log messages (with an incremental cursor) and stack traces, and capture lossless PNG screenshots of the running game or an editor viewport. Reach for it to check what the editor sees before and after a change; screenshot_game needs a running game, while every other action works in the bare editor. It changes nothing - to select nodes, run/stop/restart, or move the 2D viewport use godot_editor_edit; errors from the running game (not the editor process) c…
| Parameter | Type | Description |
|---|---|---|
action * | string | get_state: Get editor state: current scene, play state, version, camera, viewport get_selection: Get the currently selected nodes get_log_messages: Get errors and warnings from the EDITOR process - @t… |
clear | boolean | Clear the editor error buffer after reading (for: get_log_messages) |
limit | integer | Maximum number of messages to return, counted in groups unless raw (default: 50). The most recent are kept. (for: get_log_messages) |
max_width | integer | for screenshot_game: Maximum width in pixels (default: 900). Cost scales with resolution (~1 visual token per 28x28px patch; a 900px 16:9 frame ≈ 600 tokens, a native 1080p frame ≈ 2700 on Opus).… |
raw | boolean | Return every entry exactly as captured, ungrouped and with full stack frames (default false). (for: get_log_messages) |
severity | string | Filter by severity: "error" drops warnings (the "did anything actually break?" check), "warning" returns only warnings, "all" (default) returns both. (for: get_log_messages) |
since | integer | Return only messages newer than this cursor. Pass back the `cursor` from a prior response to see just what is new since then - the incremental check that avoids re-reading the whole buffer (0/omitted… |
viewport | string | Which editor viewport to capture (for: screenshot_editor) |
godot_editor_edit
Drive the editor: select a node, run or stop the project, restart the editor, rescan the filesystem to import assets written outside the editor, and center/zoom the 2D viewport. Use run with frozen=true as the deterministic-playtest entry point (game time holds at frame 0 until godot_game_time steps or thaws it). To test edited gameplay scripts just stop then run — the launched game loads .gd/.tscn fresh from disk; reserve restart for EDITOR-side staleness (edited @tool/addon code, a stale project.godot, or a cached .gdshader). For observation only (state, selection, logs, screenshots) use g…
| Parameter | Type | Description |
|---|---|---|
action * | string | select: Select a node in the editor run: Run the project stop: Stop the running project restart: Restart the editor, reloading project.godot (autoloads, input map), addon code, and plugins from disk.… |
center_x | number | X coordinate to center the 2D viewport on (omitted = keep current X) (for: set_viewport_2d) |
center_y | number | Y coordinate to center the 2D viewport on (omitted = keep current Y) (for: set_viewport_2d) |
frozen | boolean | Launch with game time frozen from frame 0 (gameplay never starts racing your latency). Use godot_game_time step/thaw to advance. (for: run) |
node_path | string | Path to node to select (required for: select) |
paths | array | res:// paths of existing assets to force through reimport after the scan (for assets whose bytes changed on disk). (for: rescan) |
save | boolean | Save the project before restarting (default: true). Set false to discard unsaved editor changes. (for: restart) |
scene_path | string | Scene to run (optional, defaults to main scene) (for: run) |
zoom | number | Zoom level, e.g. 1.0 = 100%, 2.0 = 200% (omitted = keep current zoom) (for: set_viewport_2d) |
godot_project
Read project-level data from the editor: name, path, Godot version, and main scene (get_info), plus project settings including input mappings (get_settings). After editing project.godot as a file, use check_stale to detect whether the editor is still running stale autoloads or input map from before the edit; restart via godot_editor_edit to reload. Use addon_status to diagnose addon/server version skew when commands misbehave or the connection drops; it also reports whether the running server build is stale relative to its source checkout. For scene contents or node properties, use godot_node_…
| Parameter | Type | Description |
|---|---|---|
action * | string | get_info: Get project name, path, version, and main scene get_settings: Get project settings addon_status: Check addon/server version compatibility, and whether the running server build is stale (sour… |
category | string | Settings category to filter by (use "input" for input mappings) (for: get_settings) |
include_builtin | boolean | Include built-in ui_* actions (with category="input") (for: get_settings) |
godot_animation_read
Inspect animation data on AnimationPlayer nodes in the editor: list players in the scene, read a player's state and libraries, get an animation's tracks and properties, and read a track's keyframes. Reach for it to verify what the editor actually loaded, including after editing animation resources by hand. It changes and previews nothing; use godot_animation_edit to create, modify, or play animations.
| Parameter | Type | Description |
|---|---|---|
action * | string | list_players: List AnimationPlayer nodes in the scene get_info: Get AnimationPlayer state and library list get_details: Get an animation's tracks and properties get_keyframes: Get keyframes for a trac… |
animation_name | string | Animation name (required for: get_details, get_keyframes) |
node_path | string | Path to the AnimationPlayer (required for: get_info, get_details, get_keyframes) |
root_path | string | Starting node path (defaults to scene root) (for: list_players) |
track_index | number | Track index (required for: get_keyframes) |
godot_animation_edit
Create and modify animations on an AnimationPlayer and preview them in the editor: create, delete, or update animations, add and remove tracks and keyframes, backfill RESET keys for existing tracks (create_reset_keys), and play, stop, or seek the editor's preview (playback controls the editor, not the running game). Pair each change with an immediate play or seek to check the result; this is the only way to verify animation feel without running the whole game. To inspect animation data without changing it, use godot_animation_read.
| Parameter | Type | Description |
|---|---|---|
action * | string | play: Play an animation stop: Stop playback. Godot leaves the first keyframe values on the nodes unless the player has a RESET animation; the reply warns when it does not. seek: Seek to a position in… |
node_path * | string | Path to the AnimationPlayer |
animation_name | string | for play: Animation name; for create: Animation name; for delete: Animation name; for update_props: Animation name; for add_track: Animation name; for create_reset_keys: Animation to cover (default: a… |
args | array | Method arguments (for: add_keyframe) |
create_reset | boolean | Also key the property's current value into the player's RESET animation (created if missing), as the editor's track panel does, so previews are undone by RESET and save writes the rest pose. Default t… |
custom_blend | number | Custom blend time, -1 for default (for: play) |
custom_speed | number | Playback speed, 1.0 default (for: play) |
from_end | boolean | Play from end for reverse (for: play) |
insert_at | number | Track index to insert at, -1 for end (for: add_track) |
keep_state | boolean | Keep the current pose instead of seeking to the first keyframe (default false) (for: stop) |
keyframe_index | number | Keyframe index (required for: remove_keyframe, update_keyframe) |
length | number | Animation length in seconds (for: create, update_props) |
library_name | string | Library name (for: create, delete) |
loop_mode | string | Loop mode: none, linear, pingpong (for: create, update_props) |
method_name | string | Method name for method tracks (for: add_keyframe) |
seconds | number | Position to seek to (required for: seek) |
step | number | Step value for keyframe snapping (for: create, update_props) |
time | number | Keyframe time in seconds (required for: add_keyframe; optional for: update_keyframe) |
track_index | number | Track index (required for: remove_track, add_keyframe, remove_keyframe, update_keyframe) |
track_path | string | Node path and property, e.g. "Sprite2D:frame" (required for: add_track) |
track_type | string | Type of track (required for: add_track) |
transition | number | Transition curve, 1.0 = linear (for: add_keyframe, update_keyframe) |
update | boolean | Update node immediately, default true (for: seek) |
value | Keyframe value, typed to match the track's target property: numbers and strings as-is; Color as {r, g, b, a}; Vector2 as {x, y}; Vector3 as {x, y, z}; Quaternion/Vector4 as {x, y, z, w} (the same shap… |
godot_tilemap_read
Inspect TileMapLayer data in the open scene: list layers, get layer and TileSet info, read used cells, a single cell, or a rectangular region, and convert between local positions and map coordinates. Use it whenever you need to know what tiles are placed where; cell data is stored base64-encoded in the .tscn, so reading the file is not an alternative. To place, erase, or clear tiles, use godot_tilemap_edit instead.
| Parameter | Type | Description |
|---|---|---|
action * | string | list_layers: List TileMapLayer nodes in the scene get_info: Get TileMapLayer info get_tileset_info: Get the layer's TileSet info get_used_cells: All used cells grouped by tile: tiles[] of {source_id,… |
coords | object | Cell coordinates (required for: get_cell) |
local_position | object | Local position to convert to map coords (for: convert_coords) |
map_coords | object | Map coordinates to convert to local position (for: convert_coords) |
max_coords | object | Maximum corner of region (required for: get_cells_in_region) |
min_coords | object | Minimum corner of region (required for: get_cells_in_region) |
node_path | string | Path to the TileMapLayer (required for: get_info, get_tileset_info, get_used_cells, get_cell, get_cells_in_region, convert_coords) |
root_path | string | Starting node path (defaults to scene root) (for: list_layers) |
godot_tilemap_edit
Modify TileMapLayer cells in the open scene: set a single cell, erase a cell, clear a whole layer, or set many cells in one batch. Use it to paint or remove tiles; cell data is stored base64-encoded in the .tscn, so editing the file is not an alternative, and set_cells_batch beats repeated set_cell calls for anything beyond a few tiles. To inspect layers, TileSets, or existing cells without changing anything, use godot_tilemap_read.
| Parameter | Type | Description |
|---|---|---|
action * | string | set_cell: Set a single cell erase_cell: Erase a single cell clear_layer: Clear all cells in the layer set_cells_batch: Set many cells at once |
node_path * | string | Path to the TileMapLayer |
alternative_tile | integer | Alternative tile ID, default 0 (for: set_cell) |
atlas_coords | object | Atlas coordinates, default 0,0 (for: set_cell) |
cells | array | Array of cells to set (required for: set_cells_batch) |
coords | object | Cell coordinates (required for: set_cell, erase_cell) |
source_id | integer | TileSet source ID, default 0 (for: set_cell) |
godot_gridmap_read
Inspect GridMap data in the open scene: list GridMap nodes, get map and MeshLibrary info, and read used cells, a single cell, or every cell using a given item. Use it whenever you need to know which mesh items occupy which 3D grid cells; cell data is stored base64-encoded in the .tscn, so reading the file is not an alternative. To place or clear cells, use godot_gridmap_edit instead.
| Parameter | Type | Description |
|---|---|---|
action * | string | list: List GridMap nodes in the scene get_info: Get GridMap info get_meshlib_info: Get the GridMap's MeshLibrary info get_used_cells: All used cells grouped by MeshLibrary item: items[] of {item, coun… |
coords | object | Cell coordinates (required for: get_cell) |
item | integer | MeshLibrary item index (required for: get_cells_by_item) |
node_path | string | Path to the GridMap (required for: get_info, get_meshlib_info, get_used_cells, get_cell, get_cells_by_item) |
root_path | string | Starting node path (defaults to scene root) (for: list) |
godot_gridmap_edit
Modify GridMap cells in the open scene: set a single cell to a MeshLibrary item with an orientation, clear a cell, clear the whole map, or set many cells in one batch. Use it to build or remove 3D grid content; cell data is stored base64-encoded in the .tscn, so editing the file is not an alternative, and set_cells_batch beats repeated set_cell calls for anything beyond a few cells. To inspect the map, its MeshLibrary, or existing cells without changing anything, use godot_gridmap_read.
| Parameter | Type | Description |
|---|---|---|
action * | string | set_cell: Set a single cell clear_cell: Clear a single cell clear: Clear all cells set_cells_batch: Set many cells at once |
node_path * | string | Path to the GridMap |
cells | array | Array of cells to set (required for: set_cells_batch) |
coords | object | Cell coordinates (required for: set_cell, clear_cell) |
item | integer | MeshLibrary item index (required for: set_cell) |
orientation | integer | Orientation 0-23, default 0 (for: set_cell) |
godot_resource
Inspect a Resource file by path with type-aware structured output (SpriteFrames animations, TileSet, Material, Texture2D, etc.). Use it for imported or binary resources (.res, .scn, compressed textures) that a plain file read cannot parse, or when you want sub-resources resolved into the engine's view rather than raw .tres text. For nodes inside a scene, use godot_node_read instead.
| Parameter | Type | Description |
|---|---|---|
action * | string | get_info: Inspect a Resource file by path |
resource_path * | string | Resource path (e.g., "res://player/sprites.tres") |
include_internal | boolean | Include internal properties starting with underscore (default: false) |
max_depth | number | Detail level: 0 = summary only, 1 = full detail (default), 2+ = expand sub-resources |
godot_scene3d
Read engine-computed 3D spatial data that cannot be derived from .tscn text: global transforms resolved through the parent chain, mesh AABBs (VisualInstance3D, and GridMap folded from its placed cells), combined subtree bounds, and visibility. Use get_spatial_info for one Node3D or a filtered set of its children (by type or world-space region); use get_bounds for the combined AABB of a subtree. While a game is running, both read the RUNNING game's live tree (geometry spawned or filled in at runtime included, and nodes beside the scene such as /root/MCPExecHolder/...); otherwise they read the s…
| Parameter | Type | Description |
|---|---|---|
action * | string | get_spatial_info: Get spatial data for a Node3D and optionally its children get_bounds: Get the combined AABB of a subtree (VisualInstance3D and GridMap nodes) |
include_children | boolean | Include child nodes (for: get_spatial_info) |
max_results | integer | Limit number of results. Defaults to 50 when include_children=true. Set higher (e.g., 500) if needed. (for: get_spatial_info) |
node_path | string | Path to the Node3D (required for: get_spatial_info) |
root_path | string | Path to search root (defaults to scene root) (for: get_bounds) |
type_filter | string | Filter by node type, e.g. "MeshInstance3D" (for: get_spatial_info) |
within_aabb | object | Only include nodes whose global position is within this AABB (for: get_spatial_info) |
godot_docs
Fetch Godot Engine documentation. Use fetch_class for class references (e.g. CharacterBody2D), fetch_page for tutorials/guides. Auto-detects Godot version from editor connection. Returns clean markdown.
| Parameter | Type | Description |
|---|---|---|
action * | string | fetch_class: Get a class reference by name fetch_page: Get any docs page by path |
class_name | string | Class name to fetch, e.g. "CharacterBody2D" (required for: fetch_class) |
path | string | Documentation path, e.g. "/tutorials/2d/2d_movement.html" (required for: fetch_page) |
section | string | Which class-reference section to return (default: full). Use specific sections to reduce token usage. (for: fetch_class) |
version | string | Godot docs version. If omitted, auto-detects from connected Godot editor or defaults to "stable" |
godot_input
Inject input into a running Godot game for testing: named actions (with analog strength), joypad buttons, analog axes, stick vectors, raw keyboard keys (with modifier combos), and relative mouse-look. Use get_map to discover available input actions and their bindings, sequence to execute inputs with precise timing (optionally with an effect probe that proves the inputs changed game state), or type_text to type into UI elements. Note: relative mouse-look is supported (look: [dx, dy], for FPS-camera _input handlers); absolute cursor positioning is not (see docs/design/mouse-input-spike.md).
godot_profiler
Profile a running game; every action errors if no game is playing. Use snapshot for one-shot engine metrics, or start → get_data for a per-frame time series with percentile stats, frame-budget usage, spike detection, and monitor trends. get_active_processes lists scripts with live _process/_physics_process callbacks across the whole tree, tagged scene/autoload/exec (useful for finding per-frame cost sources); get_signal_connections maps signal wiring, including an autoload's outgoing connections. get_data's per-frame detail is a ring of the last 300 frames; its run block covers the whole pro…
| Parameter | Type | Description |
|---|---|---|
action * | string | snapshot: Full performance snapshot (all engine metrics) start: Start per-frame time-series profiling stop: Stop time-series profiling get_data: Get collected time-series data with spike detection. Pe… |
node_path | string | Node to walk from (default: the whole tree — scene, autoloads and exec-attached nodes). An absolute /root/... path may name an autoload. (for: get_signal_connections) |
godot_runtime_state
Observe live game state as structured data. Use digest for a one-shot entity snapshot (replaces most godot_editor_read screenshot_game calls). Use watch_start → watch_collect for state-over-time without context blowup. Navigation (NavigationAgent path state, NavigationServer map sync, find-path) is not exposed here; use godot_exec with the recipe in docs/runtime-state-guide.md "Reading navigation state".
| Parameter | Type | Description |
|---|---|---|
action * | string | digest: Snapshot current game entity state as structured JSON — exact positions, velocities, animation state, and custom game data. Much cheaper than screenshot_game (no vision tokens). Works on any… |
duration_ms | integer | Auto-stop after this many milliseconds (default: 1000) (for: watch_start) |
group | string | Group name to use when select="group" or "auto" (default: "mcp_watch") (for: digest) |
hz | integer | Sample rate in Hz (default: 20) (for: watch_start) |
include | array | Subset of fields to include (default: all available). "ui" adds global_rect / visible_in_tree / has_focus / text on Controls. (for: digest) |
max_nodes | integer | Maximum nodes in result (default: 40) (for: digest) |
name | string | Glob filter on node name (e.g. "Player*") (for: digest) |
paths | array | Explicit absolute node paths to include in addition to tier selection, e.g. ["/root/GameState"]. The digest walks the current scene only, so autoload singletons — where global game state often lives… |
select | string | Selection tier: "group" = nodes in mcp_watch group, "method" = nodes with _mcp_state(), "visible" = the visibility tier explicitly (visible 2D CanvasItems including runtime-spawned UI, AND 3D world no… |
signals | array | Signals to record as discrete timeline events during the window. Each emission is buffered as {t_ms, source, signal, args} (200 events/window shared FAIRLY — each signal gets an equal sub-budget so… |
specs | array | Which nodes and fields to watch. Optional when signals is provided. (for: watch_start) |
type | string | Class filter (e.g. "CharacterBody2D") (for: digest) |
godot_game_time
Make game time answer to your clock instead of racing ahead between tool calls: freeze the running game, observe it at leisure (screenshots and state digests work while frozen), then step forward a bounded slice of game time (step) — or until a condition you specify holds (step_until) — with inputs riding inside the window. The game's own pause menu is layered correctly: freezing over it, stepping under it, and thawing back to it all preserve the game's pause intent.
godot_exec
Execute GDScript inside the RUNNING game process — the scenario-setup primitive: grant weapons, skip waves, spawn entities, arm persistent test bots, without baking debug hooks into game code. Errors when no game is running. For launch-time setup, compose: godot_editor_edit run frozen=true -> godot_exec run (mutate state, attach bots under `holder`) -> godot_game_time thaw. A static denylist rejects accidental process/file-write escape (OS.execute, DirAccess, write-mode FileAccess, ResourceSaver, ProjectSettings.save, ...) and names the offending token — an accident guard, NOT a security b…
| Parameter | Type | Description |
|---|---|---|
action * | string | run: Run one-shot GDScript inside the running game and return its value list: List the nodes currently attached under the exec holder (name, class, age, processing state) remove: Remove one exec holde… |
budget_ms | integer | Wall-clock patience for the call, used to size the timeout cascade (default 10000, max 30000). NOT enforcement: a synchronous script cannot be preempted, so an infinite loop hangs the game past any bu… |
name | string | Node name as reported by list (required for: remove) |
source | string | GDScript statements, compiled as a function body. In scope: every autoload by its own name (e.g. `G.wave = 5`), `tree` (SceneTree), `root` (root Window) — the same context as step_until predicates â… |
godot_validate_meshes
Check every code-built (ArrayMesh) surface in the RUNNING game for silent data corruption that renders WITHOUT any error. Run this FIRST when rendering looks wrong and no error is reported anywhere: surfaces pure black or far too dark, floors/walls invisible or see-through, geometry visible from only one side, lighting that ignores light-energy changes, scenes that "tuning" cannot fix. Detects: inside-out or mixed triangle winding (Godot front faces wind clockwise — wrong winding = culled faces or inverted lighting normals), dropped triangles / orphaned vertices (e.g. SurfaceTool.append_from…
| Parameter | Type | Description |
|---|---|---|
max_findings | integer | Cap on findings returned (default 25). The total count is always reported. |