Godot MCP Server
A Model Context Protocol server that enables AI assistants to manage and interact with Godot Engine projects, including project management, script editing, scene manipulation, asset management, and export.
README
Godot MCP Server
A comprehensive Model Context Protocol (MCP) server for Godot Engine that enables AI assistants to interact with Godot projects. Provides powerful tools for project management, script execution, scene manipulation, asset management, and more.
Features
- 🚀 Project Management - Launch editor, run projects, manage multiple projects
- 📜 Script Management - Create, read, analyze GDScript with templates
- 🎬 Scene Management - List, inspect, create scenes
- 🔍 Node Operations - Find nodes, get properties
- 📊 Project Analysis - Statistics, unused assets detection
- 🎨 Asset Management - List images, audio, fonts
- ⚙️ Project Settings - Read project.godot configuration
- ✅ Validation - GDScript validation via LSP
- 📦 Export - Export to Windows, Linux, macOS, Android, Web
- 🔧 UID Management - Godot 4.4+ UID support
Requirements
- Node.js 18+
- Godot Engine 4.x (recommended)
- npm
Quick Start
# Clone and install
git clone https://github.com/godot-mcp/godot-mcp.git
cd godot-mcp
npm install
npm run build
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
GODOT_PATH |
Path to Godot executable | Auto-detected |
GODOT_PROJECT_PATH |
Path to Godot project | Current directory |
GODOT_LSP_PORT |
LSP port | 6005 |
DEBUG |
Enable debug logging | false |
Claude Desktop
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/path/to/godot-mcp/dist/index.js"],
"env": {
"GODOT_PATH": "/path/to/godot",
"GODOT_PROJECT_PATH": "/path/to/project"
}
}
}
}
Cline
See configs/cline_mcp_settings.json for full auto-approve list.
Cursor
Create .cursor/mcp.json in your project:
{
"mcpServers": {
"godot": {
"command": "node",
"args": ["/path/to/godot-mcp/dist/index.js"]
}
}
}
Available Tools (35+)
Project Management
| Tool | Description |
|---|---|
godot_launch_editor |
Launch Godot editor |
godot_run_project |
Run project (debug/headless) |
godot_stop_project |
Stop running project |
godot_get_project_info |
Get project details |
godot_get_version |
Get Godot version |
godot_list_projects |
Find projects in directory |
godot_quit |
Quit Godot |
Script Management
| Tool | Description |
|---|---|
godot_list_scripts |
List all .gd files |
godot_read_script |
Read script content |
godot_create_script |
Create with template |
godot_analyze_script |
Analyze for issues |
godot_run_script |
Execute script file |
godot_run_code |
Execute inline code |
Scene Management
| Tool | Description |
|---|---|
godot_list_scenes |
List all .tscn files |
godot_get_scene_tree |
Get node hierarchy |
godot_create_scene |
Create new scene |
godot_save_scene |
Save current scene |
Node Operations
| Tool | Description |
|---|---|
godot_find_nodes |
Find nodes by name/type |
godot_get_node_properties |
Get node properties |
UID Management (Godot 4.4+)
| Tool | Description |
|---|---|
godot_get_uid |
Get UID for a file |
godot_update_project_uids |
Update UID references |
Debug
| Tool | Description |
|---|---|
godot_get_debug_output |
Capture debug output |
Project Analysis
| Tool | Description |
|---|---|
godot_analyze_project |
Get project statistics |
godot_find_unused_assets |
Find unused assets |
Asset Management
| Tool | Description |
|---|---|
godot_list_resources |
List .tres files |
godot_list_assets |
List images, audio, fonts |
Project Settings
| Tool | Description |
|---|---|
godot_get_project_settings |
Read project.godot |
Validation
| Tool | Description |
|---|---|
godot_validate_script |
Validate via LSP |
godot_check_lsp |
Check LSP connection |
Export
| Tool | Description |
|---|---|
godot_export_project |
Export to platform |
godot_get_export_presets |
List export presets |
Utility
| Tool | Description |
|---|---|
godot_execute |
Arbitrary command |
godot_get_config |
Get configuration |
Script Templates
When creating scripts, use the template parameter:
basic- Basic Node scriptnode- Node with @onreadycharacter- CharacterBody2D with movementresource- Custom Resourceautoload- Autoload singletonstate- State pattern
Example Prompts
"Launch the Godot editor for my project"
"Create a Player script with character template"
"Analyze my project and show statistics"
"Find all scenes in my project"
"Export my project for Windows"
"What scripts are in my project?"
"Get the scene tree of Main.tscn"
Development
npm run dev # Development with hot reload
npm run build # Build TypeScript
npm start # Run production
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to help improve the project.
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'Add my feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
License
MIT - See LICENSE
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。