
Funplay Godot MCP
io.github.FunplayAI由 GitHub 账号 FunplayAI 发布v0.10.1更新于 Oct 24, 2026
stdio bridge for the local Godot Editor MCP server from FunplayAI/funplay-godot-mcp.
概览
一个本地 stdio 桥接服务,把 AI 助手连接到正在运行的 Godot 编辑器,通过编辑器工具构建场景、脚本、UI 和玩法。
- 可以做什么
- 查看和编辑场景与节点:读取场景树,创建、复制、重设父级或删除节点,设置属性和变换,保存或实例化场景。创建、编辑、修补和校验脚本,并按项目语言提供 GDScript 与 .NET 工具。构建 UI 与玩法:Control 层级、标签、按钮、面板、主题覆盖、信号、动画、相机和材质。运行并测试游戏:进入和退出播放模式、模拟输入、截取视图、检查断言、日志和性能。管理项目设置、输入动作、自动加载、文件、项目地图和重构计划,并可通过 execute_code 执行任意 GDScript。
- 适用场景
- 适合让助手在打开的 Godot 4.2+ 项目中工作:搭建场景和 HUD、生成或修补脚本、连接信号,并在播放模式下验证行为,无需切换工具。
- 运行要求
- 本地 Godot 4.2+ 项目,已启用 Funplay MCP 插件并启动其服务器(默认 stdio 包装器需要 Node.js。需将 Funplay MCP 面板中的项目认证令牌设置为 FUNPLAY_GODOT_MCP_TOKEN(或 GODOT_MCP_TOKEN);FUNPLAY_GODOT_MCP_URL 可覆盖端点。仅限桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 Funplay Godot MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Funplay MCP for Godot
The Most Advanced MCP Server for Godot Editor
[Godot 4.2+] [License: MIT] [MCP Compatible] [Editor Only]
Godot Asset Store · 中文 | English
💖 If you find this project useful, please consider giving it a Star. It helps more Godot developers discover it and supports ongoing development.
Funplay MCP for Godot is an MIT-licensed Godot Editor MCP server that lets AI assistants like Claude Code, Cursor, Windsurf, Codex, and VS Code Copilot operate directly inside your running Godot project.
The addon works in standard Godot 4.2+ projects and is also usable in Godot .NET projects. The current implementation is GDScript-based, and the exported script tools are language-aware: GDScript projects see GDScript workflows, .NET projects see C#/.NET workflows, and mixed projects expose both where useful.
Describe your game or tool in one sentence — your AI assistant builds it in Godot through Funplay MCP for Godot’s built-in tools for scene creation, script generation, UI authoring, play-mode validation, input simulation, animation setup, camera control, performance inspection, and editor automation.
"Build a top-down shooter HUD with health, ammo, pause menu, and hit flash feedback"
Your AI assistant handles it through Funplay MCP for Godot: creates the scene structure, generates scripts, builds the Control tree, wires signals, configures animations, and validates the workflow — all from a single prompt.
Quick Start
If you just want to get connected fast, do these three things:
- Open the project or copy
addons/funplay_mcpinto your own Godot project - Enable the plugin and start the MCP server
- Use the built-in one-click client configuration
1. Install the addon
You can either:
- install it from the Godot Asset Store,
- download
Funplay.GodotMcp.vX.Y.Z.zipfrom the latest GitHub Release and extract it into your project root, - clone this repository and open it directly as a Godot project, or
- copy
addons/funplay_mcpinto your own Godotres://addons/directory
💡 Before you clone or install, a quick ⭐ on GitHub would be greatly appreciated.
2. Enable and start the MCP Server
In Godot:
- open Project → Project Settings → Plugins
- enable Funplay MCP for Godot
- use the Funplay MCP dock on the right side
The server starts on http://127.0.0.1:8765/ by default.
If that port is already occupied, it automatically picks another free local port and saves it to user://funplay_mcp_settings.cfg.
Local MCP POST requests require the per-project auth token stored in user://funplay_mcp_settings.cfg; the dock writes it into generated stdio client configs automatically.
Authenticated clients can run high-impact editor tools, including execute_code; keep the server enabled only while working with trusted local clients and leave safety checks on unless you intentionally need to override them.
The dock also shows the installed addon version and includes a Check Updates action that opens the latest GitHub Release when a newer version is available.
Use the Language selector at the top of the dock to switch between English and Simplified Chinese. The choice is saved in user://funplay_mcp_settings.cfg and restored the next time the project opens.
3. Configure Your AI Client
Use the built-in One-Click MCP Configuration in the Funplay MCP dock first.
Select your target client, click Configure, and the addon writes the recommended MCP config entry for you.
Use Configure + Skills when you also want the addon to generate project-local skill files under res://.funplay/skills/ and an AGENTS.md bridge for AI clients that read repository instructions.
If Godot had to pick a different port, use the endpoint shown in the dock. If you prefer to edit config files manually, use the examples below as fallback references:
Claude Code / Claude Desktop
Cursor
VS Code
Codex
Optional stdio wrapper
Most clients can connect directly to the addon over HTTP. Integral JSON-RPC response IDs within Godot's signed 64-bit range are serialized as integers, preserving compatibility with clients that distinguish integers from floating-point numbers. IDs outside that range retain their existing representation. For clients or registries that prefer stdio packages, this repository also includes an npm-ready wrapper under stdio-wrapper/.
The wrapper limits each HTTP request, including its response body, to 60 seconds so a stalled request cannot block later messages indefinitely.
To install the published wrapper, use npm install -g [email protected] instead of npm link.
Example MCP client entry:
4. Verify the Connection
Open your AI client and try a few safe requests first:
- "Call
get_scene_infoand tell me what scene is open." - "Read
godot://project/contextand summarize the current editor state." - "Use
execute_codeto return the active scene name."
If those work, the MCP server, resources, and primary execution tool are connected correctly.
5. Start Building
Open your AI client and try: "Create a 2D HUD with health bar, score label, and pause button"
Before You Start
- This addon is Editor-only. It does not add runtime components to your exported game.
- The MCP server starts on
http://127.0.0.1:8765/by default. If the same project already owns that port, the dock attaches to it; otherwise it falls back to another free local port. - Local MCP server settings are stored in
user://funplay_mcp_settings.cfg. - The language selector localizes the Dock UI only; MCP tool names, protocol fields, and generated client configuration identifiers remain stable in English for compatibility.
- The addon defaults to the
coreMCP tool profile to reduce tool-list noise for AI clients. Switch tofullin the dock if you want the complete tool surface. - The dock includes a Tool Exposure panel for disabling individual tools within the active profile, plus optional debug logging and
execute_codesafety toggles. execute_codesafety checks are on by default for common process, filesystem, and project-setting mutations. A reviewed call can passsafety_checks=false.- Play-mode requests are deferred until after the MCP response is sent and repeated calls are idempotent. Projects configured for more than one run instance must pass
allow_multiple_instances=true; userestart_if_running=trueonly for an intentional restart, then inspectget_play_statefor the confirmed transition. - The dock can check GitHub Releases for newer addon versions and surface whether release zip, manifest, SHA256, and
server.jsonartifacts are present. - Focused MCP tools run directly. There is no extra approval toggle inside the addon.
- The built-in dock can copy or write recommended MCP config entries for Codex, Claude Code, Cursor, and VS Code.
Why This Project
execute_codeFirst — The addon is optimized around one high-flexibility GDScript execution tool for rich editor/runtime orchestration, now with default-on safety checks for risky snippets- Tool Exposure Control — Toggle individual tools from the Godot dock without editing addon code or restarting the project
- Dock Dashboard — See server state, tool exposure, runtime bridge heartbeat, release readiness, and project map actions inside Godot
- Bilingual Dock UI — Switch Dock controls, tooltips, and operational status between English and Simplified Chinese with a persisted per-project preference
- Project Skills — Generate project-local AI guidance files that capture the current endpoint, tool profile, project context, and recommended Funplay workflow
- Tool Catalog & Help — Query grouped tool catalogs, capability gates, workflow coverage, and task-specific guidance from MCP
- Project Map & Templates — Inspect scenes, scripts, functions, signals, usage links, a searchable browser graph, and dry-run script refactor plans
- Runtime Bridge — Optionally install a lightweight autoload for play-mode heartbeat, scene-tree snapshots, node queries, runtime screenshots, input injection, and event history
- Safe Play Mode Automation — Queue and confirm idempotent start/stop transitions, explicitly opt in to multi-instance runs, simulate input, inspect logs, and validate behavior from the same MCP session
- Project Context Built In — Exposes live resources for project state, active scene, selection, play state, script errors, logs, and MCP interaction history
- Focused by Default, Full When Needed —
coreexposes a compact high-signal toolset;fullexposes a broader editor automation surface - Single Godot Addon — No extra approval UI, no external Python daemon required for the Godot-side plugin itself
- Extensible — Add more Godot-specific tools, resources, prompts, and workflow helpers as the repo evolves
Highlights
- 129 Built-in Tools — Scene editing, PackedScene workflows, language-aware script tools, project maps, script refactor planning, project settings, asset import plans, input map, autoloads, runtime bridge, undo/redo, workflow guidance, files, project skills, play mode control, UI controls, animation, camera, performance, resources, prompts, and editor automation
- Resources & Prompts — Live project context, dashboard status, JSON and HTML project maps, release readiness, runtime scene-tree snapshots and event history, scene/selection/error resources, language-aware script diagnostics,
.NETproject resources when applicable, template resources, and reusable workflow prompts - Structured Results — JSON tool outputs and tool errors are mirrored into MCP
structuredContent, and node/resource summaries include sessioninstance_idvalues for follow-up calls - Input Simulation + View Capture — Drive play mode with action/key/mouse simulation and verify results with captured editor views
- One-Click Client Configuration — Generate MCP config entries for Codex, Claude Code, Cursor, and VS Code directly from the Godot dock
- Release + Registry Ready — GitHub Release artifacts are generated with manifests and SHA256 sums, Godot Asset Library packaging notes are included, the npm stdio wrapper is described by
server.json, and release readiness is exposed through MCP - UI/Control Tooling — Build CanvasLayer and Control hierarchies, set layouts, apply theme overrides, wire signals, and create HUDs through MCP
- Vendor Agnostic — Works with any AI client that supports MCP: Claude Code, Cursor, Windsurf, Codex, VS Code Copilot, etc.
Comparison With Unity MCP
The table below compares this repository with the public behavior and positioning of FunplayAI/funplay-unity-mcp.
MCP Capabilities
The current open-source package exposes four high-value capability layers:
- Tools — 129 total registered tools across scene editing, scripts, project maps, project configuration, asset import planning, input map, autoloads, runtime bridge, undo/redo, workflow guidance, files, project skills, UI, animation, camera, diagnostics, and automation. Script-related tools are filtered by detected project language and the dock's Tool Exposure settings.
- Primary execution —
execute_codefor rich editor/runtime orchestration, with default-on safety checks, optional object-style context helpers, logs, and change tracking metadata - Prompts — workflow prompts like
scene_review,feature_plan,runtime_debug,script_patch,ui_layout_plan,architecture_advice,performance_advice,network_template, andtemplate_generate - Resources — project context, dashboard status, project map JSON/HTML, scene summaries, selection state, logs, script errors, play state, runtime scene tree, runtime events, release readiness, project features, MCP interaction history, template catalog, and file templates
Built-in Tools
Funplay MCP for Godot currently ships with 129 registered tool functions across major workflow groups. The effective exported script tools are filtered by detected project language and per-tool exposure settings:
Repository Layout
addons/funplay_mcp/plugin.gd— Godot editor plugin entryaddons/funplay_mcp/core/— MCP server, tools, resources, prompts, settings, and config writersaddons/funplay_mcp/ui/— Godot dock UIstdio-wrapper/— npm stdio bridge for clients that cannot connect to HTTP MCP directlyserver.json— MCP Registry metadata for the stdio wrapperscripts/package_release.py— release artifact builder and package validatorscripts/run_godot_smoke.py— local Godot smoke runner for runtime bridge command validationscripts/godot_runtime_bridge_smoke.gd— headless Godot smoke script used by the runnerASSET_LIBRARY.md— Godot Asset Library packaging, submission, and update-safety notesCHANGELOG.md— user-facing changesCONTRIBUTING.md— contributor workflowRELEASE_CHECKLIST.md— release process
Contributing
See CONTRIBUTING.md.
License
This repository is licensed under MIT.
来源:README.md,提交 ec595d2
工具
0版本历史
2- v0.10.1最新Oct 10, 2026
- v0.10.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分