Back to Home
prajwalshettydev icon

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

Run Command
python <your_project_directoy_path>/Plugins/GenerativeAISupport/Content/Python/mcp_server.py

Environment 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

Stats

Interest Score61
Security Score2
Cost ClassHigh
Avg Tokens7500
Stars361
Forks60
Last Update2026-01-04

Tags

Unreal EngineGenerative AILLMGame DevelopmentMCPBlueprintAutomation