godot-mcp
by tugcantopaloglu·★ 189·综合分 48
Godot MCP 服务器提供 149 个工具,实现 AI 驱动的游戏开发中对引擎的全面控制。
概述
Godot MCP 是一个全面的模型上下文协议服务器,使 AI 助手能够完全控制 Godot 游戏引擎。它包含 149 个工具,涵盖网络、3D/2D 渲染、UI 控制、音频效果、动画树、文件 I/O、运行时代码执行、属性检查、场景操作、信号管理、物理、项目创建等功能。该服务器基于原始 godot-mcp 项目构建并扩展,工具数量从 20 个大幅增加到 149 个,包括运行时代码执行、节点检查、动画控制和无头场景操作等重要增强功能。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要 AI 执行复杂的 Godot 游戏开发任务、自动化工作流或创建 AI 驱动的游戏开发体验时,选择 Godot MCP。
什么时候不要选它
如果您使用的是 Godot 以外的游戏引擎,或者需要具有基于 GUI 的视觉脚本功能的解决方案,请不要选择它。
此 server 暴露的工具
从 README 抽取出 12 个工具game_evalExecute arbitrary GDScript code in the running game with return values
game_get_propertyRead any property on any node by path in the running game
game_set_propertyWrite any property on any node by path in the running game
game_call_methodCall any method on any node with arguments in the running game
game_instantiate_sceneDynamically add scenes to the running game
game_play_animationControl AnimationPlayer in the running game
game_pausePause or unpause the running game
read_sceneParse any .tscn file and get full node tree with properties as JSON
create_projectCreate a new Godot project from scratch
manage_export_presetsCreate or modify export preset configuration
game_http_requestMake HTTP GET/POST/PUT/DELETE requests with headers and body
game_ui_controlSet focus, anchors, tooltip, mouse filter on UI controls
可对比工具
安装
安装
- 安装 MCP 服务器:
npm install godot-mcp- 添加到 Claude Desktop 配置:
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/path/to/godot-mcp/dist/index.js"],
"env": {
"GODOT_PROJECT_PATH": "/path/to/your/godot/project"
}
}
}
}- 重启 Claude Desktop 以加载服务器。
FAQ
- 这是否需要运行中的 Godot 实例?
- 不需要。许多工具可以在无头模式下运行,不需要正在运行的游戏,但运行时功能需要活动的游戏实例。
- 它支持哪些编程语言?
- 服务器本身使用 JavaScript/TypeScript 编写。它与 Godot 的 GDScript 语言交互处理游戏逻辑。
godot-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。