Godot MCP
by vberai
README.md
# Godot MCP (Server-Sent Events) - Cursor, Claude and Windsurf Connector
English | [δΈζ](./README_zh.md)
[](https://github.com/DaxianLee/godot-mcp)
[](https://github.com/DaxianLee/godot-mcp)
[](https://godotengine.org)
[](https://modelcontextprotocol.io/)
[](https://opensource.org/licenses/MIT)
[](https://www.vberai.com)
An out-of-the-box, **zero-dependency** Model Context Protocol (MCP) server integration designed specifically for the **Godot Engine (4.x)**.
> **π’ Notice on Organization Migration & Trust**
>
> This repository (`vberai/godot-mcp`) is the **official organizational home** of the highly popular `godot-mcp` plugin, originally created by our co-founder and lead developer [@DaxianLee (Original repository: DaxianLee/godot-mcp, trusted by 460+ stars and 50+ forks)](https://github.com/DaxianLee/godot-mcp).
>
> We have migrated active development here under the **VberAI** brand to ensure long-term maintenance, continuous feature upgrades (such as multi-IDE one-click setup helpers), and deeper engine integrations. **It is and will always remain 100% free and open-source!**
---
## β¨ Zero-Dependency & Built-in GUI Setup
Most MCP plugins force you to install Node.js/NPM, compile TS files, and configure terminal routers. `godot-mcp` works differently:
* **Zero CLI Friction**: Runs entirely inside your Godot Editor via a lightweight built-in HTTP server.
* **One-Click IDE Configuration**: Includes an in-editor docking panel that can instantly write configuration files for **Cursor** or **Trae** with a single click, or copy the exact CLI installation config strings for **Claude Desktop / Claude Code**.
* **Visual Control Hub**: Switch tools, monitor local server live-logs, and control connection ports (Default: `3000`) directly within Godot's UI interface.
```text
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β [ Godot Editor Panel ] β
β βββββββββββββββββ ββββββββββββββββββ βββββββββββββββββ β
β β Server Logs β β Tools Status β β Config (IDE) β β
β βββββββββββββββββ΄ ββββββββββββββββββ΄ ββββββββββββββββ€ β
β β Host IP: 127.0.0.1 [Start Server] [Stop] β β
β β Selected IDE: [ Cursor / Trae / Claude Desktop ] β β
β β >> [ONE-CLICK CONFIG] << β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
---
## π§° Supported MCP Tools (API Registry)
Once connected, your AI agents (Claude, Cursor, Trae, ChatGPT) gain access to a powerful set of tools to interact with your active Godot project directory. The server exposes the following functions:
<p align="center">
<img src="assets/images/en/tools.png" alt="Godot MCP supported tools" width="800"/>
</p>
### π Workspace & Scene Management
* `scene_create(path, root_node_type)`: Generates a new `.tscn` scene resource programmatically.
* `scene_open(path)`: Automatically opens, matches, and focuses the viewport on a target scene in the editor.
* `scene_save()`: Triggers a live-saving event of the current working scene.
* `get_scene_tree(path)`: Exposes the full, parsed node tree structure of a target scene to the LLM context.
* `get_scene_info(path)`: Returns metadata, external dependencies (resources), and inspector details of a scene.
### π Script Refactoring & Editing
* `read_gdscript(path)`: Safely loads any `.gd` file into the AI's window for inspection.
* `write_gdscript(path, code)`: Writes or modifies full GDScript code, fully supported with auto-formatting and syntax validation.
* `modify_gdscript(path, modifications)`: Appends, replaces, or structures specific blocks of an active GDScript without rewriting the entire file.
### βοΈ Engine State & Execution
* `get_godot_state()`: Fetches global editor context, window structures, selected nodes, and active build options.
* `execute_editor_command(command)`: Allows the agent to instruct the parent system to build project files, compile assets, or run/stop the active game scene.
---
## π¬ Demo
<p align="center">
<img src="assets/video/video.gif" alt="Godot MCP demo" width="800"/>
</p>
---
## β‘ Quick Start (60-Second Setup)
### 1. Enable the Godot Addon
1. Copy the `addons/godot_mcp` folder into your Godot project's `res://addons/` directory.
2. In Godot, navigate to **Project -> Project Settings -> Plugins** and check the **Enable** box for **Godot MCP Server**.
<p align="center">
<img src="assets/images/en/enable.png" alt="Enable Godot MCP plugin in Project Settings" width="800"/>
</p>
### 2. Start the MCP Server
1. Open the **GodotMCP** panel in the editor dock.
2. Click **Start Server** and confirm the server is running on port `3000`.
<p align="center">
<img src="assets/images/en/start.png" alt="Start Godot MCP server from the editor panel" width="800"/>
</p>
### 3. Live Setup Your Favorite Client
#### Option A: Cursor / Trae (Dynamic Built-in Panel Setup)
1. Locate the **GodotMCP** panel on your editor docks (usually bottom-right or right panel).
2. Go to the **Config** tab.
3. Click **One-Click Config**. The plugin will locate your local IDE configuration files and register the server block instantly.
<p align="center">
<img src="assets/images/en/IDE-config.png" alt="One-click IDE configuration in Godot MCP panel" width="800"/>
</p>
#### Option B: Claude Desktop Configuration
Copy the configuration below to your `claude_desktop_config.json` manually if desired:
```json
{
"mcpServers": {
"godot-mcp": {
"command": "curl",
"args": ["-s", "http://127.0.0.1:3000/mcp"],
"transport": "http"
}
}
}
```
---
## π The VberAI Ecosystem
While **Godot MCP** is 100% free and open-source under the MIT license, we specialize in building professional AI-native game design environments. If you are developing on other platforms or need enterprise-class automated workspaces, explore our customized pro-grade engines:
| Engine / Suite | Product | License / Edition | Details & Store |
| :--- | :--- | :--- | :--- |
| **Godot Engine** | **Godot MCP** | π’ **Open-Source (MIT)** | Free forever, community-driven workflow |
| **Unity Engine** | **Unity MCP Pro** | π‘ Commercial | Custom memory routing, specialized agent bindings |
| **Cocos Creator**| **Cocos MCP Pro** | π‘ Commercial | Optimizations for Web, H5, and WeChat Mini-games |
| **VberAI Studio** | **VberAI Studio (SaaS)** | π Subscription | Complete agent-native studio managing assets & design |
Learn more and start your free trials at [vberai.com](https://www.vberai.com).
---
## π€ Support & Development
We highly encourage community bug reports and pull requests!
* If you encounter an issue or want to suggest new Godot API tools, please open an [Issue](https://github.com/vberai/godot-mcp/issues).
* For corporate inquires and licensing regarding Cocos/Unity products, email us at: info [at] vberai.com.
---
## π License
This repository is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
<p align="center">
<img src="https://img.shields.io/github/stars/DaxianLee/godot-mcp?style=for-the-badge&color=blue" alt="Stars">
<img src="https://img.shields.io/github/license/DaxianLee/godot-mcp?style=for-the-badge" alt="License">
<a href="https://vberai.com"><img src="https://img.shields.io/badge/Official_Website-VberAI-purple?style=for-the-badge" alt="VberAI Website"></a>
<a href="https://t.me/+8618827755984"><img src="https://img.shields.io/badge/Telegram-Join_Community-2CA5E0?style=for-the-badge&logo=telegram" alt="Telegram"></a>
</p>
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues