godot-mcp

v0.1.1
@coding-solo/godot-mcp Checked 2 days ago Published 10 months ago

MCP server for interfacing with Godot game engine.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

launch_editor

Launch Godot editor for a specific project

ParameterTypeDescription
projectPath *stringPath to the Godot project directory

run_project

Run the Godot project and capture output

ParameterTypeDescription
projectPath *stringPath to the Godot project directory
scenestringOptional: Specific scene to run

get_debug_output

Get the current debug output and errors

stop_project

Stop the currently running Godot project

get_godot_version

Get the installed Godot version

list_projects

List Godot projects in a directory

ParameterTypeDescription
directory *stringDirectory to search for Godot projects
recursivebooleanWhether to search recursively (default: false)

get_project_info

Retrieve metadata about a Godot project

ParameterTypeDescription
projectPath *stringPath to the Godot project directory

create_scene

Create a new Godot scene file

ParameterTypeDescription
projectPath *stringPath to the Godot project directory
scenePath *stringPath where the scene file will be saved (relative to project)
rootNodeTypestringType of the root node (e.g., Node2D, Node3D)

add_node

Add a node to an existing scene

ParameterTypeDescription
nodeName *stringName for the new node
nodeType *stringType of node to add (e.g., Sprite2D, CollisionShape2D)
projectPath *stringPath to the Godot project directory
scenePath *stringPath to the scene file (relative to project)
parentNodePathstringPath to the parent node (e.g., "root" or "root/Player")
propertiesobjectOptional properties to set on the node

load_sprite

Load a sprite into a Sprite2D node

ParameterTypeDescription
nodePath *stringPath to the Sprite2D node (e.g., "root/Player/Sprite2D")
projectPath *stringPath to the Godot project directory
scenePath *stringPath to the scene file (relative to project)
texturePath *stringPath to the texture file (relative to project)

export_mesh_library

Export a scene as a MeshLibrary resource

ParameterTypeDescription
outputPath *stringPath where the mesh library (.res) will be saved
projectPath *stringPath to the Godot project directory
scenePath *stringPath to the scene file (.tscn) to export
meshItemNamesarrayOptional: Names of specific mesh items to include (defaults to all)

save_scene

Save changes to a scene file

ParameterTypeDescription
projectPath *stringPath to the Godot project directory
scenePath *stringPath to the scene file (relative to project)
newPathstringOptional: New path to save the scene to (for creating variants)

get_uid

Get the UID for a specific file in a Godot project (for Godot 4.4+)

ParameterTypeDescription
filePath *stringPath to the file (relative to project) for which to get the UID
projectPath *stringPath to the Godot project directory

update_project_uids

Update UID references in a Godot project by resaving resources (for Godot 4.4+)

ParameterTypeDescription
projectPath *stringPath to the Godot project directory