Godot MCP (Model Context Protocol Server), released by Coding-Solo, is a tool that bridges AI assistants with the Godot Engine. Through the MCP protocol, it can launch the Godot editor, run projects, capture debugging information, and deeply control project structure and scenes.
This mechanism provides a real feedback loop for AI assistants (such as Claude, Cline, Cursor), enabling them to actually manipulate projects, debug issues, and generate high-quality GDScript code.
Launch Editor and Run Project Supports the following via command line:
Project Structure Acquisition and Analysis
Scene and Node Management
Debugging and Version Management
Compatible with Multiple AI-Assisted Tools
Single GDScript "Operation Script"
All complex commands (such as creating nodes, exporting scenes, etc.) are managed by a single godot_operations.gd
, avoiding the generation of individual temporary scripts, ensuring simplicity and efficiency, and reducing disk I/O and potential errors.
CLI and Script Combination Mechanism Simple commands are executed directly through the Godot CLI, while complex operations are handled through GDScript scripts. Both are transmitted via the MCP standard using JSON instructions, providing a unified structure that is easy to extend.
Standardized Response Structure All operations return a uniform format: status, result content, standard output/error, making it easier for AI to analyze, learn, and automatically generate modification suggestions.
Installation and Build
git clone https://github.com/Coding-Solo/godot-mcp.git
cd godot-mcp
npm install
npm run build
Configure AI Tools
cline_mcp_settings.json
Run and Interact
AI command examples:
launch_editor
: Launch the editorrun_project
: Execute the project and get the outputcreate_scene
/ add_node
: Create a scene/nodeget_debug_output
/ stop_project
: Debugging control commandsget_uid
/ update_project_uids
: UID managementAdvantage | Description |
---|---|
🌟 High Automation | AI assistants directly control the editor/project without manual intervention |
🚫 No Temporary Files | Uses a single GDScript entry point, lightweight and efficient |
♻️ Supports Version & UID | Compatible with Godot 4.4+ features, can manage resource UIDs |
🛠️ Easy to Extend & Integrate | MCP standard facilitates adding new features and is compatible with multiple AI tools |
Godot MCP is a powerful and practical tool that bridges AI assistants and the Godot Engine. AI can directly:
With a unified protocol and GDScript operation script, it provides a clear, standard, and extensible automation interface, making it a powerful tool for game developers to improve efficiency and intelligent development processes.