Godot MCP Extended
Provides tools for launching the Godot editor, running projects, capturing debug output, controlling execution, and managing scenes, scripts, resources, and project settings. Enables AI agents to inspect, edit, validate, and test Godot projects headlessly.
Click on "Install 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 ExtendedAdd a Sprite2D node to the main scene"
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 Extended
((((((( (((((((
((((((((((( (((((((((((
((((((((((((( (((((((((((((
(((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((
((((( ((((((((((((((((((((((((((((((((((((((((( (((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((@@@@@@@(((((((((((((((((((((((((((@@@@@@@(((((((((((
(((((((((@@@@,,,,,@@@(((((((((((((((((((((@@@,,,,,@@@@(((((((((
((((((((@@@,,,,,,,,,@@(((((((@@@@@(((((((@@,,,,,,,,,@@@((((((((
((((((((@@@,,,,,,,,,@@(((((((@@@@@(((((((@@,,,,,,,,,@@@((((((((
(((((((((@@@,,,,,,,@@((((((((@@@@@((((((((@@,,,,,,,@@@(((((((((
((((((((((((@@@@@@(((((((((((@@@@@(((((((((((@@@@@@((((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
@@@@@@@@@@@@@((((((((((((@@@@@@@@@@@@@((((((((((((@@@@@@@@@@@@@
((((((((( @@@(((((((((((@@(((((((((((@@(((((((((((@@@ (((((((((
(((((((((( @@((((((((((@@@(((((((((((@@@((((((((((@@ ((((((((((
(((((((((((@@@@@@@@@@@@@@(((((((((((@@@@@@@@@@@@@@(((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((((
/$$ /$$ /$$$$$$ /$$$$$$$
| $$$ /$$$ /$$__ $$| $$__ $$
| $$$$ /$$$$| $$ \__/| $$ \ $$
| $$ $$/$$ $$| $$ | $$$$$$$/
| $$ $$$| $$| $$ | $$____/
| $$\ $ | $$| $$ $$| $$
| $$ \/ | $$| $$$$$$/| $$
|__/ |__/ \______/ |__/A Model Context Protocol (MCP) server for interacting with the Godot game engine.
Introduction
Godot MCP enables AI agents to launch the Godot editor, run projects, capture debug output, and control project execution. This direct feedback loop helps agents understand what works and what doesn't in real Godot projects, leading to better code generation and debugging assistance.
This project (
godot-mcp-extended) builds on the original godot-mcp by Solomon Elias (MIT), adding a full inspect → edit → validate → e2e toolset (50 tools total).
Related MCP server: Godot MCP
Features
Launch Godot Editor: Open the Godot editor for a specific project
Run Godot Projects: Execute Godot projects in debug mode
Capture Debug Output: Retrieve console output and error messages
Control Execution: Start and stop Godot projects programmatically
Get Godot Version: Retrieve the installed Godot version
List Godot Projects: Find Godot projects in a specified directory
Project Analysis: Get detailed information about project structure
Scene Management:
Create new scenes with specified root node types
Add nodes to existing scenes with customizable properties
Load sprites and textures into Sprite2D nodes
Export 3D scenes as MeshLibrary resources for GridMap
Save scenes with options for creating variants
UID Management (for Godot 4.4+):
Get UID for specific files
Update UID references by resaving resources
Extended toolset
The server exposes a full inspect → mutate → validate loop so an agent can edit scenes deliberately instead of creating them blind. All operations run headless and report structured JSON results with authoritative exit-code error handling.
Scene inspection (READ):
get_scene_tree— full node tree of a scene as JSON (names, types, paths, scripts, groups)get_node_properties— read a node's properties (overridesoreffectivemode)get_scene_dependencies— list external resources a scene references and whether each existsdescribe_class— ClassDB introspection (parent, properties, methods, signals) to discover valid nameslist_scripts/read_script— enumerate and read GDScript files
Diagnostics (VALIDATE):
check_script— parse/compile-check a script via--check-onlywithout running the gamevalidate_scene— verify a scene loads/instantiates and report missing dependenciesrun_and_capture_errors— run for a bounded time and return structured script errors/warnings
Node editing (EDIT):
set_node_property— set a property on an existing node (auto-coerces[x,y]→Vector2, colors, enums,res://→resource)delete_node,rename_node,reparent_node,duplicate_nodeadd_to_group/remove_from_group
Behavior wiring (BEHAVIOR):
create_script/attach_script— create a.gdfile and attach it to a nodeconnect_signal/disconnect_signal/list_connections— manage persisted signal connectionsinstance_scene— compose scenes by instancing one into another (serialized as a true instance)
Project configuration (PROJECT):
get_project_setting/set_project_setting/set_main_scenelist_autoloads/add_autoload/remove_autoloadadd_input_action/remove_input_actioncreate_resource/edit_resource/get_resource_properties
Automated e2e / UAT
The missing runtime half of the loop: don't just check that a scene loads — verify the game behaves correctly. Godot's headless mode runs the full game loop (_process/_physics_process tick, signals fire, physics simulates), so these run real behavioral tests with no rendering.
run_scene_test— boots a scene headless, runs a scenario of steps (drive input, advance frames, call methods, watch signals) and assertions (property values, node existence, group membership, signal counts, method return values, node counts), and returns per-assertion pass/fail.run_tests— runs an existing GUT or GdUnit4 suite headless and returns the pass/fail summary (auto-detected from project addons).capture_scene_screenshot— experimental visual UAT: renders a scene to a PNG (needs a GPU/display; falls back gracefully in pure-headless CI).
Example scenario — verify the player moves right when the input is held:
{
"projectPath": "/path/to/project",
"scenePath": "player.tscn",
"timeoutSeconds": 8,
"steps": [
{ "action": "assert_node_exists", "node": "AnimatedSprite2D", "exists": true },
{ "action": "press_action", "name": "move_right" },
{ "action": "wait_frames", "frames": 20 },
{ "action": "release_action", "name": "move_right" },
{ "action": "assert_property", "node": "", "property": "position", "op": ">", "value": { "x": 0 } }
]
}Returns: { "passed": 2, "failed": 0, "all_passed": true, "results": [...] }.
Requirements
Godot Engine installed on your system
Node.js (>=18.0.0) and npm
An AI agent that supports MCP
Install
This server is distributed via GitHub (not npm). Clone and build it once:
git clone https://github.com/ibnutoriq/godot-mcp-extended.git
cd godot-mcp-extended
npm install
npm run buildThis produces build/index.js. Note the absolute path to that file — your MCP client points at it. Get it with:
echo "$(pwd)/build/index.js"No-clone alternative: any
node /path/to/build/index.jscommand below can be replaced withnpx -y github:ibnutoriq/godot-mcp-extended, which fetches and builds the repo on first run. Slower to start, but nothing to clone.
Quick Start
Claude Code
claude mcp add godot -- node /absolute/path/to/godot-mcp-extended/build/index.jsThat's it. Restart Claude Code and your Godot MCP tools are available.
With environment variables (Godot path is auto-detected; set it only if needed):
claude mcp add godot -e GODOT_PATH=/path/to/godot -- node /absolute/path/to/godot-mcp-extended/build/index.jsOr without cloning:
claude mcp add godot -- npx -y github:ibnutoriq/godot-mcp-extendedAdd to your Cline MCP settings file (~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/absolute/path/to/godot-mcp-extended/build/index.js"],
"env": {
"GODOT_PATH": "/path/to/godot"
},
"disabled": false,
"autoApprove": [
"get_scene_tree",
"get_node_properties",
"describe_class",
"get_godot_version",
"list_projects",
"get_project_info",
"check_script",
"validate_scene"
]
}
}
}
autoApprovelists the read-only tools that won't prompt for confirmation. Add any of the other tool names you want to run without a prompt.
Using the Cursor UI:
Go to Cursor Settings > Features > MCP
Click on the + Add New MCP Server button
Fill out the form:
Name:
godotType:
commandCommand:
node /absolute/path/to/godot-mcp-extended/build/index.js
Click "Add"
You may need to press the refresh button in the top right corner of the MCP server card to populate the tool list
Using Project-Specific Configuration:
Create a file at .cursor/mcp.json in your project directory:
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/absolute/path/to/godot-mcp-extended/build/index.js"],
"env": {
"GODOT_PATH": "/path/to/godot"
}
}
}
}For any MCP-compatible client, use this configuration:
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/absolute/path/to/godot-mcp-extended/build/index.js"],
"env": {
"GODOT_PATH": "/path/to/godot"
}
}
}
}Prefer no clone? Use "command": "npx" with "args": ["-y", "github:ibnutoriq/godot-mcp-extended"] instead.
Environment Variables
Variable | Description |
| Path to the Godot executable (overrides automatic detection) |
| Set to |
Architecture
The Godot MCP server uses a bundled GDScript approach for complex operations:
Direct Commands: Simple operations like launching the editor or getting project info use Godot's built-in CLI commands directly.
Bundled Operations Script: Complex operations like creating scenes or adding nodes use a single, comprehensive GDScript file (
godot_operations.gd) that handles all operations.
The bundled script accepts operation type and parameters as JSON, allowing for flexible and dynamic operation execution without generating temporary files for each operation.
Troubleshooting
Godot Not Found: Set the
GODOT_PATHenvironment variable to your Godot executable pathConnection Issues: Ensure the server is running and restart your AI assistant
Invalid Project Path: Ensure the path points to a directory containing a
project.godotfileBuild Issues: Make sure all dependencies are installed by running
npm install
Ensure the MCP server shows up and is enabled in Cursor settings (Settings > MCP)
MCP tools can only be run using the Agent chat profile (Cursor Pro or Business subscription)
Use "Yolo Mode" to automatically run MCP tool requests
Credits
godot-mcp-extended is maintained by Ibnu Toriq. It is based on the original godot-mcp by Solomon Elias, used under the MIT License. Thanks to the original author for the foundation this builds on.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ibnutoriq/godot-mcp-extended'
If you have feedback or need assistance with the MCP directory API, please join our Discord server