百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

Godot-MCP

> AI 编程
开源

Godot-MCP — 适用于 Godot 引擎的 Model Context Protocol (MCP) 集成。用于 Godot 编辑器的 AI 工具,支持 C# 语言,并可通过云端连接到 ai-game.dev。Apache-2.0

199 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

Godot-MCP — 适用于 Godot 引擎的 Model Context Protocol (MCP) 集成。用于 Godot 编辑器的 AI 工具,支持 C# 语言,并可通过云端连接到 ai-game.dev。Apache-2.0

Godot MCP is an AI-powered game development assistant for the Godot Editor. Connect Claude, Cursor, Copilot, or any MCP-aware agent to Godot and let it inspect and drive your project — create nodes, edit scenes, manage resources and scripts, capture screenshots, and more.

Godot-MCP is the Godot counterpart of Unity-MCP: a C# editor addon that exposes Godot Editor operations as AI Tools and connects them to an MCP server through the same hosted cloud backend (ai-game.dev) that powers Unity-MCP — or your own self-hosted server. The MCP / reflection stack is not forked: it is shared with Unity-MCP and consumed from nuget.org as PackageReferences.

Join our Discord Server — Ask questions, showcase your work, and connect with other developers!

  • ✔️ AI agents — Use the best agents from Anthropic, OpenAI, Google, or any other provider with no vendor lock-in
  • ✔️ 42 built-in Tools — A wide range of MCP Tools across 12 families for operating the Godot Editor
  • ✔️ C# & GDScript — Read, create, and update both .cs and .gd scripts, and attach them to nodes
  • ✔️ Scene & Node control — Build and edit the scene tree, open/save .tscn scenes, mutate .tres/.res resources
  • ✔️ Visual feedback — Capture viewport, camera, and isolated-node screenshots the LLM can inspect
  • ✔️ Reflection escape hatch — Find and call any C# method across loaded assemblies via ReflectorNet
  • ✔️ Cloud or self-hosted — Connect to ai-game.dev out of the box, or point at your own server
  • ✔️ Natural conversation — Chat with AI like you would with a human

Quick Start

Get up and running from a terminal using the godot-cli (the Godot analog of unity-mcp-cli) — no manual file copying or csproj editing required:

…

That's it. Ask your AI "Create 3 cubes in a circle with radius 2" and watch it happen. ✨

Offline / dev install: install-plugin --source /addons/godot_mcp copies the addon from a local directory instead of downloading it. Prefer the matching release version with install-plugin --version if you need a specific addon build. The manual route (copy the addon + add the NuGet packages yourself) is still documented under Installation Steps 1–2 for the Asset Library / hand-managed flows.

See the full CLI documentation for every command, editor-resolution order, and connection env vars.

Contents

  • Quick Start
  • Tools Reference
  • Requirements
  • Installation
    • Step 1: Add the addon
      • Option A — Godot Asset Library (recommended)
      • Option B — GitHub Release zip
      • Option C — copy from source
    • Step 2: Add the NuGet packages
    • Step 3: Install an AI agent
  • Connect
    • Cloud mode (default) — ai-game.dev
    • Custom mode — your own server
  • Godot MCP Server setup
    • Local server — let the addon download & run it for you
    • Build & run the server manually (advanced)
  • Customize Tools
  • Runtime usage (in-game)
    • Capturing in-game runtime errors
    • Sample: a live game-state tool
    • Where the server URL and token come from
    • Security: opt-in only, default OFF
  • How Godot MCP Architecture Works
  • Building & contributing
  • License

Tools Reference

Godot-MCP ships 42 built-in tools grouped into 12 families. Tool names mirror Unity-MCP where sensible (scene-*, node-*, …). Every tool returns a structured, ReflectorNet-serialized result (or a PNG image for screenshots). All editor tools are available immediately after the addon is enabled — no extra configuration required. The runtime-errors family is the exception: it surfaces errors from the running game and is OFF by default — opt in with builder.WithRuntimeErrorCapture() (see Capturing in-game runtime errors).

Family Tools What it does
ping ping Lightweight readiness probe — echoes a message back, or returns pong. Verifies the end-to-end MCP path (editor → SignalR → tool dispatch). System tool — reachable over the server's /api/system-tools/ HTTP surface, not advertised to AI agents in tools/list.
node node-find, node-create, node-modify, node-set-parent, node-reorder, node-duplicate, node-delete Inspect and edit the active scene tree (the Godot analog of Unity GameObjects), driving EditorInterface on the main thread. Child order — which is layout order in a VBoxContainer/HBoxContainer — is settable both on creation (node-create's index) and afterwards (node-reorder).
scene scene-open, scene-save, scene-create, scene-list-opened, scene-get-data Open, save, create, and inspect Godot scenes (res://*.tscn PackedScenes) in the editor.
resource resource-find, resource-get-data, resource-modify, resource-create, resource-move, resource-delete Find and mutate Godot resources (.tres/.res) through ResourceLoader/ResourceSaver/EditorFileSystem, keeping .import sidecars consistent.
filesystem filesystem-list, filesystem-reimport Browse and reimport the project's res:// tree via the editor EditorFileSystem index (file types + uids without loading resources).
script script-read, script-create, script-update, script-delete, script-attach-to-node, script-validate CRUD on C# (.cs) and GDScript (.gd) files, plus attaching a script to a node and validating GDScript.
screenshot screenshot-viewport, screenshot-camera, screenshot-isolated Capture the editor viewport, a specific camera, or an isolated node render, returned as a PNG image the LLM can inspect.
editor editor-application-get-state, editor-application-set-state, editor-selection-get, editor-selection-set Read/drive the editor run-and-play lifecycle (Godot launches the game in a separate process) and the current selection.
console console-get-logs, console-clear-logs Read and clear the plugin's editor log collector (GD.Print/GD.PushWarning/GD.PushError).
reflection reflection-method-find, reflection-method-call Find and call C# methods (static/instance, public/private) across every loaded assembly via ReflectorNet — the engine-agnostic escape hatch.
skills godot-skill-create, godot-skill-generate Author a new MCP tool as a C# file in the project, and regenerate the SKILL.md files from the tools the editor currently has registered. System tools — reachable over the server's /api/system-tools/ HTTP surface (like ping), not advertised to AI agents in tools/list.
runtime-errors runtime-errors-get, runtime-errors-clear Poll errors raised inside the running game (NOT the editor) — GDScript runtime errors, push_error/push_warning, shader errors, and C# unhandled / unobserved-Task exceptions, with multi-frame GDScript backtraces on Godot 4.5+. OFF by default — opt in with builder.WithRuntimeErrorCapture().

ping

  • ping — Lightweight readiness probe; echoes a message back, or returns pong. A System tool: call it over /api/system-tools/ping (or godot-cli run-system-tool ping); it is not listed in tools/list.

node

  • node-find — Find nodes in the active scene tree by path, type, or name.
  • node-create — Create a new node under a parent (optionally instancing a .tscn sub-scene), optionally at a specific sibling index (negative counts from the end).
  • node-modify — Set fields/properties on one or more nodes.
  • node-set-parent — Reparent nodes within the scene tree.
  • node-reorder — Move an existing node to a different position among its siblings (Node.MoveChild) — the only way to rearrange an existing scene short of delete-and-recreate.
  • node-duplicate — Duplicate nodes together with their subtrees.
  • node-delete — Delete nodes from the active scene.

scene

  • scene-open — Open a res://*.tscn PackedScene in the editor.
  • scene-save — Save an open scene back to its .tscn file.
  • scene-create — Create a new scene asset in the project.
  • scene-list-opened — List the scenes currently open in the editor.
  • scene-get-data — Retrieve the root nodes / structure of a scene.

resource

  • resource-find — Search the project for resources (.tres/.res).
  • resource-get-data — Read a resource's serialized fields and properties.
  • resource-modify — Modify a resource's properties.
  • resource-create — Create a new resource asset.
  • resource-move — Move / rename a resource, keeping .import sidecars consistent.
  • resource-delete — Delete a resource from the project.

filesystem

  • filesystem-list — Browse the res:// tree (file types + uids) via the editor file index.
  • filesystem-reimport — Reimport files in the project.

script

  • script-read — Read a .cs / .gd script file.
  • script-create — Create a new script file.
  • script-update — Update an existing script file's contents.
  • script-delete — Delete a script file.
  • script-attach-to-node — Attach a script to a node.
  • script-validate — Validate GDScript (.gd) files and return structured parse/compile diagnostics.

screenshot

  • screenshot-viewport — Capture the editor viewport as a PNG.
  • screenshot-camera — Capture from a specific camera.
  • screenshot-isolated — Render a node in isolation from a chosen angle.

editor

  • editor-application-get-state — Read the editor application/run state.
  • editor-application-set-state — Start / stop the running game.
  • editor-selection-get — Get the current editor selection.
  • editor-selection-set — Set the current editor selection.

console

  • console-get-logs — Read the plugin's collected editor logs (with filtering). This includes the plugin's connection lifecycle diagnostics (connect/disconnect, drain-timeout, config save/load, skill-gen, dev-control, dispatcher, and runtime-capture warnings), which route through the same capture sink as its framework logs.
  • console-clear-logs — Clear the collected log cache.

reflection

  • reflection-method-find — Find C# methods (including private) across every loaded assembly.
  • reflection-method-call — Call any C# method with input parameters and get the result.

runtime-errors (in-game; OFF by default — enable with builder.WithRuntimeErrorCapture())

  • runtime-errors-get — Read captured in-game runtime errors (oldest-first, newest-kept page); poll only new errors via sinceSequence. Returns available:false when capture was never enabled, so an empty list is never mistaken for health.
  • runtime-errors-clear — Clear the captured in-game runtime-error buffer (a no-op when capture is not enabled); the monotonic sequence counter is preserved.

skills (system tools — served on

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#aiai-integrationai-toolsanthropic

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.