Godot MCP Server provides a bridge between AI assistants and the Godot game engine, enabling direct interaction with game projects and the editor. This server allows AI assistants to launch the editor, run projects, capture debug output, and control project execution through a standardized Model Context Protocol interface. By creating a direct feedback loop between AI assistants and Godot, this tool helps assistants understand what works in real Godot projects, leading to better code generation and debugging assistance. The server supports a comprehensive set of features for game development workflows, including scene management, project analysis, and UID handling.
The Godot MCP Server enables AI assistants to interact directly with the Godot game engine through a standardized Model Context Protocol (MCP) interface. This server bridges the gap between AI assistants and game development, allowing for more effective collaboration and assistance.
Before installing the Godot MCP Server, ensure you have:
Clone the repository:
git clone https://github.com/Coding-Solo/godot-mcp.git
Navigate to the project directory:
cd godot-mcp
Install dependencies and build the server:
npm install
npm run build
Add the Godot MCP Server to your Claude MCP settings file (located at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/absolute/path/to/godot-mcp/build/index.js"],
"env": {
"DEBUG": "true"
},
"disabled": false,
"autoApprove": [
"launch_editor",
"run_project",
"get_debug_output",
"stop_project",
"get_godot_version",
"list_projects",
"get_project_info",
"create_scene",
"add_node",
"load_sprite",
"export_mesh_library",
"save_scene",
"get_uid",
"update_project_uids"
]
}
}
}
godot
(or any name you prefer)command
node /absolute/path/to/godot-mcp/build/index.js
The Godot MCP Server provides the following tools:
launch_editor
: Open the Godot editor for a specific projectget_godot_version
: Retrieve the installed Godot versionlist_projects
: Find Godot projects in a specified directoryget_project_info
: Get detailed information about project structurerun_project
: Execute Godot projects in debug modeget_debug_output
: Retrieve console output and error messagesstop_project
: Stop a running Godot projectcreate_scene
: Create new scenes with specified root node typesadd_node
: Add nodes to existing scenes with customizable propertiesload_sprite
: Load sprites and textures into Sprite2D nodesexport_mesh_library
: Export 3D scenes as MeshLibrary resources for GridMapsave_scene
: Save scenes with options for creating variantsget_uid
: Get UID for specific filesupdate_project_uids
: Update UID references by resaving resourcesI need to open my Godot project in the editor.
Can you run my Godot project and show me the debug output?
I'd like to create a new 2D scene with a Sprite2D as the root node.
Please add a CollisionShape2D node to my player scene.
If you encounter issues with the Godot MCP Server:
DEBUG=true
For more detailed information, visit the GitHub repository.