godot-mcp
Verified Safeby LeeSinLiang
Overview
Enables AI assistants to control and access the Godot game engine for tasks like launching the editor, managing projects, editing scenes, and remote debugging.
Installation
node build/index.jsEnvironment Variables
- GODOT_PATH
- DEBUG
Security Notes
The server executes system commands and spawns Godot processes using `child_process.execAsync` and `child_process.spawn`. Input parameters are passed to Godot scripts as JSON strings, with efforts made to escape quotes for the shell. Path validation (`validatePath`) is present to mitigate basic path traversal. The remote debugging feature connects to local ports (6006/6007) and can execute GDScript via the Debug Adapter Protocol (DAP), posing a risk if the AI input were to be malicious. However, the screenshot feature's GDScript is hardcoded by the server, reducing injection risk there. The primary security model relies on the AI agent being trustworthy and the internal Godot scripts correctly interpreting parameters. The setup scripts (`init.js`, `bin/godot-mcp-init.js`) prompt for paths and perform checks like `existsSync` and `godot --version` validation.
Similar Servers
XcodeBuildMCP
Provides an MCP (Model Context Protocol) server for AI agents and other clients to programmatically build, test, run, and debug iOS and macOS applications, manage simulators/devices, and capture logs.
cocos-mcp-server
Enables AI assistants to interact with the Cocos Creator editor through a Model Context Protocol (MCP) server, providing control over scene, node, component, asset, and project operations.
Unreal_mcp
High-performance bridge and automation server for Unreal Engine, enabling programmatic control, data processing, and asset authoring through a WebSocket API and optional WebAssembly acceleration.
gdai-mcp-plugin-godot
The plugin enables AI models to directly control and automate tasks within the Godot Game Engine editor, such as scene creation, node manipulation, script editing, and debugging.