Godot MCP
This MCP server lets Claude Code understand, check, run, screenshot, and edit a Godot 4 project without leaving the project folder.
Inspect the project:
get_project_info(name, main scene, renderer, autoloads, input actions, scenes, scripts),get_scene_tree(node tree of a.tscn, optionally with properties),get_uid,list_projects.Find and verify Godot:
get_godot_versionshows which executable is used and other installs found.Validate GDScript:
check_scriptscompiles scripts with the real engine and reports errors with file and line.Run the game:
run_project(main scene, one scene, or a headlessSceneTreetest script, with extra user args),get_debug_output(new lines or errors only),stop_project.See the result:
capture_screenshotrenders a scene briefly via Movie Maker and returns a PNG.Open the editor:
launch_editoropens Godot for the user in its own window.Edit scenes and resources:
create_scene,add_node,load_sprite,save_scene,export_mesh_library,update_project_uids.Stay safe: read-only mode hides every file-changing tool; network is never used, paths stay inside the project, no shell or arbitrary-code execution.
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 check my scripts for compile errors"
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
An MCP server for Godot 4 that works with Claude Code. A fork of Coding-Solo/godot-mcp (MIT). It lets Claude understand your Godot 4 project, check GDScript with the real engine, run the game and read its errors, and look at screenshots of what it renders.
What's different from upstream
Zero setup for Godot. Finds Godot by itself, including an unzipped download in your Downloads folder.
npm run doctorprints the exactclaude mcp addcommand.No project path juggling. Tools use the project Claude Code is running in.
projectPathis optional everywhere, and paths can beres://....New tools:
check_scripts(compile errors with file and line),get_scene_tree(the Scene dock as text),capture_screenshot(Claude sees the game), and a much richerget_project_info(autoloads, input actions, scenes, scripts).Better game runs:
run_projectwaits and returns the first output and errors in one call, can run headless test scripts, andget_debug_outputreturns only new lines (or only errors).A plugin for Claude Code with a Godot skill that teaches the check → run → screenshot workflow and the Godot 3 → 4 syntax traps.
Fixes: scripts that use autoloads no longer fail inside the helper (it now waits for autoloads to register); new
class_namescripts are picked up automatically; the editor is started detached instead of writing into a pipe nobody reads;run_projectno longer uses the stdin debugger that can pause the game on an error; the project name is read correctly; every Godot call has a timeout.Safer: see Safety.
Want Claude inside the Godot editor? See the companion add-ons godot-agent-addons: a terminal that opens in your project folder, and a chat dock.
Related MCP server: Godot MCP Server
Install
You need Node.js 18+ and Godot 4.
git clone https://github.com/raising-heart/godot-mcp.git
cd godot-mcp
npm install
npm run doctornpm install also builds the server. doctor checks Node and Godot, then prints the setup command for your machine.
Option A: as a Claude Code plugin (recommended)
Gives you the MCP server and the Godot skill. In Claude Code:
/plugin marketplace add C:\path\to\godot-mcp
/plugin install godot@godot-mcp-localOr from a terminal: claude plugin marketplace add C:\path\to\godot-mcp, then claude plugin install godot@godot-mcp-local.
When you enable it you can optionally set the Godot executable and read-only mode; leave them empty to auto-detect.
Option B: just the MCP server
Copy the command npm run doctor prints, which looks like:
claude mcp add godot --scope user -e GODOT_PATH="C:\path\to\Godot.exe" -- node "C:\path\to\godot-mcp\build\index.js"Then open Claude Code inside your Godot project and run /mcp to check that godot is connected.
Tools
Tool | What it does | Changes files? |
| Name, main scene, features, renderer, viewport, autoloads, input actions, plugins, scenes and scripts | No |
| Node tree of a | No |
| Compiles GDScript with the engine; reports errors with file and line | No |
| Runs the game, a scene, or a | No |
| New output since last read, or the full log; | No |
| Stops the game and returns its last output | No |
| Runs a scene briefly via Movie Maker and returns a PNG | No (saves to temp) |
| Opens the Godot editor for the user | No |
| Which Godot is used and which other installs were found | No |
| Finds Godot projects in a folder | No |
|
| No |
| New scene with a root node (refuses to overwrite) | Yes |
| Adds a node with properties to a scene | Yes |
| Sets a sprite/texture rect texture | Yes |
| Re-saves a scene, optionally to a new path | Yes |
| Exports a 3D scene as a MeshLibrary | Yes |
| Re-saves resources to refresh UIDs (4.4+) | Yes |
Settings
Environment variable | Meaning |
| Godot executable, or the folder that contains it. Default: auto-detect (newest Godot 4 found) |
| Default project folder. Default: the folder Claude Code runs in |
| Hide every tool that changes files |
Safety
No network. The server talks to Claude Code over stdio only. It opens no ports and sends nothing anywhere.
Stays inside your project. Every file path is resolved against the project folder;
.., absolute paths elsewhere, other URL schemes and symlinks that lead outside are refused.No arbitrary code tool. There is no "run this code" tool. Node types must be plain class names, so a script path can't be smuggled in as a node type (upstream CVE-2026-25546 and the April 2026 fix are both included).
No shell. Godot is always started with an argument list, never through a shell.
Your code does run when you use
run_project,capture_screenshot,check_scripts(autoloads start) or the editing tools, just as it would if you pressed Play. Keep the project in git so you can review and undo any change Claude makes.Read-only mode (
GODOT_MCP_READ_ONLY=1) removes every tool that changes files.
Development
npm run build # compile to build/
npm test # end-to-end test against real Godot (SKIP_SCREENSHOT=1 without a display)
npm run doctor # check the setuptest/smoke.mjs copies test/fixture to a temp folder and calls every tool through a real MCP client.
Disclaimer
This is an unofficial community project. It is not affiliated with, endorsed by, or supported by Anthropic. Claude and Claude Code are trademarks of Anthropic. Everything here runs the official, unmodified Claude Code with each user's own login.
Credits
Based on godot-mcp by Solomon Elias (Coding-Solo) and contributors, MIT licensed.
Available Tools
17 toolsadd_nodeAdd a node to a sceneA
Add a node to an existing scene and save it. Properties are set by name, e.g. {"position": {"x": 10, "y": 20}}; strings starting with res:// are loaded as resources.
Inputs: nodeName (required), nodeType (required), scenePath (required), properties, +2 more.
capture_screenshotScreenshot a sceneARead-only
Run the game (or one scene) for a moment and return a screenshot of what it renders, so you can see the result of your changes. Uses Godot's Movie Maker mode, so a game window appears briefly. The image is also saved to a temp folder.
Inputs: scene, seconds, resolution, projectPath.
check_scriptsCheck GDScript for errorsARead-only
Compile GDScript files with the real Godot engine and report parse/compile errors with file and line, without launching the game. Run this after editing .gd files. Checks every script in the project unless paths are given.
Inputs: paths, projectPath.
create_sceneCreate a sceneB
Create a new .tscn scene file with a root node of the given type.
Inputs: scenePath (required), projectPath, rootNodeType.
export_mesh_libraryExport a MeshLibraryB
Export the meshes in a 3D scene as a MeshLibrary resource for GridMap.
Inputs: scenePath (required), outputPath (required), projectPath, meshItemNames.
get_debug_outputRead game outputARead-only
Read output and errors from the game started with run_project. By default returns only lines you have not seen yet.
Inputs: tail, onlyNew, errorsOnly, waitSeconds.
get_godot_versionGodot install infoARead-only
Show which Godot executable this server uses (path, version, how it was found) and any other Godot installs it found.
Inputs: no named parameters.
get_project_infoProject overviewARead-only
Overview of a Godot project: name, main scene, Godot version features, renderer, viewport size, autoloads, input actions, enabled plugins, and the lists of scenes and scripts. A good first call.
Inputs: projectPath.
get_scene_treeRead a sceneARead-only
Show the node tree of a .tscn scene as the Scene dock would: node names, types, attached scripts, instanced scenes, groups and signal connections. Reads the file only; does not run Godot.
Inputs: scenePath (required), projectPath, includeProperties.
get_uidGet resource UIDBRead-only
Get the uid:// of a file in the project (Godot 4.4+).
Inputs: filePath (required), projectPath.
launch_editorOpen the Godot editorBRead-only
Open the Godot editor for the project (in its own window, for the user).
Inputs: scenePath, projectPath.
list_projectsFind Godot projectsBRead-only
Find Godot projects (folders with project.godot) under a folder.
Inputs: maxDepth, directory.
load_spriteSet a sprite textureA
Set the texture of a Sprite2D, Sprite3D or TextureRect node in a scene and save it.
Inputs: nodePath (required), scenePath (required), texturePath (required), projectPath.
run_projectRun the gameA
Run the project (or one scene) in a window, wait a few seconds, and return the output and any errors. The game keeps running: use get_debug_output to read more output and stop_project to close it. Can also run a SceneTree script from the project (e.g. a headless test script).
Inputs: scene, script, headless, userArgs, +2 more.
save_sceneRe-save a sceneA
Load and re-save a scene through Godot (normalizes the file), optionally to a new path to make a copy/variant.
Inputs: scenePath (required), newPath, projectPath.
stop_projectStop the gameAIdempotent
Stop the game started with run_project and return its last output.
Inputs: no named parameters.
update_project_uidsRefresh UIDsAIdempotent
Re-save every scene/resource so all references use up-to-date UIDs (Godot 4.4+). Useful after upgrading a project from an older Godot.
Inputs: projectPath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have clearly distinct purposes (e.g., get_scene_tree vs. check_scripts, run_project vs. capture_screenshot). Potential confusion exists between get_project_info and get_scene_tree (both inspect scene structure) and between create_scene/add_node/save_scene (all modify scenes), but descriptions clarify their distinct roles.
The vast majority follow a consistent verb_noun pattern (get_, list_, run_, stop_, create_, add_, load_, save_, export_, update_). Minor deviation: 'check_scripts' uses 'check' instead of 'get'/'verify', but still follows verb_noun.
17 tools is slightly heavy but reasonable for a full-featured Godot project management server covering versioning, project inspection, scene editing, execution, and debugging. Each tool appears to earn its place.
Covers project discovery, inspection, scene manipulation, script checking, execution, debugging, and UID management. Missing tools for deleting nodes/scenes, editing node properties beyond add, and managing resources, but core workflows are well-supported.
Maintenance
Related MCP Connectors
Your own Claude designs and codes Godot 4 games; each build is tested with real screenshots.
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
Pixel art for your game, from your coding agent. Generate sprites, items and tiles in your game's style (64 to 1024 px), make variants, reskins and N/E/S/W directions, then edit everything in a full pixel art editor that syncs into your project. Works with Claude, Claude Code, Cursor and ChatGPT; sign in with OAuth, no API key.
Read, edit, publish, and preview your pepita websites from Claude.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables complete natural language control of Godot Engine 4.5+ with 76 tools for managing scripts, scenes, nodes, animations, physics, tilemaps, audio, shaders, navigation, particles, UI, lighting, assets, and exports. Integrates with Claude Desktop, VS Code, and Ollama for AI-assisted game development.2MIT
- AlicenseAqualityDmaintenanceConnects Claude directly to Godot 4 projects to read and manipulate scenes, nodes, scripts, and assets within the editor. It enables real-time scene tree management, script editing, and resource configuration through a local Node.js bridge and GDScript plugin.16MIT
- 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
- AlicenseBqualityCmaintenanceEnables AI agents to inspect, modify, run, and debug Godot projects, including scene and script analysis, editor and project management, and visual verification through screenshots.2211 npm14MIT