godot-mcp
This server provides 28 MCP tools to automate Godot 4 project management, scene editing, animation setup, cinematic camera paths, shader/material updates, and headless diagnostics.
Core runtime: Get Godot version, launch editor, run/stop projects, read debug output, list projects, and get project info.
Scene management: Create/modify/save scenes, add nodes, load sprites, export MeshLibraries, and manage resource UIDs.
Animation pipeline: Quantize keyframes, swap interpolation modes, stitch animation libraries, and generate track filters.
AnimationTree blueprinting: Generate state machines, compile transitions, and calculate 2D blend spaces.
Camera & cinematic: Generate Catmull-Rom bezier camera paths, inject LookAt tracking, and build camera switcher timelines.
NPR materials & shaders: Batch-override shader uniforms and remap texture channels in .tres files.
Pipeline automation: Toggle Movie Maker mode and run headless diagnostics for imports, UIDs, and shaders.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@godot-mcp Create a new 2D scene and add a Sprite2D node"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
godot-mcp — Pure Python FastMCP Server for Godot 4
A zero Node.js Model Context Protocol server for Godot 4 — translated from
Coding-Solo/godot-mcp and youichi-uda/godot-mcp-pro into pure Python using
the official FastMCP framework. Runs with ultra-low RAM via uvx.
Quick Start
You can invoke this server over standard I/O (stdio) from anywhere on your machine instantly using uvx without manually cloning files or configuring virtual environments:
# Run globally via uvx from PyPI (Bypasses local setup completely)
GODOT_PATH=/path/to/godot4 uvx --from godot-mcp-uvx godot-mcp
# Local development installation (For active contributors)
git clone https://github.com/jxlee007/godot_mcp
cd godot_mcp
uv tool install --editable .Related MCP server: SuperMCP
MCP Client Configuration
Add this structural configuration block straight into your global client matrix environment profile (e.g., ~/.gemini/antigravity-cli/settings.json or Claude / Cline settings):
{
"mcpServers": {
"godot_render": {
"command": "uvx",
"args": [
"--from",
"godot-mcp-uvx",
"godot-mcp"
],
"env": {
"GODOT_PATH": "/path/to/godot4",
"DEBUG": "false"
}
}
}
}Environment Variables
Variable | Description |
| Path to the Godot 4 executable (auto-detected if unset) |
|
|
Tools (28 total)
Core Runtime (14)
Tool | Description |
| Return installed Godot version |
| Open Godot editor for a project |
| Run project in debug mode, capture output |
| Read stdout/stderr from running project |
| Kill running project, return final output |
| Find Godot projects in a directory |
| Metadata, file counts, version |
| Create a new .tscn file via GDScript |
| Add a node to an existing scene |
| Load texture onto Sprite2D/TextureRect |
| Export .tscn as MeshLibrary .res |
| Save / save-as a scene file |
| Get UID for a Godot 4.4+ resource |
| Resave all resources to regenerate UIDs |
Animation Text Pipeline (4)
Tool | Description |
| Round timestamps to fixed fps increments (12/24 fps anime look) |
| Bulk-swap easing: linear, cubic, nearest/stepped |
| Merge external .glb/.tres clips into master AnimationLibrary |
| Generate AnimationNodeBlendFilter for upper/lower body isolation |
AnimationTree Blueprinting (3)
Tool | Description |
| Inject AnimationNodeStateMachine into a .tscn file |
| Write transition arrows with conditions |
| Generate 2D blend space for directional locomotion |
Camera & Cinematic (3)
Tool | Description |
| Catmull-Rom bezier Path3D + PathFollow3D + Camera3D with tension control |
| Generate LookAt tracking GDScript for Camera3D |
| Write Animation that switches Camera3D.current at timestamps |
NPR Materials & Shaders (2)
Tool | Description |
| Bulk-override shader_parameter/* in all .tres files |
| Wire textures into material property slots |
Pipeline Automation (2)
Tool | Description |
| Edit project.godot to enable/disable Movie Maker mode |
| Validate imports, UIDs, shader entry points via Godot CLI |
Architecture
src/godot_mcp/
├── __init__.py
├── server.py # FastMCP app — all 28 tools
└── scripts/
└── godot_operations.gd # Bundled GDScript engine (preserved untouched)Two operation modes:
Subprocess bridge — core 14 tools invoke
godot_operations.gdheadlessly viasubprocess.run()Text manipulation — pro-port 14 tools parse/write
.tscn,.tres,project.godotfiles as plain text using Python stdlibreonly
Requirements
Python 3.10+
Godot 4.x installed (set
GODOT_PATHor ensure it is on$PATH)uvorpip
License
MIT
Available Tools
28 toolsadd_nodeA
Add a node to an existing Godot scene via the GDScript engine.
Args: project_path: Absolute path to the Godot project directory. scene_path: Scene path relative to project. node_type: Godot class name for the new node (e.g. Sprite2D). node_name: Name for the new node. parent_node_path: Node path of the parent (default: 'root'). properties: Optional dict of property_name -> value.
Inputs: node_name (required), node_type (required), scene_path (required), project_path (required), +2 more. Returns: result
batch_shader_uniformsA
Uniform Parameter Batcher: Scan ShaderMaterial .tres files and bulk-override shader_parameter/* values -- change cell-shading threshold, outline thickness, ink color across hundreds of assets in one call.
uniform_overrides maps param names to new value strings: {'outline_thickness': '2.0', 'light_threshold': '0.5'}
Args: directory: Directory to scan for .tres files. uniform_overrides: Dict of {param_name: new_value_string}. recursive: If True, scan all subdirectories (default True). dry_run: If True, report changes without writing files.
Inputs: directory (required), uniform_overrides (required), dry_run, recursive. Returns: result
build_camera_switcher_timelineA
Camera Switcher Timeline Builder: Write an Animation resource block that toggles Camera3D.current at exact timestamps for multi-angle cinematic cuts.
Each switch dict must have:
'camera_path': NodePath to a Camera3D (e.g. 'CamA')
'activate_at': float timestamp in seconds
'deactivate_at': optional float timestamp to turn camera off
Args: scene_path: Absolute path to the .tscn scene file. anim_player_node: Name of the AnimationPlayer node in the scene. switches: List of camera switch event dicts. animation_name: Name for the generated animation clip. timeline_length: Total animation length in seconds.
Inputs: switches (required), scene_path (required), anim_player_node (required), animation_name, +1 more. Returns: result
calculate_blend_space_2dB
2D Blend Space Grid Calculator: Compute and inject an AnimationNodeBlendSpace2D for directional locomotion blending (N/S/E/W + idle) based on a controller vector.
Each blend_point dict must have:
'animation': animation clip name (e.g. 'walk_north')
'position': [x, y] normalized blend coordinates (e.g. [0, 1] for North)
Args: scene_path: Absolute path to the .tscn scene file. node_name: Name for the AnimationTree node. blend_points: List of blend point dicts. x_label: Horizontal axis label. y_label: Vertical axis label. anim_player_path: NodePath to the AnimationPlayer.
Inputs: node_name (required), scene_path (required), blend_points (required), x_label, +2 more. Returns: result
compile_state_transitionsA
Transition Logic Compiler: Write transition arrow connections between state blocks, attaching evaluation parameters like 'speed > 0.1' or 'is_attacking == true'.
Each transition dict must have:
'from': source state name
'to': destination state name
'condition': optional condition string
'xfade_time': crossfade duration in seconds (default 0.2)
'advance_mode': 0=manual, 1=auto, 2=at_end (default 1)
Args: scene_path: Absolute path to the .tscn scene file. state_machine_resource_id: Sub-resource id of the AnimationNodeStateMachine. transitions: List of transition dicts.
Inputs: scene_path (required), transitions (required), state_machine_resource_id (required). Returns: result
create_sceneB
Create a new Godot scene file via the GDScript engine.
Args: project_path: Absolute path to the Godot project directory. scene_path: Scene path relative to the project (e.g. 'scenes/player.tscn'). root_node_type: Godot class name for the root node (default: Node2D).
Inputs: scene_path (required), project_path (required), root_node_type. Returns: result
export_mesh_libraryB
Export a 3D scene as a MeshLibrary .res resource for GridMap.
Args: project_path: Absolute path to the Godot project directory. scene_path: Source .tscn scene path relative to project. output_path: Output .res path relative to project. mesh_item_names: Optional list of mesh items to include (all if omitted).
Inputs: scene_path (required), output_path (required), project_path (required), mesh_item_names. Returns: result
generate_bezier_camera_pathA
Bezier Camera Path Generator: Calculate Catmull-Rom bezier handles from world-space waypoints and serialize them as Path3D + Curve3D node blocks in a .tscn file. Supports arc pans, dolly zooms, hyper-fast cinematic swoops, and orbital moves.
Each waypoint dict must have:
'position': [x, y, z] world position
'tilt': optional tilt angle in radians (default 0.0)
Args: scene_path: Absolute path to the .tscn scene file. path_node_name: Name for the Path3D node (e.g. 'CameraRail'). waypoints: List of waypoint dicts. add_path_follow: If True, add a PathFollow3D child. add_camera: If True, add a Camera3D child under PathFollow3D. tension: Tension / speed-curve multiplier (-1.0 to 1.0, default 0.0). Use negative values (e.g. -0.5) for wide sweeping cinematic moves; positive values (e.g. 0.5) for crisp, tight corners.
Inputs: waypoints (required), scene_path (required), path_node_name (required), tension, +2 more. Returns: result
generate_state_machineA
State Machine Graph Generator: Inject an AnimationNodeStateMachine sub-resource block into a .tscn file -- define visual state blocks without opening the editor.
Each state dict must have:
'name': state name (e.g. 'Idle')
'animation': animation clip name (e.g. 'idle')
'position': optional [x, y] graph layout coordinates
Args: scene_path: Absolute path to the .tscn scene file. node_name: Name for the AnimationTree node (e.g. 'AnimationTree'). states: List of state definition dicts. anim_player_path: NodePath to the AnimationPlayer. start_state: Start state name (defaults to first state).
Inputs: states (required), node_name (required), scene_path (required), start_state, +1 more. Returns: result
generate_track_filterA
Track Filtering & Blending: Generate GDScript and resource text for an AnimationNodeBlendFilter that locks specific bone chains while letting upper-body bones follow a separate overlay animation.
Args: scene_path: Absolute path to the .tscn scene file (appended if exists). locked_bone_paths: Bone NodePaths to exclude, e.g. ['Skeleton3D:Bone/Hip']. blend_node_name: Name for the AnimationNodeBlendFilter node.
Inputs: scene_path (required), locked_bone_paths (required), blend_node_name. Returns: result
get_debug_outputA
Retrieve current stdout/stderr from the running Godot project.
Inputs: no named parameters. Returns: result
get_godot_versionA
Return the installed Godot 4 version string.
Inputs: no named parameters. Returns: result
get_project_infoA
Return metadata about a Godot project (name, structure, Godot version).
Args: project_path: Absolute path to the Godot project directory.
Inputs: project_path (required). Returns: result
get_uidB
Get the UID for a Godot 4.4+ resource file.
Args: project_path: Absolute path to the Godot project directory. file_path: File path relative to project.
Inputs: file_path (required), project_path (required). Returns: result
inject_lookat_trackingB
Tracking & LookAt Injector: Generate a GDScript that procedurally tracks a target node's transform vector every frame, with smooth slerp interpolation.
Args: scene_path: Absolute path to the .tscn scene file. camera_node_path: NodePath of the Camera3D to control. target_node_path: NodePath of the node to track (e.g. 'Player/Body'). script_output_path: Where to write the .gd script. Empty = next to scene file.
Inputs: scene_path (required), camera_node_path (required), target_node_path (required), script_output_path. Returns: result
launch_editorA
Launch the Godot editor for the given project (non-blocking).
Args: project_path: Absolute path to the Godot project directory.
Inputs: project_path (required). Returns: result
list_projectsA
Find Godot projects under a directory.
Args: directory: Root directory to search. recursive: If True, search all subdirectories.
Inputs: directory (required), recursive. Returns: result
load_spriteA
Load a texture onto a Sprite2D/TextureRect node inside a scene.
Args: project_path: Absolute path to the Godot project directory. scene_path: Scene path relative to project. node_path: Path to the Sprite2D node (e.g. 'root/Player/Sprite2D'). texture_path: Texture path relative to project.
Inputs: node_path (required), scene_path (required), project_path (required), texture_path (required). Returns: result
quantize_animation_keyframesA
Stepped Framerate Quantizer: Round keyframe timestamps inside a .tscn/.tres file to fixed frame intervals -- e.g. 0.0833s for 12-fps anime look, 0.0417s for 24-fps film.
Args: file_path: Absolute path to the .tscn or .tres animation file. target_fps: Target framerate to quantize to (12 for anime, 24 for film). animation_name: Reserved for future filtering by animation name.
Inputs: file_path (required), target_fps, animation_name. Returns: result
remap_texture_channelsA
Texture Channel Remapper: Link hand-painted image textures into specific material property slots by altering ext_resource references in a .tres file.
channel_map maps Godot property names to new res:// paths: { 'albedo_texture': 'res://textures/hero_albedo.png', 'normal_texture': 'res://textures/hero_normal.png', 'shader_parameter/base_tex': 'res://textures/hero_hand_painted.png' }
Args: material_path: Absolute path to the .tres material file. channel_map: Dict of {property_name: res_path}.
Inputs: channel_map (required), material_path (required). Returns: result
run_headless_diagnosticsA
Headless Project Diagnostics: Invoke Godot CLI to validate imports, check UID linkages, detect broken shader entry points, and output a structured diagnostic log.
Args: project_path: Absolute path to the Godot project directory. checks: Checks to run: 'import', 'uids', 'shaders', 'all'. Default: ['import','uids']. timeout_seconds: Max seconds to wait for Godot (default 120).
Inputs: project_path (required), checks, timeout_seconds. Returns: result
run_projectA
Run a Godot project in debug mode and capture output.
Args: project_path: Absolute path to the Godot project directory. scene: Optional specific scene file to run.
Inputs: project_path (required), scene. Returns: result
save_sceneA
Save (or save-as) a Godot scene file.
Args: project_path: Absolute path to the Godot project directory. scene_path: Scene path relative to project. new_path: If provided, save to this alternate path.
Inputs: scene_path (required), project_path (required), new_path. Returns: result
set_animation_interpolation_modeB
Interpolation Mode Swapper: Bulk-edit keyframe easing modes in a .tscn/.tres file. Flip between linear, smooth bezier (cubic), or constant (stepped/nearest).
Args: file_path: Absolute path to the .tscn or .tres file. mode: Interpolation mode -- 'nearest'/'constant' (0), 'linear' (1), 'cubic' (2), 'linear_angle' (3), 'cubic_angle' (4). track_index: If >= 0, only patch this track index. -1 means all tracks.
Inputs: file_path (required), mode, track_index. Returns: result
stitch_animation_libraryA
Animation Library Stitcher: Generate a master AnimationLibrary .tres file that references external animation clips by clean string names (idle, run, attack).
Each clip dict must have:
'name': library key (e.g. 'idle')
'path': res:// path to the Animation .tres or glb sub-resource (e.g. 'res://char.glb/animations/Armature|run')
Args: output_res_path: Absolute filesystem path for the output .tres file. clips: List of {'name': str, 'path': str} dicts.
Inputs: clips (required), output_res_path (required). Returns: result
stop_projectA
Stop the currently running Godot project and return its final output.
Inputs: no named parameters. Returns: result
toggle_movie_makerA
Movie Maker Engine Activator: Edit project.godot to toggle Godot's built-in uncompressed video recorder, locking the render time-step to a perfect fps loop.
Args: project_path: Absolute path to the Godot project directory. enable: True to activate Movie Maker, False to disable. output_file: res:// output video path (e.g. 'res://render/movie.avi'). fps: Capture framerate (default 60). Only used when enable=True.
Inputs: project_path (required), fps, enable, output_file. Returns: result
update_project_uidsB
Resave all resources to regenerate UID files (Godot 4.4+).
Args: project_path: Absolute path to the Godot project directory.
Inputs: project_path (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Each tool targets a distinct action-resource pair: project lifecycle, scene editing, animation graph generation, camera work, and diagnostics are cleanly separated. Even similar animation/camera tools (e.g., generate_state_machine vs compile_state_transitions) have clearly different purposes and arguments.
All tool names follow a consistent verb_first_snake_case pattern (launch_editor, get_godot_version, run_project, generate_track_filter, batch_shader_uniforms). Verb choices are generally descriptive and uniform, with no camelCase or mixed naming conventions.
With 28 tools, the server exceeds the 25+ threshold for 'too many' and would overwhelm an agent. While Godot is a broad domain, many tools are highly specialized (e.g., quantize_animation_keyframes, generate_bezier_camera_path) and could be consolidated or scoped down.
The server heavily favors creation/generation workflows but lacks basic editing operations like node deletion, scene tree inspection, property updates, or script file creation. This causes dead-ends: users can add nodes but not list or remove them, and cannot update existing scene resources beyond saving.
Related MCP Connectors
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Make all the audio for your game from a single prompt. Describe your game and your AI assistant plans every sound it needs (sound effects, ambience loops, music tracks and character voice lines), then generates them all in one go. You get several AI versions of each sound and keep the ones you like. Sounds are organized per game in folders and scenes, and the free Godot plugin installs them into your project, ready to play with one line of code. Works with Claude, Claude Code, Cursor and any MCP client, with OAuth login (no API key needed). Free plan included; sounds can be used in commercial games.
Connect your AI assistant to Blender for 3D modeling, Geometry Nodes, materials, lighting, animation, rendering and export. Inspect real scenes and viewport images, refine the result and restore checkpoints. OAuth connects your chat to Blender Bridge Desktop on an online Windows 10/11 x64 computer running Blender 4.2+. The chat can run on another device. Requires an active Blender Bridge account; 7-day trial available. AI model access is separate.
Turn prompts into production-ready game assets: animated characters, textures, terrain, VFX, HUD.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to automate Godot 4 projects via headless tooling, live editor control, and runtime remote control, including scene building, testing, and observation.431MIT
- AlicenseDqualityCmaintenanceEnables Blender automation via MCP with 107 tools for complex mesh modeling, PBR texturing, UV mapping, rigging, animation, lighting, rendering, and a pre-export curing pipeline for Godot 4.x/Redot GLB export.107GPL 3.0
- AlicenseBqualityBmaintenanceEnables AI assistants to automate the Godot Engine editor, including scene authoring, node transforms, tilemap editing, animation, shaders, and live GDScript execution via MCP.10030MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI-driven control of Godot 4 for scene manipulation, 3D import, procedural textures, deterministic playtesting, game generation, and publishing to itch.io and Steam.6MIT