1. Conduid
  2. Gaming
  3. Godot MCP Runtime
MCP server · Gaming

Godot MCP Runtime

MCP server for Godot Engine — headless scene editing, runtime input simulation, live script execution, and more

68Good

Scored yesterday · breakdown

About Godot MCP Runtime

Godot MCP Runtime is an MCP server published by Erodenn in the Gaming category: mCP server for Godot Engine — headless scene editing, runtime input simulation, live script execution, and more. Conduid read 43 tools from its source: add_autoload, add_node, attach_script, batch_scene_operations, check_project, connect_signal and 37 more. It is published to npm as godot-mcp-runtime and starts with npx.

The repository has 104 stars and 22 forks, and its last commit was on 13 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include godot, game-development, game-engine and godot4.

Install

Claude Code
claude mcp add godot-mcp-runtime -- npx -y godot-mcp-runtime
npx
npx -y godot-mcp-runtime
From source
git clone https://github.com/Erodenn/godot-mcp-runtime

Tools (43)

add_autoloadRegister a new autoload. autoloadPath takes res://... or a project path. singleton defaults to true. No Godot process is used. An autoload that stops the engine before a headless operation is dispatched fails all of them: run validate on it first. Returns: autoload { name, path, singleton } read back from project.godot, and a tip. Errors if the name exists (use update_autoload), or a singleton shares its name with a class_name a project script declares (the engine then drops the script).
ParameterTypeDescription
autoloadName *stringName of the autoload node (e.g. "MyManager")
autoloadPath *stringPath to the script or scene (e.g. "res://autoload/my_manager.gd" or "autoload/my_manager.gd")
projectPath *stringPath to the Godot project directory
singletonbooleanRegister as a globally accessible singleton by name (default: true)
add_nodeAdd a node to a scene, or instance another scene when nodeType is a scene path. Saves automatically. Values in properties are checked against each property's declared type; a mismatch errors (Property Values in docs/tools.md). Returns: nodeName, nodeType and nodePath, read back after the add; warnings leads when Godot renamed the node or a value will not be saved. Errors and adds nothing if the type, parent or a property is invalid. Errors while a runtime session is live on this project.
ParameterTypeDescription
modulateobjectColor modulation (e.g. {"r": 1, "g": 0, "b": 0, "a": 1}). Shorthand for properties.modulate; properties wins on a conflict.
nodeName *stringName for the new node as it appears in the scene tree
nodeType *stringGodot node class to instantiate (e.g. "Sprite2D", "CollisionShape2D", "Label"), or a project-relative scene path (.tscn or .scn, e.g. "scenes/enemy.tscn") to instance an existing scene as a child - instanced children serialize as `instance=ExtResource(...)` on save
parentNodePathstringParent node path from scene root (e.g. "root/Player"). Defaults to the root node; an empty string also means the root.
positionobjectPosition: {"x": 100, "y": 200} on a 2D node, {"x": 0, "y": 1, "z": 0} on a 3D node. Shorthand for properties.position; properties wins on a conflict.
projectPath *stringPath to the Godot project directory
propertiesobjectAdditional property values as a JSON object. A key here wins over the same top-level shorthand (position, rotation, scale, visible, modulate). An Object-typed property takes a res:// path, a {type: ClassName, ...props} dict that builds a Resource inline, or null; slash-suffixed keys like shader_parameter/<uniform> go inside that dict, not on the node; metadata/<name> and slash keys the node declares go straight into properties. Coercion and Packed*Array / Array[T] / Dictionary[K, V] element rules: Property Values in docs/tools.md.
rotationnumberRotation in radians, for a 2D node. On a 3D node rotation is a vector: pass it as properties.rotation, {"x", "y", "z"} in radians. Shorthand for properties.rotation; properties wins on a conflict.
scaleobjectScale: {"x": 2, "y": 2} on a 2D node, {"x": 2, "y": 2, "z": 2} on a 3D node. Shorthand for properties.scale; properties wins on a conflict.
scenePath *stringScene file path relative to the project
visiblebooleanWhether the node is visible. Shorthand for properties.visible; properties wins on a conflict.
attach_scriptAttach a GDScript or C# script to a node in a scene, replacing any script it had. Check the script with the validate tool first. C# needs the Godot .NET build with the class compiled into the project assembly. Saves automatically. Returns: nodePath and scriptPath. Errors if the script cannot be instantiated (parse errors, @abstract, or an unbuilt C# class), or if scriptPath or nodePath does not exist. Errors while a runtime session is live on this project.
ParameterTypeDescription
nodePath *stringNode path from scene root (e.g. "root/Player")
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
scriptPath *stringPath to the script file relative to the project (e.g. "scripts/player.gd" or "scripts/Player.cs"). A .cs file needs the Godot .NET build and its class compiled into the project assembly (dotnet build).
batch_scene_operationsRun several scene mutations in one process; every mutated scene is saved at the end. Use instead of chaining add_node, load_sprite, set_node_properties or save_scene. Each item sets operation (save stands for save_scene) and takes that tool's params. abortOnError stops at the first failure; later items return skipped: true. Returns: results[] in input order: operation, scenePath, success, error or skipped, plus the operation's own fields. Errors while a runtime session is live on this project.
ParameterTypeDescription
abortOnErrorbooleanStop processing on first error (default: false)
operations *arrayOrdered list of scene operations. Each item has its own operation and scenePath.
projectPath *stringPath to the Godot project directory
check_projectGet project metadata and the Godot version, plus a runtime block. runtime.activeSession, sessionMode and bridgeResponsive describe the current session, projectPath its project (null when none), liveSessions all live ones. With projectPath, runtime.project is that project's session: live, exited or none. Returns: { name?, projectPath?, structure?, godotVersion, runtime }; warnings leads if structure is partial or the engine is newer than the project. Errors if projectPath lacks project.godot.
ParameterTypeDescription
projectPathstringPath to the Godot project directory (optional - omit to get Godot version and runtime status only). An empty string is treated as omitted.
connect_signalConnect a signal on a source node to a method on a target node and persist it in the .tscn. Use get_node_signals first to confirm the names. Saves automatically. Returns: nodePath, signal, targetNodePath, method and connected, which is read back from the saved scene (null with a leading warning if that read failed). Errors if the signal or method does not exist or the connection already exists. Errors while a runtime session is live on this project.
ParameterTypeDescription
method *stringMethod name on the target node to call when the signal fires
nodePath *stringSource node path from scene root
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
signal *stringSignal name on the source node (e.g. "pressed", "body_entered")
targetNodePath *stringTarget node path from scene root that receives the signal
create_resourceCreate a .tres resource file from an engine Resource class or a GDScript resource script (class_name or path), with property values set. Values are checked against declared types as in set_node_properties (Property Values in docs/tools.md). Refuses an existing file unless overwrite is true. Returns: resourcePath, resourceType, scriptPath and properties read back from the saved file. Errors on an unknown type or property, and while a runtime session is live on this project.
ParameterTypeDescription
overwritebooleanReplace an existing file at resourcePath (default: false).
projectPath *stringPath to the Godot project directory
propertiesobjectProperty values to set, keyed by property name as written, with the same value rules as set_node_properties. script and resource_path are refused.
resourcePath *stringPath of the .tres file inside the project, e.g. "items/sword.tres". Created with its folders.
type *stringEngine Resource class such as "StyleBoxFlat", a registered class_name, or a GDScript path such as "items/item_stats.gd". A class_name is known only after the editor or an import has scanned the project.
create_sceneCreate a new scene file with a single root node, written to scenePath. Use to start a scene from scratch; to add nodes to an existing scene use add_node. rootNodeType defaults to Node2D: pass "Node3D" for 3D or "Control" for UI. Saves automatically and overwrites an existing file silently. Returns: the scenePath that was written. Errors while a runtime session is live on this project.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory
rootNodeTypestringRoot node type (default: Node2D)
scenePath *stringScene file path relative to the project (e.g. "scenes/main.tscn")
delete_nodesRemove one or more nodes, with their descendants, from a scene. Always-array: pass a single-element nodePaths array for a one-off delete. Saves once at the end. The scene root, a node inside an instanced scene, and a node inherited from a base scene cannot be deleted: that entry reports an error and the rest still process. Returns: results[], one entry per nodePath in input order, each with success or error. Errors while a runtime session is live on this project.
ParameterTypeDescription
nodePaths *arrayNode paths from scene root to delete (e.g. ["root/Player/Sprite2D"])
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project (e.g. "scenes/main.tscn")
disconnect_signalRemove a signal connection between two nodes and persist the change in the .tscn. Use get_node_signals first to confirm the connection exists; connect_signal puts it back. Saves automatically. Returns: nodePath, signal, targetNodePath, method and connected, read back from the saved scene: false once the connection is gone, null with a leading warning if that read failed. Errors if the connection does not exist. Errors while a runtime session is live on this project.
ParameterTypeDescription
method *stringMethod name on the target node
nodePath *stringSource node path from scene root
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
signal *stringSignal name on the source node
targetNodePath *stringTarget node path from scene root
duplicate_nodeDuplicate a node and its descendants, instead of rebuilding it with add_node. newName defaults to the original name plus "2"; targetParentPath to the parent of the original. Keeps the saved signal connections like the editor; copySignals false drops them. Saves automatically. Returns: nodePath (copied node), newNodePath (read back). Errors if nodePath or targetParentPath is not found, nodePath is the root, or a runtime session is live.
ParameterTypeDescription
copySignalsbooleanKeep the copy's saved signal connections (default true). False drops those from the copy or a node inside it to a node outside the copied subtree; connections within the subtree stay.
newNamestringName for the duplicated node (default: original name + "2")
nodePath *stringNode path from scene root to duplicate
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
targetParentPathstringParent node path for the duplicate (default: same parent as original)
export_mesh_libraryExport a scene's MeshInstance3D children as a MeshLibrary for GridMap. The outputPath extension sets the format: .tres is text (prefer it: readable, diffable), .res is binary. Not for 2D scenes. meshItemNames picks a subset, else all. Overwrites silently. Returns: outputPath, itemCount, itemNames read from the saved library; warnings leads when a requested name was not exported. Errors if no valid meshes, or while a runtime session is live.
ParameterTypeDescription
meshItemNamesarrayNames of specific mesh items to export. Omit to export all.
outputPath *stringOutput path for the MeshLibrary (relative to project). Its extension sets the format: .tres writes text, .res writes binary. Prefer .tres.
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
get_debug_outputRead captured stdout/stderr from a spawned Godot project. Use whenever a runtime tool fails unexpectedly: script errors, missing nodes and crash backtraces surface here. Still works after the process exits or crashes; the logs are kept until stop_project. Returns: projectPath, sessionMode, output and errors (last `limit` lines each, default 200), running (false after exit) and exitCode after exit. An attached session captures nothing: output, errors and running are null and warnings leads.
ParameterTypeDescription
limitintegerMax lines to return, a whole number of ${MIN_DEBUG_OUTPUT_LIMIT} or more (default: ${DEFAULT_DEBUG_OUTPUT_LIMIT}, from end of output)
get_node_propertiesRead the current property values of one or more nodes from a scene file, in one Godot process. Always-array: pass a one-element nodes array for one node. Per-node changedOnly: true leaves out properties that match the class defaults. Returns: results[] in input order: { nodePath, nodeType, properties }, or { nodePath, error } when not found. Values use the input shapes of set_node_properties. warnings leads when changedOnly had no defaults to compare. Errors if the scene cannot be loaded.
ParameterTypeDescription
nodes *arrayNodes to read properties from
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
get_node_signalsList all signals defined on a node and their current connections. Use before connect_signal/disconnect_signal to verify signal/method names. The connections[].target field is already scene-root-relative in the "root/..." form connect_signal/disconnect_signal accept as targetNodePath (a self-connection reports as "root") - pass it straight through with no conversion. Returns: nodeType and signals[], each with name and current connections (signal/target/method). Errors if node not found.
ParameterTypeDescription
nodePath *stringNode path from scene root (e.g. "root/Button")
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
get_project_filesReturn the file tree of a Godot project. Use to discover project structure when paths are unknown. subfolder lists one folder as the root (maxDepth counts from it). extensions filters files (e.g. ["gd","tscn"]) and drops directories with no match; maxDepth -1 is unlimited. Skips dot-prefixed entries. Returns: the root node { name, type, path, children[] }; a child is a file, a directory, or a link (not followed). A directory not opened or unreadable has children null; warnings leads then.
ParameterTypeDescription
extensionsarrayFilter to only these file extensions (e.g. ["gd", "tscn"]); directories with no match are left out. Omit to include all.
maxDepthnumberMaximum recursion depth, counted from the listed root. -1 means unlimited (default: -1)
projectPath *stringPath to the Godot project directory
subfolderstringFolder inside the project to list instead of the whole project (e.g. "ui/themes" or "res://ui"). Must exist and be a directory. Omit for the project root.
get_project_settingsParse project.godot into JSON without launching Godot. Use to inspect display, input and rendering settings. Pass section for one INI section. Returns: settings as { [section]: { [key]: value } }, or { [key]: value } plus section. Strings are unescaped, an empty value is null, complex values stay raw text. Keys before any section are under __global__. warnings leads when the section is absent, a value is unterminated or empty, a line is not as Godot writes it, or a setting is assigned twice.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory
sectionstringFilter to a specific INI section (e.g. "display", "application"). Omit for all sections; an empty string is treated as omitted.
get_scene_dependenciesParse a .tscn file for ext_resource references (scripts, textures, subscenes). Use to see what a scene depends on before refactoring or moving files. Returns: scenePath and dependencies[], one per ext_resource reference (path, type, optional uid). warnings leads when ext_resource lines could not be read. Errors if the file does not exist or is not a text scene or resource.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory
scenePath *stringPath to the .tscn file relative to the project root (e.g. "scenes/main.tscn")
get_scene_treeGet a scene's node hierarchy as a nested tree. maxDepth: 1 lists only direct children; the default -1 is the whole tree. parentPath scopes to one subtree. Returns: the root node { name, type, path, script, children[] }, every child the same shape; path is a root/... node path the node tools accept, script a res:// path or an empty string. A node cut by maxDepth has children null and a childCount, and warnings leads. Errors if the scene or parentPath is not found.
ParameterTypeDescription
maxDepthnumberMaximum recursion depth. -1 for unlimited (default: -1). 1 returns only direct children.
parentPathstringScope to a subtree starting at this node path (e.g. "root/Player")
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
get_ui_elementsList the running scene Controls with rect, type and text. Call before simulate_input click_element to find names and paths. Needs a runtime session. visibleOnly (default true) drops hidden Controls and ones clipped out of view. filter narrows by class; root limits the list to one Control and its descendants. Returns: projectPath, elements[] with path/type/rect/visible/onScreen (visibleRect if clipped), optional text/disabled/tooltip. Errors on a non-Control filter or an unknown root.
ParameterTypeDescription
filterstringFilter by native Control class name (e.g. "Button", "Label", "LineEdit"); subclasses match. A class Control inherits from (CanvasItem, Node) lists every Control. Any other name, including a script class_name, is an error.
rootstringList only this Control and its descendants. Same lookup as simulate_input click_element: absolute path, relative path or node name (BFS matched). Visibility and clipping by ancestors above it still apply. An unknown name, or a node that is not a Control, is an error.
visibleOnlybooleanOnly return Controls that are visible in the tree and have area on screen, not clipped away by a ScrollContainer, a clip_contents ancestor or the viewport (default: true). Set false to include the rest.
launch_editorOpen the Godot editor GUI for a project, for the human user. Use only when the user asks to open the editor; for agent-driven work use the headless scene and node tools (add_node, set_node_properties, etc.), since the editor cannot be controlled programmatically. Returns: projectPath, the editor process pid and message. Errors if projectPath has no project.godot or the editor process does not start.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory
list_autoloadsList the autoloads registered in a project, with their paths and singleton flags. Use first when diagnosing headless failures: an autoload that stops the engine before an operation is dispatched fails every headless operation. Reads project.godot directly, no Godot process. Returns: autoloads[], each { name, path, singleton }, one per name (the last assignment, which the engine keeps); empty when none. warnings leads when a line is not listed or is not in the form Godot writes.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory
list_projectsFind Godot projects under a directory by locating project.godot files. Use when no project is named; to inspect a known one use check_project. recursive: true descends into subdirectories (skipping .git, .godot, node_modules, etc.); the default checks the directory and its immediate children. Returns: projects[], each { projectPath, name }, name being config/name else the folder name. warnings leads when a path could not be read or a link was not followed. Errors if directory is not a directory.
ParameterTypeDescription
directory *stringDirectory to search for Godot projects
recursivebooleanWhether to search recursively (default: false)
load_spriteSet the texture on an existing Sprite2D, Sprite3D or TextureRect. For a new node, pass texture in add_node properties instead. Saves automatically. texturePath must be a file under projectPath. Returns: nodePath, nodeType and texturePath, read back from the node after the assignment. Errors if the node is not one of those three classes or the texture file does not exist. Errors while a runtime session is live on this project.
ParameterTypeDescription
nodePath *stringPath to the target node from scene root (e.g. "root/Player/Sprite2D")
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
texturePath *stringPath to the texture file relative to the project (e.g. "assets/player.png")
move_nodesMove nodes to another parent and/or child position in a scene, each subtree kept whole (owners, groups, connections). Always-array moves, applied in order. Saves once at the end. Returns: results[] per move with success, newNodePath and index read back, or error; warnings leads when a NodePath value no longer leads where it did. Refused per entry: the root, a node inside an instance or inherited, a target inside the node, a name taken at the target. Errors while a runtime session is live.
ParameterTypeDescription
moves *arrayMoves to apply in order. Each names a node and gives newParentPath, index or both.
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
profile_projectProfile a window: GDScript function costs, fps, monitors; visual adds CPU/GPU ms per render stage, timeline both over time. Requires run_project with profiling: true. Blocks for `seconds` (default ${DEFAULT_WINDOW_SECONDS}, max ${PROFILE_WINDOW_MAX_SECONDS}; longer: start_profiler). Times are elapsed, not CPU; never sum totalMs (rows overlap). Returns: warnings first, projectPath, complete, fps, slowFrames, rows, frame, servers, worstFrame, monitors, visual, timeline. Errors if profiling is off, a capture is open or the game exits mid-window.
ParameterTypeDescription
captureLimitany
secondsnumberCapture duration in seconds, greater than 0 and at most ${PROFILE_WINDOW_MAX_SECONDS} (default: ${DEFAULT_WINDOW_SECONDS}). The call answers only when the window has closed, and with its waits can take up to ${PROFILE_PROJECT_WORST_CASE_MS / MS_PER_SECOND} s, which the limit keeps under a client's 60 s request timeout. Time spent waiting for the session queue counts against that: a call whose wait plus its worst case would pass 60 s is refused with nothing sent. For a longer capture use start_profiler (up to ${PROFILE_MAX_SECONDS} s) and stop_profiler.
sortany
targetFpsany
timelineany
timelineBucketsany
timelineMsany
timelineTopany
topany
trackany
visualany
remove_autoloadUnregister an autoload from a project by name. Use to recover from an autoload that stops the engine before headless operations are dispatched. No Godot process is used. Returns: removed (the name) and autoloads[], the entries that remain, read back from project.godot. Errors if no autoload has that name.
ParameterTypeDescription
autoloadName *stringName of the autoload to remove
projectPath *stringPath to the Godot project directory
render_movieRender `frames` frames of the project (or `scene`) in a separate movie-writer run: no bridge, session or input (to interact: run_project, simulate_input). mode check (default): stats, likelyBlank, motion, inline frames, files deleted. frames: keeps PNGs. video: .avi/.ogv, no stats. Returns: frameCount, likelyBlank, anyMotion, samples, paths, bytesWritten; warnings leads if unmeasured or unconfirmed. Needs a display; asks the user once per project. Errors on timeout, failed run or live session.
ParameterTypeDescription
formatstring[video] Movie container (default "avi"). "ogv" needs an engine that can write it; the error names the format and engine version when it cannot. Rejected in other modes.
fpsintegerFixed simulation and capture rate (default ${DEFAULT_MOVIE_FPS}, max ${MAX_MOVIE_FPS}). Game time covered is frames / fps seconds, whatever the wall-clock speed.
framesintegerFrames to render before Godot quits (default ${DEFAULT_MOVIE_FRAMES}, max ${MAX_MOVIE_FRAMES}). The first frames can be blank while the scene loads; likelyBlank is judged on the last one. The run is budgeted at ${MOVIE_TIMEOUT_BASE_MS / MS_PER_SECOND}s plus ${MOVIE_TIMEOUT_PER_FRAME_MS}ms per frame, and a run that overruns it takes up to ${MOVIE_KILL_WORST_CASE_MS / MS_PER_SECOND}s more to stop. A run of ${MOVIE_MARGIN_REFUSED_FRAMES} to ${MOVIE_CLIENT_TIMEOUT_FRAMES} frames is refused, with nothing run, because its answer would not fit a client's ${CLIENT_REQUEST_TIMEOUT_MS / MS_PER_SECOND}s request timeout; above that a client may cut the call off before this server can report a timeout.
inlineFramesinteger[check] Inline images to return, evenly spaced and ending at the last frame (default ${DEFAULT_MOVIE_INLINE_FRAMES}, max ${MAX_MOVIE_INLINE_FRAMES}; 0 for none). Each is downscaled to fit ${MOVIE_INLINE_MAX_WIDTH}x${MOVIE_INLINE_MAX_HEIGHT}; stats are measured at full size. Rejected in other modes.
modestring"check" (default) measures a sample of frames, returns a few inline, and deletes every file. "frames" keeps the PNG sequence (and frame.wav) under .mcp/godot-runtime/movies/ and returns paths plus stats for a sample. "video" writes one movie file and returns its path; it has no pixel stats.
projectPath *stringPath to the Godot project directory
scenestringScene to render (path relative to project, e.g. "scenes/main.tscn"). Omit to use the project's main scene. Must end in .tscn, .scn, .escn, .tres or .res.
run_projectStart a runtime session: spawn the project (stdout/stderr captured; asks the user to confirm the first time per project), or with attach: true wait for a Godot you launch yourself (nothing spawned or captured). Required before take_screenshot, simulate_input, get_ui_elements and run_script; returns once the bridge answers. It becomes current; others keep running. Returns: projectPath, sessionMode, bridgePort, message; warnings leads on a start caveat. Errors if the bridge never answers.
ParameterTypeDescription
attachbooleanIf true, do not spawn Godot: inject the bridge and wait for a Godot process you launch yourself (up to ${BRIDGE_WAIT_ATTACHED_TIMEOUT_MS / MS_PER_SECOND}s for it to start listening, ${BRIDGE_WAIT_ATTACHED_CONNECTED_TIMEOUT_MS / MS_PER_SECOND}s total once it has). Call before Godot launches, or start the launch in parallel, because Godot reads autoloads only at startup. One attach session per project; attaching again keeps this server's attached session unless its bridge is gone, and says so in warnings. Cannot be combined with scene, background or profiling. Nothing is captured: get_debug_output returns null logs with a warning, and the profiler is unavailable.
backgroundbooleanIf true, the game window is never shown on Windows and is moved off-screen after startup on other platforms; mouse input passes through to whatever is beneath it. Programmatic input (simulate_input, run_script) and screenshots stay fully active. It does not guarantee the game never takes keyboard focus. Not valid with attach: true.
bridgePortintegerTCP port for the MCP bridge. Omit to auto-select a free port (recommended). Spawned sessions receive it through an environment variable; attach mode bakes it into the injected bridge script, so the Godot you launch listens on exactly this port. A port held by a live session on another project is refused.
profilingbooleanAttach Godot's own remote debugger so profile_project, start_profiler and stop_profiler can measure this session. Must be set at launch - a session already running cannot be profiled - and costs a little runtime overhead. Not valid with attach: true.
projectPath *stringPath to the Godot project directory
scenestringScene to run (path relative to project, e.g. "scenes/main.tscn"). Omit to use the project's main scene. Not valid with attach: true. Must end in .tscn, .scn, .escn, .tres or .res.
run_scriptRun GDScript in the running game. It must extend RefCounted and define func execute(scene_tree: SceneTree) -> Variant; execute may await, cut off at the timeout (not cancelled). Return is JSON-serialized: vectors as {x,y[,z,w]}, Color as {r,g,b,a}, a Node as {class,name,path}. Compiled with project warnings. Returns: projectPath, result, warnings, tip. Spawned: a runtime error is an error if result is null, else a warning. Attached: errors are unobservable. Asks the user once per project.
ParameterTypeDescription
script *stringGDScript source code. Must contain "extends RefCounted" and "func execute(scene_tree: SceneTree) -> Variant".
timeoutintegerTimeout in ms, a whole number from ${MIN_RUNTIME_TIMEOUT_MS} to ${MAX_RUNTIME_TIMEOUT_MS} (default: ${RUN_SCRIPT_DEFAULT_TIMEOUT_MS}); a value from ${CLIENT_ANSWER_CEILING_MS + 1} to ${CLIENT_REQUEST_TIMEOUT_MS} is refused, since the answer would not fit a client's ${CLIENT_REQUEST_TIMEOUT_MS / MS_PER_SECOND}s request timeout. Increase for long-running scripts. Time spent on the confirmation prompt and waiting for the session queue comes off it; a call left with under ${QUEUE_CHARGED_COMMAND_FLOOR_MS} ms is refused with nothing sent.
save_sceneRe-pack and save a scene, optionally to another path (save-as). The mutation tools save by themselves: use this only for save-as via newPath, or to re-canonicalize a hand-edited .tscn. Overwrites silently. A newPath file gets no uid of its own. Returns: scenePath (loaded) and savedScenePath (written, confirmed on disk); warnings leads if the save dropped content. Errors while a runtime session is live on this project.
ParameterTypeDescription
newPathstringSave to a different path (relative to project) instead of overwriting the original
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
search_projectPlain-text (substring, not regex) search across project files; the text goes in `pattern`. Default fileTypes ["gd","tscn","cs","gdshader"]; caseSensitive false; maxResults integer >= 1, default 100. Skips hidden entries and .mcp. Returns: matches[] (project-relative file, 1-indexed lineNumber, line), truncated, filesSearched, fileTypes. warnings leads when no file had a searched extension or a path was unreadable. Errors if pattern holds a line break or a parameter is undeclared.
ParameterTypeDescription
caseSensitivebooleanCase-sensitive search (default: false)
fileTypesarrayFile extensions to search (default: ["gd", "tscn", "cs", "gdshader"])
maxResultsintegerMaximum matches to return, an integer of 1 or more (default: 100)
pattern *stringPlain-text string to search for (required; there is no query or regex parameter)
projectPath *stringPath to the Godot project directory
set_node_propertiesSet node properties in a scene in one Godot process. Always-array: one update for a one-off edit. Each value is checked against the property's declared type, never stored as a zero (Property Values in docs/tools.md). A Dictionary or Array value replaces the stored one whole; send every key. Saves once. Returns: results[], one per update in input order, each with success, error or skipped; warnings leads when a value is set but not saved. Errors while a runtime session is live.
ParameterTypeDescription
abortOnErrorbooleanStop processing on first error (default: false)
projectPath *stringPath to the Godot project directory
scenePath *stringScene file path relative to the project
updates *arrayProperty updates to apply
set_project_settingSet one project.godot setting without launching Godot. Pass value (JSON, converted to a Godot literal) or literal (raw Godot text, e.g. "Vector2i(1280, 720)"), not both. Rewrites the last assignment in place or adds key/section; other lines stay byte for byte. Refuses autoload/* (use the autoload tools). Returns: { section, key, value read back, created, sectionCreated, previous? }.
ParameterTypeDescription
key *stringSetting key within the section, e.g. "window/size/viewport_width". Same character set as section.
literalstringRaw Godot literal written as is, on one line, with no trailing comment: "str", 1.5, true, null, [1, 2], {"a": 1} or a constructor such as Vector2i(1, 2) or PackedStringArray("a"). Checked by reading it back as one complete value. Resource(...), Object(...), ExtResource(...) and SubResource(...) are refused: Godot may then fail to load project.godot.
projectPath *stringPath to the Godot project directory
section *stringINI section, e.g. "display" or "application". Letters, digits and _ . - /, no spaces.
valueanyJSON value converted to a Godot literal: a string is quoted, an integer-valued number is an int (write 2 as literal "2.0" for a float), a boolean is true/false, an array becomes [a, b], an object a dictionary. null is not accepted; use literal "null".
set_resource_propertiesSet property values in an existing .tres resource file and save it. Properties not named, sub-resources and uids stay as the file has them. A Dictionary or Array value replaces the stored one whole; send every key. Values are checked against declared types as in set_node_properties (Property Values in docs/tools.md); one invalid name or value errors and writes nothing. Returns: resourcePath, resourceType, scriptPath, the named properties read back. Errors while a runtime session is live.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory
properties *objectProperty values to set, at least one, keyed by property name as written, with the same value rules as set_node_properties. script and resource_path are refused.
resourcePath *stringPath of the .tres file inside the project, e.g. "items/sword.tres".
simulate_inputSend input actions. key, mouse_button, action: omit `pressed` to tap; set it to hold or release. click_element takes a node path or name (see get_ui_elements), not text, and scrolls its target into view. Returns: projectPath, success, results[]: ok, hit, scrolled, signals, `changes`, `watch`, mouse_motion `position` (as delivered), `errors` (spawned only); warnings leads if `errors` is partial. An invalid batch injects nothing; a failure skips the rest. A covered or clipped click is refused.
ParameterTypeDescription
actions *arrayArray of input actions to execute sequentially. Each object must have a "type" field. A batch whose time budget (waits, holds, and every frame counted at 10fps) exceeds ${MAX_INPUT_BATCH_BUDGET_MS / MS_PER_SECOND}s is rejected before anything is injected: split it across calls. ${ACTIONS_PER_CALL_SENTENCE} When results outgrow one reply (about 4 MiB), later entries keep only index, type, ok, frame, elapsed_ms and error, with details_dropped: true; the action still ran.
watcharrayGodot NodePath:property strings sampled after every action and reported per result, e.g. "/root/Main/Player:position". Property subnames are allowed ("/root/Main/Player:position:x"). Read-only; an unresolvable path samples as null instead of failing the batch.
start_profilerStart a profiler capture and return at once, so simulate_input, run_script and screenshots drive the game while it records; timeline and track show where frames drop. Requires run_project with profiling: true. Stops itself after `seconds` (default ${DEFAULT_MAX_SECONDS}, max ${PROFILE_MAX_SECONDS}); read it with stop_profiler. Unattended window: use profile_project. Returns: warnings if any, projectPath, active, visual, timeline, timelineMs, firstFrame, captureLimit, maxSeconds. Errors if a capture is running or profiling was off.
ParameterTypeDescription
captureLimitany
secondsnumberMaximum capture duration before the automatic stop, greater than 0 and at most ${PROFILE_MAX_SECONDS} (default: ${DEFAULT_MAX_SECONDS}).
targetFpsany
timelineany
timelineBucketsany
timelineMsany
timelineTopany
trackany
visualany
stop_profilerStop the start_profiler capture of the current session and rank what it recorded; one that hit its time limit is read back as-is, re-readable with another sort. Times are elapsed, not CPU; inclusive rows overlap, never sum totalMs. Returns: the profile_project payload: warnings first, projectPath, complete (false if cut short), fps, slowFrames, rows, frame, servers, worstFrame, monitors, plus visual and timeline when started with them. Errors if no capture was started.
ParameterTypeDescription
sortany
topany
stop_projectEnd the current session now and remove the bridge, cutting off a runtime call in progress. A spawned Godot is stopped; an attached one is detached, not killed. Other sessions keep running; none becomes current. Also frees a spawned game that exited by itself (alreadyExited). Returns: projectPath, message, sessionMode, externalProcessPreserved, alreadyExited, exitCode, killUnconfirmed, finalOutput, finalErrors; warnings leads if the kill or cleanup was unconfirmed. Errors if nothing is running.
switch_projectPoint the runtime tools (screenshots, input, UI, run_script, debug output, profiling, stop_project) at another project's session. Needed only when several sessions exist; run_project makes its own session current. A session whose game exited can be selected to read its logs or stop it: live is then false and warnings leads. Returns: projectPath, previousProjectPath, live, sessionMode, bridgePort, bridgeResponsive, message. Errors if the project has no session, listing the live ones.
ParameterTypeDescription
projectPath *stringPath to the Godot project directory whose session becomes the current one. check_project lists the live sessions.
take_screenshotSave a PNG of the running viewport under .mcp/godot-runtime/screenshots/ (kept after stop_project). responseMode: preview (default; inline, fits default 960x540, max 1920x1080), full (inline PNG, for small text), path_only (no image). Returns: projectPath, path, size, stats {chromatic, dominant, distinct, likelyBlank} from the full PNG, so a blank frame shows without vision. warnings leads if stats is null or the image is too big to inline. Errors: no session, no frame rendered, bridge timeout.
ParameterTypeDescription
previewMaxHeightnumberHeight in pixels of the box the preview is fitted into when responseMode is "preview". Default: ${DEFAULT_PREVIEW_MAX_HEIGHT}. Maximum: ${PREVIEW_MAX_HEIGHT_LIMIT}; a larger value is clamped to it, not refused.
previewMaxWidthnumberWidth in pixels of the box the preview is fitted into when responseMode is "preview". Default: ${DEFAULT_PREVIEW_MAX_WIDTH}. Maximum: ${PREVIEW_MAX_WIDTH_LIMIT}; a larger value is clamped to it, not refused. Use responseMode "full" for the screenshot at its own size.
responseModestringResponse payload mode. "preview" returns a bounded inline preview plus paths (default). "full" returns the full inline PNG. "path_only" returns paths only. An image file over ${SCREENSHOT_INLINE_MAX_BYTES / BYTES_PER_MEBIBYTE} MiB, or a full PNG that could not be decoded, is not inlined: the path is returned with a leading warning.
timeoutintegerTimeout in milliseconds to wait for the screenshot, a whole number from ${MIN_RUNTIME_TIMEOUT_MS} to ${MAX_RUNTIME_TIMEOUT_MS} (default: ${SCREENSHOT_DEFAULT_TIMEOUT_MS}); a value from ${CLIENT_ANSWER_CEILING_MS + 1} to ${CLIENT_REQUEST_TIMEOUT_MS} is refused, since the answer would not fit a client's ${CLIENT_REQUEST_TIMEOUT_MS / MS_PER_SECOND}s request timeout. Time spent waiting for the session queue comes off it, and a call left with under ${QUEUE_CHARGED_COMMAND_FLOOR_MS} ms is refused with nothing sent. The game gives up on a frame that never renders after ${SCREENSHOT_FRAME_RENDER_BUDGET_MS} ms and reports that; a lower timeout expires first.
update_autoloadChange an existing autoload's path or singleton flag. Pass autoloadPath, singleton or both; errors if neither is given. An omitted field keeps its current value. Use instead of remove_autoload plus add_autoload: one edit, no window where the autoload is missing. No Godot process is used. Returns: autoload { name, path, singleton } read back from project.godot. Errors if autoloadName is not registered, or if the result is a singleton named like a class_name a project script declares.
ParameterTypeDescription
autoloadName *stringName of the autoload to update
autoloadPathstringNew path to the script or scene
projectPath *stringPath to the Godot project directory
singletonbooleanNew singleton flag
validateValidate GDScript syntax or scene integrity in headless Godot. Use before attach_script or run_script. Give exactly one of scriptPath, source or scenePath, or a targets array (one process); an unknown key is an error. checks needs scenePath and instantiates the scene, running each attached script's _init(). Returns: { warnings?, valid, errors } for one target, { warnings?, results: [{ target, valid, errors }] } for targets; an invalid result always has an error.
ParameterTypeDescription
checksarray[single, requires scenePath] Structural and signal-verification checks to run against the scene. Types: "structure" (validate node tree against a schema) and "signals" (verify signal connections and handler methods, optional nodePath scope). Merged into the errors array with a "check" discriminator. Not accepted alongside targets: put checks on the target they belong to.
projectPath *stringPath to the Godot project directory
scenePathstring[single] Path to a .tscn scene file relative to the project to validate (e.g. "scenes/main.tscn")
scriptPathstring[single] Path to a .gd file relative to the project to validate (e.g. "scripts/player.gd"). A file that does not load as a GDScript is reported invalid with a "Not validated" error, since nothing checks it.
sourcestring[single] Inline GDScript source code to validate. Written to a temporary file and validated against the project.
targetsarray[batch] Array of targets to validate in a single Godot process. Each item is an object with exactly one of scriptPath, source or scenePath, or a bare path string (.gd = scriptPath, .tscn or .scn = scenePath). Cannot be combined with the top-level scriptPath, source, scenePath or checks.

Security checks

  • ✓README presentThe repository's README runs to about 1.1K words.

5 checks have not been run yet.

README

The repository's README runs to about 1.1K words. The original in the repository is authoritative.

Read full README
Questions

About Godot MCP Runtime

How do I install Godot MCP Runtime?

In Claude Code, run claude mcp add godot-mcp-runtime -- npx -y godot-mcp-runtime. Other MCP clients take the command after "--" in their server configuration.

Is Godot MCP Runtime safe to use with an AI agent?

Its trust score is 68 out of 100 (good). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Godot MCP Runtime still maintained?

Yes — the last commit was 18 days ago. The repository has 104 stars and 22 forks.

What tools does Godot MCP Runtime provide?

Conduid read 43 tools from the source: add_autoload, add_node, attach_script, batch_scene_operations, check_project, connect_signal, create_resource, create_scene and 35 more. 42 of them publish their parameters, listed under Tools above.