# UnrealAgentPlayer [Health: Active]

**Category:** 🎮 Gaming  
**Repository:** https://github.com/ImagineTheGames/UnrealAgentPlayer  
**GitHub Stars:** 5  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/unrealagentplayer

## Description
Let an AI coding agent drive the Unreal Editor (PIE, input injection, logs, state, perf) for closed-loop agentic self-testing. UE plugin + Python MCP server. Windows.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What UnrealAgentPlayer does

UnrealAgentPlayer gives an MCP client a structured way to operate Unreal Editor gameplay sessions and inspect their results. It is intended for closed-loop development workflows: an agent edits code or Blueprints, compiles the project, starts Play-In-Editor or a standalone game, supplies the input needed to exercise a change, and checks the resulting state.

The Unreal plugin contributes an editor subsystem, log capture, in-process input injection, a fake motion-controller feature, and discovery of project-specific Blueprint or C++ test helpers. The companion Python server exposes these functions as agent-facing MCP tools. Supported Unreal versions are UE 5.6, 5.7, 5.8, and the Meta 5.7 fork. The editor side runs on Windows only.

## How it works

An MCP client starts the Python server over stdio. The server reaches the editor through two built-in Unreal mechanisms:

- Remote Control HTTP calls the plugin subsystem's exposed functions using typed, structured requests.
- Python Remote Execution sends Unreal Python scripts over UDP multicast for operations such as loading levels, reading state, or starting PIE.

Each editor receives its own Remote Control port, allowing multiple editor processes to be addressed independently. The `uap status` command reports the selected port. Input is routed through the game viewport client inside the editor rather than through OS-level keyboard focus, so background editors and separate PIE clients can be driven without raising a window. Multi-client PIE sessions can be selected with `--client N`.

Standalone game processes can also be launched, attached to, listed, stopped, and targeted by gameplay tools. The server can capture a run as an HTML report containing a verdict, assertions, screenshots, tool timing, and diagnostics.

## Setup and configuration

Create the Python environment from the `mcp-server` directory with Python's virtual-environment tooling, then install the package in editable mode. The optional Windows extra supplies editor-menu UIAutomation support. Install the plugin in the Unreal project, commonly by junctioning the repository's `Plugin/` directory into the project's `Plugins` folder.

Enable these Unreal components in the project:

- Remote Control API
- Python Editor Script Plugin
- Unreal Agent Player

Also enable remote execution in Project Settings under Python. Unreal Engine 5.8 and later requires the Remote Control setting “Allow Any Remote Function Call”; this setting is not present in 5.6 or 5.7. Do not manually choose the Remote Control port; inspect the assigned value with `uap status`.

## Tools and capabilities

Tool families cover editor and game control, observation, input, and reporting:

- Start, stop, pause, resume, and inspect PIE sessions.
- Launch and manage standalone game instances.
- Inject keyboard, mouse, axis, gamepad, Quest Touch button, and controller-pose input.
- Read captured logs with cursor, category, and verbosity filtering.
- Query actor properties, change actor properties, and find actors in the world.
- Execute console commands or arbitrary Unreal Python editor scripts.
- Read viewport UMG text and focus information.
- Capture viewport screenshots and collect real draw, GPU, and render-thread timings.
- Start Unreal Insights traces and compare named performance baselines against tolerances.
- Discover and call project-specific test helpers.
- Drive native editor menus through Windows UIAutomation.
- Build HTML reports with assertions, notes, captions, screenshots, and diagnostics.

These capabilities support gameplay regression checks, scripted bug reproduction, headset-free VR flows, performance guarding, and simultaneous work with multiple editors.

## Limitations and notes

The editor integration is Windows-only. The plugin and MCP server are functional on real projects, but the API may change. VR testing uses injected Quest Touch input and controller poses rather than a physical headset. OS input and window focusing are intentionally not used by the input tools. Remote execution uses UDP multicast at `239.0.0.1:6766`, while Remote Control uses a per-editor local HTTP port.

_Full upstream README: https://allmcps.com/mcp/unrealagentplayer/readme_

