
Bradypp/Godot-MCP 是从 https://github.com/bradypp/godot-mcp. 导入的 MCP 服务器候选。
概览
Bradypp/Godot-MCP 是从 https://github.com/bradypp/godot-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个全面的模型上下文协议(MCP)服务器,支持与Godot游戏引擎的无缝AI助手集成。
目录
- 什么是Godot MCP?
- 特色
- 要求
- 安装
- 配置
- API 参考
- 项目架构
- 使用示例
- 只读模式
- 故障排除
- 常见问题解答
- 贡献
- 许可证
什么是Godot MCP?
Godot MCP 通过提供标准化的模型上下文协议接口,弥合了 AI 助手与 Godot 游戏引擎之间的鸿沟。这一强大的集成使 Claude、Cursor 和 Cline 等 AI 助手能够通过一套全面的工具直接与 Godot 项目交互。
关键价值主张
- 直接 Godot 集成:启动编辑器、运行项目并以程序方式捕获调试输出
- 场景管理:通过AI命令创建、修改和管理Godot场景
- 实时反馈:AI助手能看到Godot的实际输出和错误,以便更好地协助
- 跨平台兼容性:在Windows、macOS和Linux上无缝运行
- 安全操作:可选只读模式,用于安全项目分析
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Godot MCP
A comprehensive Model Context Protocol (MCP) server for seamless AI assistant integration with the Godot game engine.
Table of Contents
- What is Godot MCP?
- Features
- Requirements
- Installation
- Configuration
- API Reference
- Project Architecture
- Usage Examples
- Read-Only Mode
- Troubleshooting
- FAQ
- Contributing
- License
What is Godot MCP?
Godot MCP bridges the gap between AI assistants and the Godot game engine by providing a standardized Model Context Protocol interface. This powerful integration enables AI assistants like Claude, Cursor, and Cline to directly interact with Godot projects through a comprehensive set of tools.
Key Value Propositions
- Direct Godot Integration: Launch editors, run projects, and capture debug output programmatically
- Scene Management: Create, modify, and manage Godot scenes through AI commands
- Real-time Feedback: AI assistants can see actual Godot output and errors for better assistance
- Cross-platform Compatibility: Works seamlessly on Windows, macOS, and Linux
- Secure Operations: Optional read-only mode for safe project analysis
- Zero Configuration: Automatic Godot detection with manual override options
How It Works
The server acts as a middleware layer between your AI assistant and Godot, translating natural language commands into specific Godot operations. When you ask your AI to “create a player scene with a sprite,” the MCP server:
- Validates the request and project structure
- Executes the appropriate Godot operations
- Returns detailed success/error feedback
- Enables the AI to understand and respond to the results
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/absolute/path/to/godot-mcp/build/index.js"],
"env": {
"DEBUG": "false",
"READ_ONLY": "false",
"GODOT_PATH": "/path/to/godot"
},
"disabled": false,
"autoApprove": [
"launch_editor",
"run_project",
"get_debug_output",
"stop_project",
"get_godot_version",
"list_projects",
"get_project_info",
"create_scene",
"add_node",
"edit_node",
"remove_node",
"load_sprite",
"export_mesh_library",
"save_scene",
"get_uid",
"update_project_uids"
]
}
}
}