Godot Mcp

io.github.tomyud1由 GitHub 帳號 tomyud1 發布v0.6.1更新於 Oct 24, 2026

MCP server for Godot game engine integration — control the Godot editor with AI

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

把 AI 助理連接到執行中的 Godot 4.4+ 編輯器,可直接讀取與修改場景、腳本、節點及專案設定。

可以做什麼
  • 瀏覽專案目錄、讀取檔案、搜尋專案並建立腳本
  • 建立場景,新增、移除、移動節點並設定屬性,掛上腳本,指定碰撞形狀與材質
  • 套用程式碼修改、驗證腳本語法,並在重新命名或移動檔案時更新參照
  • 讀取專案設定、輸入對應、碰撞層、主控台錯誤與場景樹快照
  • 從 SVG 產生 2D 精靈圖,並開啟以瀏覽器呈現的互動式專案圖譜
適用情境
適合在開發或除錯 Godot 遊戲專案時,讓助理直接在編輯器內操作,不必複製貼上程式碼與場景資料。較適用於撰寫腳本、組裝場景與檢視專案,而非在沒有指引下產生完整遊戲。
執行需求
以本機 Node.js 程序透過 npx 啟動,需先安裝 Node.js。需要 Godot 4.4+,並將 Godot MCP 外掛複製到專案的 addons 目錄並啟用,然後重新啟動專案。伺服器透過 6505 埠的 WebSocket 與編輯器通訊,並在 localhost:6510 提供視覺化介面。
安裝前請注意
助理會直接寫入磁碟上的專案檔案,Godot 內建的 Ctrl+Z 無法還原這些變更,需改用 mcp_undo 工具。僅限本機執行,且同一時間只對應一個編輯器實例;助理對 Godot 的了解有限,採用前應檢查其修改。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Godot Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Godot MCP Server

Give your AI assistant full access to the Godot editor.

Build games faster with Claude, Cursor, or any MCP-compatible AI — no copy-pasting, no context switching. The AI reads, writes, and manipulates your scenes, scripts, nodes, and project settings directly inside the running Godot editor.

Godot 4.4+ · 69 tools · Undo/redo · Interactive project visualizer · MIT license


Quick Start

0. Install Node.js (one-time setup)

Download and run the installer from nodejs.org (LTS version). It's a standard installer — no terminal needed.

1. Install the Godot plugin

No cloning or building required — runs directly via npx.

Claude Desktop — edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "godot": {      "command": "npx",      "args": ["-y", "godot-mcp-server"]    }  }}

Cursor — add to MCP settings (Settings → MCP → Add Server):

json
{  "mcpServers": {    "godot": {      "command": "npx",      "args": ["-y", "godot-mcp-server"]    }  }}

Works with any MCP-compatible client (Claude Code, Cline, Windsurf, etc.)

2. Install the Godot plugin

Copy the addons/godot_mcp/ folder from the GitHub repo into your Godot project's addons/ directory. Then enable it: Project → Project Settings → Plugins → Godot MCP → Enable.

Or install it from inside the Godot editor: the Asset Store tab (Godot 4.7+, search "Godlink MCP") or the AssetLib tab (Godot 4.6 and older, search "mcp") → Install.

3. Connect

Restart your Godot project. Check the top-right corner of the editor — you should see MCP: Agent Active in green. You're ready to go.


What Can It Do?

32 Tools Across 6 Categories

CategoryToolsExamples
File Operations4Browse directories, read files, search project, create scripts
Scene Operations11Create scenes, add/remove/move nodes, set properties, attach scripts, assign collision shapes and textures
Script Operations6Apply code edits, validate syntax, rename/move files with reference updates
Project Tools9Read project settings, input map, collision layers, console errors, scene tree dumps
Asset Generation1Generate 2D sprites from SVG
Visualization1Interactive browser-based project map

Interactive Visualizer

Run map_project and get a browser-based project explorer at localhost:6510:

  • Force-directed graph of all scripts and their relationships
  • Click any script to see variables, functions, signals, and connections
  • Edit code directly in the visualizer — changes sync to Godot in real time
  • Scene view with node property editing
  • Find usages before refactoring

[Godot MCP Visualizer]


How It Works

┌─────────────┐    MCP (stdio)    ┌─────────────┐   WebSocket    ┌──────────────┐│  AI Client   │◄────────────────►│  MCP Server  │◄─────────────►│ Godot Editor ││  (Claude,    │                  │  (Node.js)   │   port 6505   │  (Plugin)    ││   Cursor)    │                  │              │               │              │└─────────────┘                  │  Visualizer  │               │  32 tool     │                                 │  HTTP :6510  │               │  handlers    │                                 └──────┬───────┘               └──────────────┘                                        │                                 ┌──────▼───────┐                                 │   Browser     │                                 │  Visualizer   │                                 └──────────────┘

The MCP server connects to the Godot editor via WebSocket through the Godot plugin. The AI never guesses at your project structure — it reads live state directly from the running editor.


Current Limitations

  • Local only — runs on localhost, no remote connections
  • One Godot editor at a time — multiple AI clients can connect concurrently, but they all share a single Godot instance
  • Ctrl+Z does not reach AI changes — the plugin writes to disk rather than the editor's live tree, so Godot's native undo has nothing to revert. Use the mcp_undo tool instead (ask the agent to undo).
  • AI has limited Godot knowledge — it can help debug, write scripts, and build scenes, but can't create a complete game without guidance

Build From Source

bash
git clone https://github.com/tomyud1/godot-mcpcd godot-mcp/mcp-servernpm installnpm run build

Then point your AI client at mcp-server/dist/index.js instead of using npx.


License

MIT


GitHub · Report Issues

來源:mcp-server/README.md,提交 2c1f300

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.6.1最新Oct 17, 2026
  2. v0.6.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分