Token导航 LogoToken导航TokenDH.com
MCP Gdot logo
运维云端stdio官方级别未说明来源级核验

MCP Gdot

MCP Server

Godot MCP是一款高级AI桥接工具,提供实时Godot编辑器操作和离线项目分析功能,助力AI辅助游戏开发。

工具数

51

提示词数

0

GitHub Stars

0

资源数

0
游戏开发PythonClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

CarpseDeam

提供方

CarpseDeam

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -r requirements.txt

详细介绍

Godot MCP-高级AI桥

🎮 全功能的Godot编辑器集成+离线项目分析,用于AI辅助游戏开发

此MCP服务器使Claude(或任何兼容MCP的AI)能够:

  • 实时操作Godot编辑器 -创建节点、修改场景、放置对象
  • 离线了解您的项目 -分析脚本、查找依赖关系、搜索代码
  • 按比例进行水平设计 -分散物体、地形感知放置、批量操作

建筑

┌─────────────┐           ┌─────────────────────────────────────────┐
│             │           │            MCP Server (Python)          │
│   Claude    │◄─stdio───►│  ┌─────────────┐  ┌─────────────────┐   │
│             │           │  │ Live Tools  │  │ Offline Analysis│   │
└─────────────┘           │  │ (HTTP→Godot)│  │ (File Parsing)  │   │
                          │  └──────┬──────┘  └─────────────────┘   │
                          └─────────┼───────────────────────────────┘
                                    │ HTTP :6550
                          ┌─────────▼───────────┐
                          │   Godot Editor      │
                          │   Claude Bridge     │
                          │   (@tool plugin)    │
                          └─────────────────────┘

快速开始

1.安装Godot插件

复制 godot-plugin/addons/claude_bridge/ 对于您的项目:

your_project/
└── addons/
    └── claude_bridge/
        ├── plugin.cfg
        └── plugin.gd

启用: 项目→ 项目设置→ 插件→ 克劳德·布里奇

2.安装Python依赖项

cd mcp-server
pip install -r requirements.txt

3.配置克劳德桌面

添加到 %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "godot": {
      "command": "python",
      "args": ["C:\\Projects\\mcp-Gdot\\mcp-server\\server.py"]
    }
  }
}

重新启动克劳德桌面。

______________________________________________________________________

工具类别

🔌 连接和设置

工具说明
godot_ping检查Godot是否已连接
godot_set_project设置离线分析的项目路径

🌳 场景树(直播)

工具说明
godot_get_scene_tree获取完整的节点层次结构
godot_get_flat_nodes带职位的平面列表
godot_open_scene打开场景文件
godot_save_scene保存当前场景

🎯 选择

工具说明
godot_get_selected获取所选节点
godot_select_nodes按路径选择
godot_select_by_type选择所有类型
godot_select_by_group按组选择

➕ 节点操作

工具说明
godot_create_node创建节点
godot_create_many_nodes批量创建
godot_delete_node删除节点
godot_duplicate_node带偏移的复制
godot_get_properties读取节点属性
godot_set_property设置属性
godot_set_multiple_properties一次设置多个
godot_add_to_group添加到组
godot_remove_from_group从组中删除

📦 场景实例化

工具说明
godot_instantiate_scene实例化一个打包场景
godot_instantiate_many批量实例化

🗺️ 水平设计和地形

工具说明
godot_get_terrain_heightx、z高度的光线投射
godot_get_terrain_heights批量高度查询
godot_scatter_objects带斜率过滤的智能散射
godot_place_along_path沿航路点放置
godot_place_grid网格布局

⚡ 批量操作

工具说明
godot_batch_set_property在多个节点上设置属性
godot_batch_add_to_group向组中添加多个
godot_batch_delete_by_type删除所有类型
godot_batch_delete_by_group删除组中的所有内容
godot_batch_replace_mesh在项目范围内交换网格资源

🔍 搜索

工具说明
godot_search_nodes多条件搜索
godot_find_by_type按节点类型查找
godot_find_by_group按组查找
godot_find_by_name按名称模式查找

🐛 调试

工具说明
godot_run_scene播放当前场景
godot_stop_running停止运行游戏

💻 脚本执行

工具说明
godot_execute运行任意GDScript
godot_execute_on_selected在每个选定节点上运行代码

______________________________________________________________________

离线分析(无需Godot!)

这些工具直接解析您的项目文件——Godot不需要运行。

工具说明
analyze_project_infoproject.godot信息、自动加载、输入
analyze_scan_scripts扫描所有.gd文件
analyze_scan_scenes扫描所有.tscn文件
analyze_script对一个脚本的深入分析
analyze_scene对一个场景的深入分析
analyze_find_nodes_by_type查找所有场景中的节点类型
analyze_find_nodes_by_group查找所有场景中的组
analyze_find_script_usages搜索函数/变量/信号
analyze_find_signal_connections查找信号连接
analyze_dependency_graph构建依赖关系树
analyze_find_orphans查找未引用的资源
analyze_search_in_filesRegex跨文件搜索

______________________________________________________________________

示例提示

关卡设计

"Scatter 100 oak trees in a 200m radius around the player spawn,
 avoid slopes over 30 degrees, minimum 5m spacing, random Y rotation"
"Place torches along the path from the entrance to the boss room,
 10 meters apart, aligned to face the path direction"
"Create a 5x5 grid of market stalls starting at (100, 0, 100)"

批量操作

"Set all WildlifeSpawner nodes to respawn_time = 300"
"Delete all nodes in the 'debug' group"
"Replace all instances of old_tree.glb with new_tree.glb"

项目分析

"Find all scripts that use the 'damage_dealt' signal"
"What functions does the PlayerCombat class have?"
"Show me the dependency graph - what loads what"
"Find orphaned scenes that aren't used anywhere"

定制操作

"Run this code on all selected nodes: node.modulate = Color.RED"
"Execute: print(scene_root.get_children())"

______________________________________________________________________

扩展插件

添加新端点

  1. 在中添加处理程序 plugin.gd:
func _my_handler(data: Dictionary) -> Dictionary:
    # Do stuff
    return {"success": true, "data": result}
  1. 添加路线 _route_request():
"my/endpoint": return _my_handler(data)
  1. 添加工具 server.py:
Tool(
    name="godot_my_tool",
    description="Does cool stuff",
    inputSchema={...}
)
  1. 添加到端点映射 call_tool().

______________________________________________________________________

故障排除

“无法连接到Godot”

  • Godot正在运行吗?
  • 插件是否已启用?检查项目设置→ 插件
  • 检查输出面板上的“Claude Bridge:服务器正在监听…”

离线分析不起作用

  • 你打电话来了吗 godot_set_project 第一?
  • 路径是否正确(应包含project.godot)?

地形光线投射不返回命中值

  • 你的地形有碰撞吗?
  • 碰撞层是否正确?

______________________________________________________________________

许可证

麻省理工学院-随心所欲! 🚀

目录标签

目录标签

游戏开发PythonClaude本地部署AI辅助编辑器集成离线分析批量操作

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

51

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP