Godot MCP
Enables AI assistants to launch the Godot editor, run projects in debug mode, capture console output, control project execution, manage scenes and nodes, load sprites and textures, export 3D scenes as MeshLibrary resources, and manage UID references in Godot projects.
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 connect to the remote debugger and show me the latest error messages"
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 Server
A MCP server for AI assistants (Claude Code, Cursor, Codex etc) to control and access Godot Engine: capturing errors in editor, managing scenes, and remote connections allowing real-time build and debug - synchronized with your Godot editor.
Setup
Step 1: Install godot-mcp (one-time)
git clone https://github.com/LeeSinLiang/godot-mcp.git ~/tools/godot-mcp
cd ~/tools/godot-mcp
npm install
npm run build
npm linkStep 2: Configure your Godot project (per-project)
cd ~/my-games/your-godot-project
godot-mcp-initThe tool will:
Ask for your Godot executable path
Select which clients to configure (Claude Desktop, Claude Code, Cursor)
Create configuration files automatically
That's it! Start using AI assistance in Cursor or Claude Code.
Related MCP server: godot-mcp
Features
Project Management: Launch editor, run/stop projects, list/inspect Godot projects
Scene Editing: Create scenes, add/configure nodes, load sprites, export mesh libraries
Remote Debugging (Recommended): Connect to Godot editor's remote debugger, capture real-time output while running in editor
Debug Output: Get print statements, errors, and warnings from running projects
Cross-Platform: Windows, macOS, Linux support
Available MCP Tools
Remote Debugging Workflow (Recommended)
Work seamlessly with the Godot editor while AI assists you:
connect_remote_debugger- Connect to Godot editor's remote debugger (default ports 6006/6007)Press F5 in Godot editor to run your project
get_remote_debug_output- Get real-time print statements, errors, and warningsMake changes with AI assistance and test immediately in the editor
This workflow allows you to:
Write code in Godot editor with syntax highlighting and autocomplete
Run and debug with F5 while AI monitors output and suggests fixes
No blind coding - see exactly what's happening in real-time
All Available Tools
Debug & Remote:
connect_remote_debugger,get_remote_debug_output,disconnect_remote_debugger,get_debug_output,capture_screenshotProject Management:
launch_editor,run_project,stop_project,list_projects,get_project_info,get_godot_versionScene Editing:
create_scene,add_node,load_sprite,save_scene,export_mesh_libraryUID Management (Godot 4.4+):
get_uid,update_project_uids
Godot Executable Path Examples
Windows: C:\Program Files\Godot\Godot.exe or C:\Downloads\Godot_v4.5.1-stable_win64.exe\Godot_v4.5.1-stable_win64.exe
macOS: /Applications/Godot.app/Contents/MacOS/Godot
Linux: /usr/bin/godot or /usr/local/bin/godot
Troubleshooting
"Failed to connect tool" or MCP server won't start
Most common cause: Wrong Godot executable path in configuration.
Solution:
Verify your Godot path by running:
"<your-godot-path>" --versionUpdate the path in your config file:
Claude Code: Edit
.mcp.jsonin your project directoryCursor: Edit
.cursor/mcp.jsonin your project directoryClaude Desktop: Check config in
%APPDATA%\Claude\(Windows) or~/Library/Application Support/Claude/(macOS)
Restart your IDE/application after updating the config
Check logs:
Cursor: Output panel → "MCP Logs" (Ctrl+Shift+U)
Claude Code: Terminal output or MCP logs
Manual Configuration
If you prefer manual setup, create config files:
Claude Code - .mcp.json in project directory:
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/path/to/godot-mcp/build/index.js"],
"env": { "GODOT_PATH": "/path/to/godot/executable" }
}
}
}Cursor - .cursor/mcp.json in project directory (same format as above)
Claude Desktop - %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/path/to/godot-mcp/build/index.js"],
"env": { "GODOT_PATH": "/path/to/godot/executable" }
}
}
}Development
npm run build # Build the project
npm run watch # Watch mode for development
npm run inspector # Test with MCP inspectorAvailable Tools
18 toolsadd_nodeC
Add a node to an existing scene
Inputs: projectPath (required), scenePath (required), nodeType (required), nodeName (required), +2 more.
capture_screenshotA
Capture a screenshot of the running game viewport via remote debugger and return it as base64-encoded image. Requires an active remote debugger connection (use connect_remote_debugger first).
Inputs: format.
connect_remote_debuggerA
Connect to Godot editor's remote debugger to capture debug output in real-time. Use port 6006 for script debugger (print/errors) or 6007 for live editor sync.
Inputs: host, port.
create_sceneC
Create a new Godot scene file
Inputs: projectPath (required), scenePath (required), rootNodeType.
disconnect_remote_debuggerB
Disconnect from the Godot editor's remote debugger
Inputs: no named parameters.
export_mesh_libraryB
Export a scene as a MeshLibrary resource
Inputs: projectPath (required), scenePath (required), outputPath (required), meshItemNames.
get_debug_outputB
Get the current debug output and errors
Inputs: no named parameters.
get_godot_versionA
Get the installed Godot version
Inputs: no named parameters.
get_project_infoB
Retrieve metadata about a Godot project
Inputs: projectPath (required).
get_remote_debug_outputB
Get the debug output captured from the remote debugger connection
Inputs: no named parameters.
get_uidB
Get the UID for a specific file in a Godot project (for Godot 4.4+)
Inputs: projectPath (required), filePath (required).
launch_editorC
Launch Godot editor for a specific project
Inputs: projectPath (required).
list_projectsA
List Godot projects in a directory
Inputs: directory (required), recursive.
load_spriteC
Load a sprite into a Sprite2D node
Inputs: projectPath (required), scenePath (required), nodePath (required), texturePath (required).
run_projectC
Run the Godot project and capture output
Inputs: projectPath (required), scene.
save_sceneC
Save changes to a scene file
Inputs: projectPath (required), scenePath (required), newPath.
stop_projectA
Stop the currently running Godot project
Inputs: no named parameters.
update_project_uidsB
Update UID references in a Godot project by resaving resources (for Godot 4.4+)
Inputs: projectPath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes, but there is some overlap between get_debug_output and get_remote_debug_output, which could cause confusion as both relate to debug output. Additionally, tools like launch_editor and run_project might be ambiguous in their execution context, but descriptions help clarify their roles.
Tool names follow a consistent verb_noun pattern throughout, such as add_node, capture_screenshot, and connect_remote_debugger. There are no deviations in naming conventions, making the set predictable and easy to understand.
With 18 tools, the count is slightly high but reasonable for a Godot MCP server covering project management, debugging, and scene operations. It feels comprehensive without being overwhelmingly heavy, though it could be trimmed for tighter focus.
The tool surface covers key areas like project handling, debugging, and scene manipulation with minor gaps, such as missing tools for editing node properties or managing resources beyond UIDs. However, core workflows are well-supported, allowing agents to perform essential tasks effectively.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Let your coding agent read your GameSalad projects, and edit them live in Creator on Pro and Edu.
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with the Godot game engine by launching the editor, running projects, capturing debug output, managing scenes and nodes, and controlling project execution through a standardized interface.14187 npm1-
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with the Godot game engine, including launching the editor, running projects, capturing debug output, and managing scenes.841MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with and manipulate Godot game engine projects, including creating projects, launching editor, managing scenes and nodes.121ISC
- AlicenseAqualityCmaintenanceEnables AI agents to launch and control the Godot game engine, run projects, capture debug output, and manage scenes and project configurations.14MIT