radial_hks_mcp_unreal_server

radial_hks_mcp_unreal_server

by radial-hks
A server implementation for interacting with Unreal Engine instances through remote Python execution.

Unreal Engine MCP Server for Remote Python Execution

Overview

The Unreal Engine MCP Server is a powerful implementation designed to facilitate interaction with Unreal Engine instances through remote Python execution. This server enables developers to manage Unreal Engine nodes, execute Python code remotely, and monitor node statuses in real-time.

Features

Unreal Instance Management

  • Automatic discovery of Unreal nodes via multicast
  • Real-time node status monitoring
  • Resource listing through LSP-compatible clients

Remote Execution

  • Execute Python code in Unreal Engine environments
  • Support for both attended and unattended execution modes
  • File execution and statement evaluation modes

Logging & Monitoring

  • Detailed logging to file (mcp_unreal.log)
  • Console logging with different verbosity levels
  • Node connection health monitoring

Installation

# Clone repository
git clone https://github.com/your-org/mcp-unreal-server.git
cd mcp-unreal-server

# Install dependencies
pip install -r requirements.txt

Configuration

Network Settings

Configure multicast parameters in RemoteExecutionConfig:

# Default multicast settings (modify in server.py)
config.multicast_group_endpoint = ("239.0.0.1", 6766)

Logging

Modify logging configuration in server.py:

# Adjust log levels
file_handler.setLevel(logging.DEBUG)  # File logging
console_handler.setLevel(logging.INFO)  # Console logging

Usage

Starting the Server

python -m src.mcp_server_unreal.server

Supported Tools

  1. Connect to Unreal Instance
{
  "host": "239.0.0.1",
  "port": 6766
}
  1. Execute Python Code
{
  "node_id": "<unreal-node-id>",
  "code": "print('Hello Unreal')",
  "unattended": true
}

API Documentation

Resource Format

types.Resource(
    uri="unreal://<node_id>",
    name=f"Unreal Instance: {node_id}",
    description="Unreal Engine instance",
    mimeType="application/x-unreal"
)

Execution Modes

Mode Description
MODE_EXEC_FILE Execute Python file
MODE_EXEC_STATEMENT Execute Python statement
MODE_EVAL_STATEMENT Evaluate Python expression

Troubleshooting

Common Issues:
- No nodes discovered: Verify Unreal instances are running with MCP plugin
- Execution timeout: Check firewall settings for multicast traffic
- Connection drops: Monitor mcp_unreal.log for node status changes

License

Apache-2.0 License

About

The Unreal Engine MCP Server is a specialized implementation for interacting with Unreal Engine instances through remote Python execution, providing developers with powerful tools for automation and management.

Resources

Stars

3 stars

Watchers

1 watching

Forks

2 forks

Report repository

Releases


No releases published

Packages 0


No packages published

Languages

Features & Capabilities

Categories
mcp_server model_context_protocol python unreal_engine remote_execution api_integration logging monitoring

Implementation Details

Stats

0 Views
3 GitHub Stars

Repository Info

radial-hks Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300