Cover image
Try Now
2025-04-12

通过远程Python执行,用于与虚幻引擎实例进行交互的MCP服务器实现。

3 years

Works with Finder

1

Github Watches

3

Github Forks

3

Github Stars

MCP Unreal Server

A server implementation for interacting with Unreal Engine instances through remote Python execution.

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    5 (1)
    Avatar
    user_FbmFPFHe
    2025-04-16

    MCP-Unreal-Server is an outstanding solution for hosting Unreal Engine projects. Developed by radial-hks, this server package is seamless to integrate and offers robust performance. Whether you're an indie developer or part of a larger team, MCP-Unreal-Server provides the stability and scalability needed to run multiplayer games or simulations effectively. Highly recommend checking it out on GitHub!