Unreal Engine MCP Server

Unreal Engine MCP Server

Enables AI assistants to interact with Unreal Engine via Remote Control API for actor, asset, level, and editor operations.

Category
访问服务器

README

Unreal Engine MCP Server

A comprehensive Model Context Protocol (MCP) server that enables Claude and other AI assistants to interact with Unreal Engine through the Remote Control API.

Features

  • 22 MCP Tools - Full control over actors, assets, levels, and editor
  • 4 MCP Resources - Read-only data access to engine state
  • 6 MCP Prompts - Workflow templates for common tasks
  • Remote Control API Integration - HTTP-based communication
  • Mock Mode - Test without running Unreal Engine
  • TypeScript - Full type safety with Zod validation
  • Batch Operations - Execute multiple operations efficiently

Requirements

  • Node.js 18+
  • Unreal Engine 5.x with Remote Control API plugin enabled

Enabling Remote Control in Unreal Engine

  1. Open your project in Unreal Editor
  2. Go to Edit > Plugins
  3. Search for "Remote Control API" in the Messaging category
  4. Enable the plugin and restart the editor

The Remote Control API server starts automatically on port 30010.

Installation

# Clone the repository
git clone https://github.com/your-repo/ue-mcp.git
cd ue-mcp

# Install dependencies
npm install

# Build
npm run build

Usage

Start the server

# Default settings (connects to localhost:30010)
npm start

# Mock mode (for testing without Unreal Engine)
npm run start:mock

# Custom host/port
node dist/index.js --host 192.168.1.100 --http-port 30010

# Development mode with hot reload
npm run dev

CLI Options

Option Alias Description Default
--host -h Unreal Engine host address 127.0.0.1
--http-port -p Remote Control HTTP port 30010
--ws-port -w Remote Control WebSocket port 30020
--timeout -t Request timeout (ms) 5000
--mock -m Enable mock mode false
--verbose -v Enable verbose logging false

Claude Desktop Configuration

Add to your Claude Desktop configuration (~/.claude.json or .mcp.json):

{
  "mcpServers": {
    "unreal-engine": {
      "command": "node",
      "args": ["/path/to/ue-mcp/dist/index.js"],
      "env": {
        "UE_HOST": "127.0.0.1",
        "UE_HTTP_PORT": "30010"
      }
    }
  }
}

Available Tools (22)

Debug Tools

Tool Description
ue_ping Test connection to Unreal Engine
ue_get_api_info Get available API routes

Object Tools

Tool Description
ue_call_function Call Blueprint-callable functions on UObjects
ue_get_property Read property values from objects
ue_set_property Write property values to objects
ue_describe_object Get object metadata (properties, functions)

Actor Tools

Tool Description
ue_get_all_actors List all actors in the current level
ue_get_selected_actors Get currently selected actors
ue_spawn_actor Spawn a new actor in the level
ue_destroy_actor Delete an actor from the level
ue_transform_actor Move, rotate, or scale an actor
ue_select_actors Set editor selection

Batch Tools

Tool Description
ue_batch_execute Execute multiple operations in one request

Asset Tools

Tool Description
ue_search_assets Search the asset registry
ue_get_asset_data Get asset metadata

Level Tools

Tool Description
ue_get_current_level Get current level information
ue_open_level Open a level
ue_save_level Save the current level
ue_save_all Save all modified assets

Editor Tools

Tool Description
ue_play_in_editor Control PIE (start/stop/pause/resume)
ue_execute_console_command Run console commands
ue_focus_viewport Move viewport to actor or location

Available Resources (4)

Resources provide read-only access to Unreal Engine data via URI patterns.

Resource URI Description
unreal://api/schema Available Remote Control API endpoints
unreal://level/actors All actors in the current level
unreal://editor/state Current editor state (level, selection)
unreal://presets List of Remote Control Presets

Available Prompts (6)

Prompts are workflow templates that guide common tasks.

Prompt Description
spawn-actors-grid Create a grid of actors at specified positions
batch-property-edit Edit a property on multiple actors at once
debug-actor Get comprehensive debug info about an actor
setup-level Set up a new level with common elements
explore-blueprint Explore a Blueprint's properties and functions
use-preset Work with a Remote Control Preset

Example Interactions

You: Ping Unreal Engine to check if it's connected
Claude: [Uses ue_ping tool]
Successfully connected to Unreal Engine at http://127.0.0.1:30010

You: List all the lights in the level
Claude: [Uses ue_get_all_actors with classFilter="PointLight"]
Found 3 actors: PointLight_1, PointLight_2, SpotLight_1

You: Spawn a point light at position (500, 0, 200)
Claude: [Uses ue_spawn_actor tool]
Successfully spawned PointLight at (500, 0, 200)

You: Move it up by 100 units
Claude: [Uses ue_transform_actor tool]
Successfully set location on actor

You: Save the level
Claude: [Uses ue_save_level tool]
Level saved successfully

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Type checking
npm run typecheck

# Build
npm run build

# Run tests
npm test

# Test with MCP Inspector
npm run inspector

Architecture

src/
├── index.ts              # CLI entry point
├── server.ts             # MCP server setup
├── config/               # Configuration system
├── client/               # HTTP client for Remote Control API
├── tools/
│   ├── debug/            # ue_ping, ue_get_api_info
│   ├── object/           # ue_call_function, ue_get_property, etc.
│   ├── actor/            # ue_spawn_actor, ue_transform_actor, etc.
│   ├── asset/            # ue_search_assets, ue_get_asset_data
│   ├── level/            # ue_open_level, ue_save_level, etc.
│   ├── editor/           # ue_play_in_editor, ue_execute_console_command
│   └── batch/            # ue_batch_execute
├── resources/            # MCP resources (read-only data)
├── prompts/              # MCP prompts (workflow templates)
└── utils/                # Error handling utilities

Environment Variables

UE_HOST=127.0.0.1        # Unreal Engine host
UE_HTTP_PORT=30010       # Remote Control HTTP port
UE_WS_PORT=30020         # Remote Control WebSocket port
UE_TIMEOUT=5000          # Request timeout (ms)
UE_MOCK_MODE=false       # Enable mock mode
UE_VERBOSE=false         # Enable verbose logging

License

MIT

Sources

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选