Back to Home
prajwalshettydev icon

UnrealGenAISupport

by prajwalshettydev

Overview

Integrates various Generative AI models (LLMs, vision, TTS) into Unreal Engine 5.1+ to enable AI-driven content generation, in-game agentic NPCs, and direct scene/blueprint control.

Installation

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

Environment Variables

  • PS_OPENAIAPIKEY
  • PS_DEEPSEEKAPIKEY
  • PS_ANTHROPICAPIKEY
  • PS_METAAPIKEY
  • PS_GOOGLEAPIKEY
  • PS_XAIAPIKEY

Security Notes

CRITICAL: The `execute_python_script` tool in `mcp_server.py` uses `exec(f.read())` to execute arbitrary Python code generated by an LLM within the Unreal Engine environment. While there's a `is_potentially_destructive` blacklist check, this is insufficient to prevent sophisticated prompt injection attacks or malicious code, potentially leading to arbitrary code execution (RCE), data corruption, or system compromise. The `execute_unreal_command` also allows running arbitrary console commands with similar, though potentially lesser, risk. The server listens on `localhost`, mitigating external network attack surfaces, but internal compromise (e.g., via a malicious LLM response) is a high risk. Users are explicitly warned to use it only in a controlled environment.

Similar Servers

Stats

Interest Score67
Security Score3
Cost ClassHigh
Avg Tokens1000
Stars315
Forks50
Last Update2025-11-30

Tags

Unreal EngineGenerative AILLMGame DevelopmentAI Agent