Godot MCP Gateway
A local control plane that lets multiple AI coding agents share one Godot editor through independent MCP sessions, with ordered writes, playtest access, and LSP routing.
README
Godot MCP Gateway
One Godot editor, multiple AI coding agents.
Godot MCP Gateway is a local control plane that lets Codex, Claude Code, OpenCode, Pi, and other MCP clients share a single Godot editor safely. Each client keeps an independent MCP session while one machine-wide Gateway owns editor discovery, request routing, write scheduling, playtest access, the Godot LSP connection, and reconnects.
Project status: early development. The v1 Gateway topology, heterogeneous batch execution, and editor activity UI are implemented, but the project has not yet published a stable release.
Why a Gateway?
Most Godot MCP integrations start one server and claim one editor port for every AI client. That model becomes fragile when several agents work on the same project. This project separates agent sessions from the editor connection:
Codex -------- stdio shim --\
Claude Code -- stdio shim ---+-- local IPC -- Gateway -- WebSocket -- Godot Editor
OpenCode ----- stdio shim ---/ |-- Playtest Runtime
Pi ----------- stdio shim --/ `-- Godot LSP
The Godot plugin connects outward to the Gateway. Agents never claim Godot port pools or connect directly to the editor.
Highlights
- Multi-agent sessions: every MCP client has its own identity, lifecycle, and activity stream.
- One editor connection: the Gateway owns editor, runtime, and LSP routing.
- Ordered writes: editor mutations from different agents are scheduled FIFO.
- Cross-tool batches:
batchruns heterogeneous MCP tools sequentially, stops on failure, and prevents other agents' writes from interleaving. - Visible operations: the Godot Dock shows connected agents, queued and running work, batch progress, and recent results.
- Editor focus: successful mutations can select and focus the affected node.
- Full toolkit base: the upstream Godot tool catalogue remains available through the Gateway architecture.
Requirements
- Godot 4.2 or newer
- Node.js 22 or newer
- npm
Run from source
Clone and build the repository:
git clone https://github.com/di404/godot-mcp-gateway.git
cd godot-mcp-gateway
npm install
npm run build
Copy addons/godot_mcp_gateway/ into your Godot project's addons/ directory,
then enable Godot MCP Gateway under Project Settings → Plugins.
Start the machine-wide Gateway in a terminal and leave it running:
npm run start:gateway
Configure each MCP client to launch its own stdio shim. Replace
/absolute/path/to/godot-mcp-gateway with the clone's absolute path:
{
"mcpServers": {
"godot-mcp-gateway": {
"command": "node",
"args": [
"/absolute/path/to/godot-mcp-gateway/packages/server/dist/index.js",
"stdio"
],
"env": {
"GODOT_MCP_PROJECT_PATH": "/absolute/path/to/your-godot-project"
}
}
}
}
If the MCP client starts in the Godot project root,
GODOT_MCP_PROJECT_PATH can be omitted. Set GODOT_MCP_AGENT_NAME to override
the agent label shown in the Dock.
Batch example
The batch tool accepts ordinary registered tool calls:
{
"calls": [
{
"tool": "scene_get_tree",
"arguments": { "max_depth": 1 }
},
{
"tool": "project_get_settings",
"arguments": { "prefix": "application/" }
}
]
}
Calls run in order through the normal validation and tool pipeline. Execution
stops at the first failed or cancelled step, and remaining steps are marked
skipped. Nested batches and output references are not supported in v1.
Repository layout
addons/godot_mcp_gateway/— Godot editor plugin, tool handlers, and Dock.packages/server/— Gateway process, stdio MCP surface, IPC, tool catalogue, scheduling, runtime routing, and LSP ownership.docs/— architecture, protocol, contributor, compatibility, and local testing documentation.
The repository root is also a small Godot project for developing and exercising the plugin. Start with the documentation index for deeper guides.
Current v1 boundaries
- One Gateway accepts one Godot editor and one active playtest runtime.
- The Gateway is started manually and runs in the foreground.
- A batch is failure-stop, with each mutation retaining its own Undo step.
- Nested batches and step-output references are intentionally deferred.
Attribution and license
This project is an active fork of NPGameDev's Godot MCP Toolkit and Godot MCP Server. Their mature tool catalogue and editor integration form the feature base; this fork changes the connection topology around them.
Source code is available under the MIT License. See ATTRIBUTIONS.md for preserved upstream notices and third-party acknowledgements. Inherited upstream artwork is development material and is not licensed as this fork's independent brand asset; replace it before distributing a branded release.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。