Skip to main content
Glama

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 doctor prints the exact claude mcp add command.

  • No project path juggling. Tools use the project Claude Code is running in. projectPath is optional everywhere, and paths can be res://....

  • 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 richer get_project_info (autoloads, input actions, scenes, scripts).

  • Better game runs: run_project waits and returns the first output and errors in one call, can run headless test scripts, and get_debug_output returns 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_name scripts are picked up automatically; the editor is started detached instead of writing into a pipe nobody reads; run_project no 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 doctor

npm install also builds the server. doctor checks Node and Godot, then prints the setup command for your machine.

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-local

Or 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?

get_project_info

Name, main scene, features, renderer, viewport, autoloads, input actions, plugins, scenes and scripts

No

get_scene_tree

Node tree of a .tscn with types, scripts, instances, groups, signal connections (optionally properties)

No

check_scripts

Compiles GDScript with the engine; reports errors with file and line

No

run_project

Runs the game, a scene, or a SceneTree test script (optionally headless); returns the first output

No

get_debug_output

New output since last read, or the full log; errorsOnly filter

No

stop_project

Stops the game and returns its last output

No

capture_screenshot

Runs a scene briefly via Movie Maker and returns a PNG

No (saves to temp)

launch_editor

Opens the Godot editor for the user

No

get_godot_version

Which Godot is used and which other installs were found

No

list_projects

Finds Godot projects in a folder

No

get_uid

uid:// of a file (Godot 4.4+)

No

create_scene

New scene with a root node (refuses to overwrite)

Yes

add_node

Adds a node with properties to a scene

Yes

load_sprite

Sets a sprite/texture rect texture

Yes

save_scene

Re-saves a scene, optionally to a new path

Yes

export_mesh_library

Exports a 3D scene as a MeshLibrary

Yes

update_project_uids

Re-saves resources to refresh UIDs (4.4+)

Yes

Settings

Environment variable

Meaning

GODOT_PATH

Godot executable, or the folder that contains it. Default: auto-detect (newest Godot 4 found)

GODOT_PROJECT

Default project folder. Default: the folder Claude Code runs in

GODOT_MCP_READ_ONLY=1

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 setup

test/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 tools
add_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 sceneA
Read-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 errorsA
Read-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 outputA
Read-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 infoA
Read-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 overviewA
Read-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 sceneA
Read-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 UIDB
Read-only

Get the uid:// of a file in the project (Godot 4.4+).

Inputs: filePath (required), projectPath.

launch_editorOpen the Godot editorB
Read-only

Open the Godot editor for the project (in its own window, for the user).

Inputs: scenePath, projectPath.

list_projectsFind Godot projectsB
Read-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 gameA
Idempotent

Stop the game started with run_project and return its last output.

Inputs: no named parameters.

update_project_uidsRefresh UIDsA
Idempotent

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

    A3.6/5.0

    Scored across 17 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables 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.
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Connects 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.
      16
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      24
      5
      MIT