Godot MCP Flash
Godot MCP Flash is an MCP server that lets AI agents inspect, modify, run, debug, and visually verify Godot projects.
Manage the Godot editor: launch/quit it, view console logs, and get the installed Godot version.
Run and debug: run projects or individual scenes, capture output/errors, and stop running processes.
Discover and analyze: list Godot projects, retrieve project metadata, list project files by category, and inspect scene hierarchies or script structures.
Validate GDScript syntax: check one or many
.gdscripts headlessly.Edit scenes: create scenes, add nodes, load sprites, export MeshLibrary resources, and save scenes or variants.
Manage UIDs (Godot 4.4+): read file UIDs and update UID references in the project.
Capture screenshots: run or load a scene and return a rendered image for visual verification (requires a real display).
Provides tools for interacting with the Godot game engine, enabling AI agents to launch the editor, run and debug projects, create and modify scenes, add nodes, load sprites, analyze scenes and scripts, capture screenshots, and manage file UIDs in a Godot project.
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 Flash Run the main scene and show me a screenshot of what it looks like."
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 Flash
A Model Context Protocol (MCP) server for interacting with the Godot game engine. It lets AI agents (Claude, Cursor, Cline, Codex, opencode, etc.) inspect, modify, run, and debug a Godot project directly.
This project is a streamlined and extended fork of the popular Coding-Solo/godot-mcp. It keeps the shared architecture and adds visual verification, project discovery, and scene/script analysis tools on top.Thank you for making this possible with your excellent open-source work!
Table of Contents
Related MCP server: Godot MCP Extended
Features
Editor Management: Launch the Godot editor, close it, read its console output.
Running Projects: Run a project or a single scene in debug mode, capture output/errors, and stop it.
Scene Management: Create scenes, add nodes, load sprites/textures, export MeshLibrary resources, and save scenes.
Project Discovery: List browsable Godot projects and find files within a project by category.
Scene & Script Analysis: Read a
.tscnscene's hierarchy and a.gdscript's contents as structured JSON.Script Validation: Check one or many
.gdscripts for syntax errors without running them.Visual Verification: Render a scene and return a screenshot (requires a real display).
UID Management (Godot 4.4+): Read file UIDs and update project references.
Requirements
Component | Requirement |
Godot Engine | 4.x (4.4+ recommended) |
Node.js | >= 24.0.0 |
npm | bundled with Node |
If Godot is not installed, download it from godotengine.org/download.
Installation
1. Clone the repository
git clone <repo-url> godot-mcp-flash
cd godot-mcp-flash2. Install dependencies and build
npm install
npm run buildDuring npm install, the prepare script automatically runs the build. After building, two GDScript files are copied into build/scripts/:
godot_operations.gd— mutating operations such as creating scenes, adding nodes, and loading sprites.godot_insights.gd— scene and script analysis (read-only).
The server entry point is build/index.js.
Connecting an MCP Client
Claude Code
claude mcp add godot -- npx godot-mcp-flashIf the Godot path cannot be auto-detected, specify it with an environment variable:
claude mcp add godot -e GODOT_PATH=/path/to/godot -- npx godot-mcp-flashCline
Add to your MCP settings file (cline_mcp_settings.json):
{
"mcpServers": {
"godot": {
"command": "npx",
"args": ["godot-mcp-flash"],
"env": {
"GODOT_PATH": "C:\\Godot\\Godot_v4.7.1\\Godot_v4.7.1-stable_win64.exe"
},
"autoApprove": [
"launch_editor",
"run_project",
"run_scene",
"get_debug_output",
"stop_project",
"quit_godot",
"view_log",
"get_godot_version",
"list_projects",
"get_project_info",
"list_project_files",
"create_scene",
"add_node",
"load_sprite",
"export_mesh_library",
"save_scene",
"get_uid",
"update_project_uids",
"get_scene_insights",
"get_node_insights"
]
}
}
}Cursor
Via the Cursor UI: Cursor Settings > Features > MCP > + Add New MCP Server → name godot, type command, command npx godot-mcp-flash.
Project-level (.cursor/mcp.json):
{
"mcpServers": {
"godot": {
"command": "npx",
"args": ["godot-mcp-flash"],
"env": {
"GODOT_PATH": "/path/to/godot"
}
}
}
}opencode
Add the server to your opencode.json (or opencode.jsonc) under the mcp key:
{
"mcp": {
"godot": {
"type": "local",
"command": ["npx", "godot-mcp-flash"],
"enabled": true,
"environment": {
"GODOT_PATH": "C:\\Godot\\Godot_v4.7.1\\Godot_v4.7.1-stable_win64.exe"
}
}
}
}On Linux/macOS, replace GODOT_PATH with the path to your Godot binary. On Windows, use a full absolute path with escaped backslashes.
Generic MCP Client
{
"mcpServers": {
"godot": {
"command": "npx",
"args": ["godot-mcp-flash"],
"env": {
"GODOT_PATH": "/path/to/godot",
"DEBUG": "true"
}
}
}
}Windows note: Always provide a full absolute path, e.g.
"GODOT_PATH": "C:\\Godot\\Godot_v4.7.1\\Godot_v4.7.1-stable_win64.exe". Auto-detection scans common locations ifgodotis not on PATH, but setting the variable yourself is the reliable approach.
Tools
Editor & Process Management
Tool | Description | Inputs |
| Opens the Godot editor for a specific project. |
|
| Closes the editor that this server launched via | — |
| Returns the console output of the last launched editor. |
|
| Returns the installed Godot version. | — |
Running & Debugging
Tool | Description | Inputs |
| Runs the project in debug mode and captures output. |
|
| Runs a single scene (F6-style) with an auto-stop timeout. |
|
| Returns the active process's output and error lines. | — |
| Stops the running project. | — |
Discovery & Analysis
Tool | Description | Inputs |
| Lists Godot projects in a directory. |
|
| Project name, Godot version, and file statistics. |
|
| Lists scenes, scripts, and resources by category. |
|
| Returns a |
|
| Returns a |
|
| Checks one |
|
| Checks explicit scripts or all project scripts, with bounded batch processing. |
|
Validation tool inputs use camelCase names as shown. The equivalent snake_case aliases project_path, script_path, script_paths, timeout_ms, max_files, and max_output_bytes are also accepted and normalized automatically. maxFiles is capped at 1000, and maxOutputBytes is a combined stdout/stderr cap capped at 256 KiB.
Scene Editing
Tool | Description | Inputs |
| Creates a new scene with the given root node type. |
|
| Adds a node to an existing scene, optionally setting properties. |
|
| Loads a texture onto a |
|
| Exports a scene as a |
|
| Saves a scene, or saves it to a new path (variant). |
|
Visual Verification
Tool | Description | Inputs |
| Runs a scene and returns one rendered frame as an image. |
|
| Loads a |
|
Visual tools require a real display (they are not
--headless). On headless Linux, wrap Godot withxvfb-run(see below).
UID Management (Godot 4.4+)
Tool | Description | Inputs |
| Returns the UID for a specific file. |
|
| Updates UID references by resaving resources. |
|
How It Works / Architecture
The server uses two primary approaches:
Direct commands — simple operations such as
launch_editor,run_project, andget_godot_versionuse Godot's built-in CLI arguments directly (--editor,--path,--version).Bundled GDScript operations — complex operations such as
create_scene,add_node,load_sprite, andget_scene_insightsare executed by two GDScript files that are copied intobuild/scripts/during build:godot_operations.gd— packs/saves scenes, adds nodes, and writes resources.godot_insights.gd— parses.tscnand.gdfiles as plain text (noResourceLoaderneeded, so it also works in headless environments).
Both scripts receive an operation name and parameters as JSON and print the result to stdout, avoiding temporary files per operation.
The capture_screenshot tools run Godot without --headless to produce real pixels and return the PNG as a base64 image block.
Security Notes
Path validation blocks
..traversal and NUL byte (poison-null-byte) attacks.Class-name validation prevents arbitrary script instantiation (only
[A-Za-z_][A-Za-z0-9_]*identifiers are accepted).Godot execution uses argument arrays (
execFile/spawn) that bypass shell interpretation entirely, so there is no command-injection risk.
Environment Variables
Variable | Description |
| Full path to the Godot executable (overrides auto-detection). |
| When set to |
Example: screenshots on headless Linux
On a machine without a real display, create a virtual-display wrapper script:
#!/bin/sh
# /usr/local/bin/godot-xvfb
exec xvfb-run -a /usr/bin/godot "$@"chmod +x /usr/local/bin/godot-xvfb
export GODOT_PATH=/usr/local/bin/godot-xvfbTroubleshooting
Problem | Fix |
| Set the |
| Ensure the path points to a directory containing |
Visual tools report | No real display; use |
| Re-run |
Tools don't show up in Cursor | Confirm the MCP server is enabled under |
Visual tool error table:
Error | Likely cause | Fix |
| Headless Linux, no virtual display | Use |
| Wrong | Confirm the |
| Scene loading slowly or crashing | Increase |
Building from Source
git clone <repo-url> godot-mcp-flash
cd godot-mcp-flash
npm install
npm run buildThen point your MCP client directly at build/index.js instead of npx godot-mcp-flash.
To watch files during development:
npm run watchTo test tools with the MCP Inspector:
npm run inspectorLicense
This project is licensed under the MIT License.
Available Tools
22 toolsadd_nodeB
Add a node to an existing scene
Inputs: nodeName (required), nodeType (required), scenePath (required), projectPath (required), +2 more.
capture_scene_screenshotA
Load a specific .tscn scene file and capture one rendered frame without running the full project. Returns the image for visual inspection. Requires a real display (not --headless).
Inputs: scenePath (required), projectPath (required), timeoutMs.
capture_screenshotA
Run a Godot scene and capture a screenshot of the rendered output. Returns the image so the agent can visually verify the scene. Requires a real display (not --headless). On headless Linux, wrap Godot with xvfb-run.
Inputs: projectPath (required), scenePath, timeoutMs, waitFrames.
create_sceneA
Create a new Godot scene file
Inputs: scenePath (required), projectPath (required), rootNodeType.
export_mesh_libraryB
Export a scene as a MeshLibrary resource
Inputs: scenePath (required), outputPath (required), projectPath (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_node_insightsA
Understand a GDScript file (.gd): class name, extends, signals, exports, variables, methods, and dependencies. Returns structured JSON so the agent can understand a script without reading raw code.
Inputs: scriptPath (required), projectPath (required), includeMethods, includeVariables, +1 more.
get_project_infoB
Retrieve metadata about a Godot project
Inputs: projectPath (required).
get_scene_insightsA
Understand a Godot scene file (.tscn): node hierarchy, attached scripts, and signal connections. Returns structured JSON so the agent can understand scene architecture without reading raw scene files.
Inputs: scenePath (required), projectPath (required), includeProperties, includeConnections, +1 more.
get_uidB
Get the UID for a specific file in a Godot project (for Godot 4.4+)
Inputs: filePath (required), projectPath (required).
launch_editorC
Launch Godot editor for a specific project
Inputs: projectPath (required).
list_project_filesB
List Godot scenes, scripts, resources, and shaders in a project
Inputs: projectPath (required), type, pattern.
list_projectsA
List Godot projects in a directory
Inputs: directory (required), recursive.
load_spriteC
Load a sprite into a Sprite2D node
Inputs: nodePath (required), scenePath (required), projectPath (required), texturePath (required).
quit_godotA
Close the Godot editor that was launched by this MCP server via launch_editor. Only closes editors spawned by this server.
Inputs: no named parameters.
run_projectC
Run the Godot project and capture output
Inputs: projectPath (required), scene.
run_sceneB
Run a specific Godot scene and capture output
Inputs: scenePath (required), projectPath (required), timeoutMs.
save_sceneC
Save changes to a scene file
Inputs: scenePath (required), projectPath (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).
view_logA
View recent console output from the last launched editor or running project. Returns the last N lines of captured stdout/stderr.
Inputs: lineCount.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Several near-overlapping pairs exist: get_debug_output/view_log both retrieve process output, run_project/run_scene and capture_screenshot/capture_scene_screenshot are similar paired operations, though descriptions mostly clarify the differences. get_node_insights is also misleading since it analyzes .gd script files, not scene-tree nodes, even though the description does clarify this.
All 22 tools follow a consistent snake_case verb_noun pattern (launch_editor, run_project, list_projects, capture_scene_screenshot) with no mixed conventions, vague single-word verbs, or stylistic deviations. Compound forms like update_project_uids and get_godot_version remain within the same predictable pattern.
At 22 tools, this sits in the heavy range, and several are ultra-specific (export_mesh_library, load_sprite, update_project_uids) that feel like edge-case additions rather than core workflow tools. However, the server does span project management, scene editing, debugging, and screenshot capture, so most tools have a legitimate place.
Project discovery, launching, running, debugging, and screenshot verification are well covered, but scene editing has dead ends: create_scene/add_node/save_scene exist with no remove_node or delete_scene counterpart. There is also no script creation or editing despite get_node_insights providing deep GDScript analysis, leaving the authoring surface one-directional.
Maintenance
Related MCP Connectors
Let your coding agent read your GameSalad projects, and edit them live in Creator on Pro and Edu.
Lets your AI build and edit websites and apps in Xodia, an AI builder and visual editor for real code (Vite, React, Tailwind CSS or plain HTML in your own git repo): read and write site files, create pages and CMS collections, make database tables and visitor sign-in on the built-in Xodia database or your own Supabase, write server tasks, run typecheck, design, link and security checks, take screenshots, manage forms and translations, and pick up change requests the user sends from the visual editor. 67 tools. Sign in once with your Xodia account (OAuth). Free plan, no card needed. Setup: https://xodia.ai/ai/mcp
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to create, edit, and run Godot 4.5+ games by providing tools for project scaffolding, scene manipulation, and engine interaction. It supports full game development workflows including node editing, script attachment, and project execution with debugging capabilities.245MIT
- AlicenseAqualityDmaintenanceEnables AI agents to launch, edit, debug, and test Godot game projects with comprehensive scene and script manipulation tools.501MIT
- AlicenseCqualityCmaintenanceEnables AI agents to interact with the Godot game engine, including project inspection, scene/script parsing, headless exports, runtime control with live scene-tree inspection and evaluation, and API documentation search.1006MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to inspect, author, debug, simulate, and visually verify Godot 4.x projects through standard MCP tools, including scene editing, runtime control, and viewport capture.5MIT