使用Unreal Python远程执行协议的Unreal Engine MCP服务器


此服务器不需要安装新的UE插件,因为它使用内置的Python远程执行协议。
添加新工具或功能的速度更快,因为不需要任何C++代码。
它可以支持完整的Unreal Engine Python API
编辑 -> 插件编辑 -> 项目设置

{
"mcpServers": {
"unreal": {
"command": "npx",
"args": [
"-y",
"@runreal/unreal-mcp"
]
}
}
}
如果您遇到类似于MCP Unreal: Unexpected token 'C', Connection...的错误,这意味着mcp-server无法连接到Unreal Editor。
127.0.0.1更改为0.0.0.0,但请注意这将允许本地网络中的连接。文件 -> 退出)。| 工具 | 描述 |
|---|---|
set_unreal_engine_path | 设置Unreal Engine路径 |
set_unreal_project_path | 设置项目路径 |
get_unreal_engine_path | 获取当前Unreal Engine路径 |
get_unreal_project_path | 获取当前Unreal项目路径 |
editor_run_python | 在Unreal Editor内执行任何Python |
editor_list_assets | 列出所有Unreal资产 |
editor_export_asset | 导出Unreal资产为文本 |
editor_get_asset_info | 获取关于资产的信息,包括StaticMesh和SkeletalMesh资产的LOD级别 |
editor_get_asset_references | 获取资产的引用 |
editor_console_command | 在Unreal中运行控制台命令 |
editor_project_info | 获取有关当前项目的详细信息 |
editor_get_map_info | 获取有关当前地图/级别的详细信息 |
editor_search_assets | 根据名称或路径搜索资产,可选类过滤器 |
editor_get_world_outliner | 获取当前世界中的所有角色及其属性 |
editor_validate_assets | 验证项目中的资产以检查错误 |
editor_create_object | 在世界中创建一个新的对象/角色 |
editor_update_object | 更新世界中存在的对象/角色 |
editor_delete_object | 从世界中删除对象/角色 |
editor_take_screenshot | 拍摄Unreal Editor的屏幕截图 |
editor_move_camera | 将视口相机移动到特定位置和旋转,用于定位屏幕截图 |
请随时提出问题或拉取请求。欢迎贡献,特别是新的工具/命令。
<a href="https://glama.ai/mcp/servers/@runreal/unreal-mcp"> <img width="380" height="200" src="https://gips2.baidu.com/it/u=3116898223,670842633&fm=3081&app=3081&f=PNG?w=760&h=400" /> </a>