Godot MCP Connector

Godot MCP Connector

An out-of-the-box, zero-dependency Model Context Protocol (MCP) server integration designed specifically for the Godot Engine (4.x).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.

Category
访问服务器

README

Godot MCP (Server-Sent Events) - Cursor, Claude and Windsurf Connector

English | 中文

Original Stars Original Forks Godot Engine MCP Standard License: MIT Host: VberAI

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).

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.
┌────────────────────────────────────────────────────────┐
│ [ 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:

{
  "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.


🤝 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.
  • 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 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>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选