UnrealGenAISupport
by prajwalshettydev
Overview
The plugin enables large language models (LLMs) to programmatically interact with and control Unreal Engine, facilitating generative AI applications in game development, such as spawning objects, manipulating scenes, and generating blueprints or Python scripts.
Installation
python <your_project_directoy_path>/Plugins/GenerativeAISupport/Content/Python/mcp_server.pyEnvironment Variables
- PS_OPENAIAPIKEY
- PS_DEEPSEEKAPIKEY
- PS_ANTHROPICAPIKEY
- PS_METAAPIKEY
- PS_GOOGLEAPIKEY
- PS_XAIAPIKEY
Security Notes
The MCP server (`mcp_server.py`) acts as a bridge, forwarding LLM-generated Python scripts to the Unreal Engine's Python interpreter (`unreal_socket_server.py`). The `handle_execute_python` function in `python_commands.py` executes these scripts using `exec(f.read())` on temporary files without sufficient sandboxing or robust input validation. This creates a severe remote code execution (RCE) vulnerability, allowing an LLM (if compromised or intentionally misdirected) to run arbitrary Python code within the Unreal Editor's environment. The `is_potentially_destructive` check is a weak heuristic and easily bypassable. The README explicitly warns about security risks, indicating this is a known, inherent risk of the design.
Similar Servers
unity-mcp
Enables AI assistants (LLMs) to control and automate tasks within the Unity Game Engine Editor through the Model Context Protocol (MCP).
agents
This MCP (Model Context Protocol) Server acts as a proxy for the Inkeep Agent Framework's Management API. It exposes administrative functionalities (e.g., CRUD operations for agents, projects, tools, and credentials) via the MCP protocol, allowing other clients or agents to interact with the Inkeep Management API through a standardized interface.
Unreal_mcp
High-performance bridge and automation server for Unreal Engine, enabling programmatic control, data processing, and asset authoring through a WebSocket API and optional WebAssembly acceleration.
UnityNaturalMCP
Integrates Unity Editor with Model Context Protocol (MCP) clients like AI coding assistants, enabling direct execution of Unity C# tools from these clients.