Godot MCP Server 是官方的吗?
不是。它是 Coding-Solo 开发的社区项目,采用 MIT 许可证发布,并非由 Godot Engine 团队维护。
@Coding-Solo
基本信息
用于与 Godot 游戏引擎交互的 MCP 服务器。提供启动编辑器、运行项目和捕获调试输出的工具。
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"godot": {
"command": "npx",
"args": [
"@coding-solo/godot-mcp"
]
}
}
}Launch Godot editor for a specific project
Run the Godot project and capture output
Get the current debug output and errors
Stop the currently running Godot project
Get the installed Godot version
List Godot projects in a directory
Retrieve metadata about a Godot project
Create a new Godot scene file
Add a node to an existing scene
Load a sprite into a Sprite2D node
Export a scene as a MeshLibrary resource
Save changes to a scene file
Get the UID for a specific file in a Godot project (for Godot 4.4+)
Update UID references in a Godot project by resaving resources (for Godot 4.4+)
Godot MCP Server 是一个社区开发的 godot mcp 集成,让 AI 助手可以通过 Model Context Protocol 启动 Godot 编辑器、运行项目、读取调试输出并编辑场景。它为智能体提供了与真实 Godot 项目之间的直接反馈循环。
该项目由 Coding-Solo 在 GitHub 上开发,采用 MIT 许可证,并以 @coding-solo/godot-mcp 发布在 npm 上。它不是 Godot Engine 官方产品。它通过 stdio 在本地运行,并调用你已安装的 Godot 可执行文件,因此除了 AI 客户端发送给模型的内容之外,数据不会离开你的电脑。
README 中列出的前提条件:
不需要 API key。支持两个可选环境变量:
| 变量 | 用途 |
|---|---|
GODOT_PATH | Godot 可执行文件路径(覆盖自动检测) |
DEBUG | 设为 "true" 以启用详细的服务端调试日志 |
claude mcp add godot -- npx @coding-solo/godot-mcp
带环境变量:
claude mcp add godot -e GODOT_PATH=/path/to/godot -e DEBUG=true -- npx @coding-solo/godot-mcp
重启 Claude Code 后即可使用 Godot 工具。
在界面中打开 Cursor Settings > Features > MCP,点击 + Add New MCP Server,填写名称 godot、类型 command、命令 npx @coding-solo/godot-mcp。可能需要点击服务器卡片右上角的刷新按钮来加载工具列表。如需按项目配置,可创建 .cursor/mcp.json:
{
"mcpServers": {
"godot": {
"command": "npx",
"args": ["@coding-solo/godot-mcp"],
"env": {
"DEBUG": "true"
}
}
}
}
任何兼容 MCP 的客户端(如 Claude Desktop 或 Cline)都可以使用 README 中的通用配置:
{
"mcpServers": {
"godot": {
"command": "npx",
"args": ["@coding-solo/godot-mcp"],
"env": {
"GODOT_PATH": "/path/to/godot",
"DEBUG": "true"
}
}
}
}
对于 Cline,README 将该配置放在 cline_mcp_settings.json 中,并给出了一个 autoApprove 工具名列表,可用于跳过确认提示。
git clone https://github.com/Coding-Solo/godot-mcp.git
cd godot-mcp
npm install
npm run build
然后让 MCP 客户端指向 build/index.js,而不是使用 npx。
Sprite2D 节点加载精灵并保存场景(包括创建变体)在底层,简单操作使用 Godot 内置的命令行接口,而创建场景、添加节点等复杂操作则通过一个打包的 GDScript 文件 godot_operations.gd 完成,该文件以 JSON 形式接收操作类型和参数。
服务器提供 14 个工具,分为四组:
launch_editor 为项目打开编辑器,run_project 运行项目并捕获输出,get_debug_output 返回当前日志和错误,stop_project 结束运行。智能体可以借此修改代码、运行游戏并查看出错原因。get_godot_version、list_projects 和 get_project_info 让智能体了解已安装的引擎版本以及项目内容。create_scene、add_node、load_sprite、save_scene 和 export_mesh_library 无需手动打开编辑器即可创建和修改 .tscn 场景。get_uid 返回文件的 UID,update_project_uids 通过重新保存资源来刷新 UID 引用。Godot MCP Server 是面向游戏引擎的多个社区 MCP 服务器之一。如果你使用其他引擎,Unity MCP 可将 AI 助手连接到 Unity 编辑器,Blender MCP 则为 Blender 3D 场景提供类似能力。GitHub 上还有其他独立的 Godot MCP 项目,工具集各不相同,选择前请对比它们的 README。Coding-Solo 版本的特点是通过 npx 即可简单安装,并专注于运行项目和捕获调试输出。
GODOT_PATH 设置为 Godot 可执行文件的完整路径。project.godot 文件的目录。npm install,确保所有依赖都已安装。不是。它是 Coding-Solo 开发的社区项目,采用 MIT 许可证发布,并非由 Godot Engine 团队维护。
免费。该服务器开源且可免费使用,不需要 API key。你只需要自己的 AI 客户端和模型访问权限。
需要 Godot Engine、Node.js 18 或更高版本及 npm,以及一个兼容 MCP 的 AI 客户端。服务器本身通过 `npx @coding-solo/godot-mcp` 运行。
支持。运行 `claude mcp add godot -- npx @coding-solo/godot-mcp`,然后重启 Claude Code。
支持。README 记录了 Cursor 和 Cline 的配置方法,并为其他兼容 MCP 的客户端(包括 Claude Desktop)提供了通用的 `mcpServers` 配置。
README 没有为核心工具规定最低版本。UID 工具 `get_uid` 和 `update_project_uids` 适用于 Godot 4.4 及更高版本。
本地服务器。它通过 stdio 在你的电脑上运行,并调用你已安装的 Godot 可执行文件。
服务器可以在你提供的路径中运行项目并写入场景文件。请将项目纳入版本控制并审查改动;像 Cline 这样的客户端允许你选择哪些工具自动批准。
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w
A search tool helps dev to solve the naming things problem.
A curated list of references for MLOps
评论