Godot MCP
v1.0.4Pure-Python FastMCP server for Godot 4 — 28 headless & animation tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_godot_version
Retrieves the installed Godot 4 engine version string by querying the local Godot binary.
launch_editor
Spawns the Godot visual editor GUI as an independent desktop process anchored to the specified project directory.
| Parameter | Type | Description |
|---|---|---|
project_path * | string |
run_project
Executes a Godot project in debug mode as a background process and captures runtime stdout/stderr streams.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
scene | string |
get_debug_output
Reads currently buffered stdout and stderr log lines from the active background Godot debug process.
stop_project
Terminates the actively running Godot debug process and returns its final flushed console output.
list_projects
Discovers and lists Godot project directories containing a valid project.godot file within a target directory.
| Parameter | Type | Description |
|---|---|---|
directory * | string | |
recursive | boolean |
get_project_info
Inspects project.godot and project tree to return metadata, asset counts, script inventory, and engine compatibility.
| Parameter | Type | Description |
|---|---|---|
project_path * | string |
create_scene
Creates a new Godot scene (.tscn) file with a validated root node type using the headless GDScript bridge.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
scene_path * | string | |
root_node_type | string |
add_node
Instantiates and appends a node of specified Godot class and property dictionary into an existing scene.
| Parameter | Type | Description |
|---|---|---|
node_name * | string | |
node_type * | string | |
project_path * | string | |
scene_path * | string | |
parent_node_path | string | |
properties |
load_sprite
Loads a texture resource and binds it to a 2D or 3D sprite node within a scene file.
| Parameter | Type | Description |
|---|---|---|
node_path * | string | |
project_path * | string | |
scene_path * | string | |
texture_path * | string |
export_mesh_library
Extracts 3D mesh instances from a scene and compiles them into a MeshLibrary (.res) resource for GridMap tiles.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | |
project_path * | string | |
scene_path * | string | |
mesh_item_names |
save_scene
Persists scene modifications or creates a variant scene copy at a new relative path.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
scene_path * | string | |
new_path | string |
get_uid
Reads and returns the Godot 4.4+ unique resource identifier (UID) for a specified asset file.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
project_path * | string |
update_project_uids
Recursively iterates all project scenes, scripts, and shaders to regenerate and update missing Godot 4.4+ UIDs.
| Parameter | Type | Description |
|---|---|---|
project_path * | string |
quantize_animation_keyframes
Parses raw keyframe times in a .tscn or .tres animation and quantizes them to discrete frame steps (e.g. 12-fps stepped anime look).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
animation_name | string | |
target_fps | integer |
set_animation_interpolation_mode
Bulk-edits animation track interpolation modes (nearest/constant, linear, cubic) in a scene or resource file.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
mode | string | |
track_index | integer |
stitch_animation_library
Compiles external animation clip files into a unified master AnimationLibrary (.tres) resource referencing named animations.
| Parameter | Type | Description |
|---|---|---|
clips * | array | |
output_res_path * | string |
generate_track_filter
Generates an AnimationNodeBlendFilter resource block and configuration code to isolate upper-body bones from locked lower-body bones.
| Parameter | Type | Description |
|---|---|---|
locked_bone_paths * | array | |
scene_path * | string | |
blend_node_name | string |
generate_state_machine
Injects an AnimationNodeStateMachine sub-resource graph with layout coordinates and state nodes into a target .tscn scene file.
| Parameter | Type | Description |
|---|---|---|
node_name * | string | |
scene_path * | string | |
states * | array | |
anim_player_path | string | |
start_state | string |
compile_state_transitions
Serializes and injects transition logic connections, advance conditions, and crossfade times into an existing AnimationNodeStateMachine block.
| Parameter | Type | Description |
|---|---|---|
scene_path * | string | |
state_machine_resource_id * | string | |
transitions * | array |
calculate_blend_space_2d
Computes and injects an AnimationNodeBlendSpace2D sub-resource for directional movement blending based on 2D controller coordinates.
| Parameter | Type | Description |
|---|---|---|
blend_points * | array | |
node_name * | string | |
scene_path * | string | |
anim_player_path | string | |
x_label | string | |
y_label | string |
generate_bezier_camera_path
Generates a 3D Catmull-Rom bezier camera rail (Path3D, Curve3D, PathFollow3D) with adjustable speed-curve tension multiplier in a .tscn scene.
| Parameter | Type | Description |
|---|---|---|
path_node_name * | string | |
scene_path * | string | |
waypoints * | array | |
add_camera | boolean | |
add_path_follow | boolean | |
tension | number |
inject_lookat_tracking
Generates and attaches a procedural slerp look-at tracking GDScript to a Camera3D node to follow target Node3D transforms.
| Parameter | Type | Description |
|---|---|---|
camera_node_path * | string | |
scene_path * | string | |
target_node_path * | string | |
script_output_path | string |
build_camera_switcher_timeline
Synthesizes an Animation resource that toggles Camera3D.current across multiple cameras at defined cut timestamps for cinematic editing.
| Parameter | Type | Description |
|---|---|---|
anim_player_node * | string | |
scene_path * | string | |
switches * | array | |
animation_name | string | |
timeline_length | number |
batch_shader_uniforms
Batch scans .tres ShaderMaterial files in a directory and overwrites shader_parameter/* values for global NPR look adjustments.
| Parameter | Type | Description |
|---|---|---|
directory * | string | |
uniform_overrides * | object | |
dry_run | boolean | |
recursive | boolean |
remap_texture_channels
Rewires texture slot properties and manages ext_resource references in a .tres material file for hand-painted art workflows.
| Parameter | Type | Description |
|---|---|---|
channel_map * | object | |
material_path * | string |
toggle_movie_maker
Configures project.godot to toggle Godot Movie Maker mode, locking render time-steps for deterministic video and frame sequence capture.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
enable | boolean | |
fps | integer | |
output_file | string |
run_headless_diagnostics
Executes automated project diagnostics by invoking an external system command (Godot CLI binary) to validate resource imports, check UID integrity, and detect broken shader entry points.
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
checks | ||
timeout_seconds | integer |