Skip to content

Configuration

Chirag Panwar edited this page Feb 25, 2026 · 3 revisions

Configuration

Environment variables and settings for Unreal MCP.


Quick Reference

You only need one setting to get started:

{
  "UE_PROJECT_PATH": "C:/Path/To/YourProject"
}

Everything else has sensible defaults.


Required Settings

Setting Description Example
UE_PROJECT_PATH Path to your Unreal project folder C:/Projects/MyGame

Complete MCP Config

Copy-paste this into your MCP config file:

{
  "mcpServers": {
    "unreal-engine": {
      "command": "npx",
      "args": ["unreal-engine-mcp-server"],
      "env": {
        "UE_PROJECT_PATH": "C:/Projects/MyGame"
      }
    }
  }
}

Optional Settings

Only change these if you have specific needs:

Setting Default Description
MCP_AUTOMATION_PORT 8091 Change if port 8091 is already in use
LOG_LEVEL info Set to debug for troubleshooting
WASM_ENABLED true Set to false to disable WebAssembly

Example with Optional Settings

{
  "mcpServers": {
    "unreal-engine": {
      "command": "npx",
      "args": ["unreal-engine-mcp-server"],
      "env": {
        "UE_PROJECT_PATH": "C:/Projects/MyGame",
        "MCP_AUTOMATION_PORT": "8091",
        "LOG_LEVEL": "info",
        "WASM_ENABLED": "true"
      }
    }
  }
}

All Settings Reference

Setting Default Description
UE_PROJECT_PATH (required) Your Unreal project folder path
MCP_AUTOMATION_HOST 127.0.0.1 WebSocket host address
MCP_AUTOMATION_PORT 8091 WebSocket port
MCP_AUTOMATION_REQUEST_TIMEOUT_MS 120000 Request timeout in milliseconds
MCP_AUTOMATION_ALLOW_NON_LOOPBACK false Enable for LAN access
LOG_LEVEL info debug, info, warn, or error
WASM_ENABLED true WebAssembly acceleration
ASSET_LIST_TTL_MS 10000 Asset list cache duration
MOCK_UNREAL_CONNECTION false For testing without Unreal

Config File Locations

AI Client Config File
Claude Desktop (Windows) %APPDATA%/Claude/claude_desktop_config.json
Claude Desktop (Mac) ~/Library/Application Support/Claude/claude_desktop_config.json
Cursor ~/.cursor/mcp.json
Windsurf ~/.config/windsurf/mcp.json

LAN Access (Optional)

To access from other machines on your network:

{
  "mcpServers": {
    "unreal-engine": {
      "command": "npx",
      "args": ["unreal-engine-mcp-server"],
      "env": {
        "UE_PROJECT_PATH": "C:/Projects/MyGame",
        "MCP_AUTOMATION_ALLOW_NON_LOOPBACK": "true",
        "MCP_AUTOMATION_HOST": "0.0.0.0"
      }
    }
  }
}

Warning: Only enable on trusted networks. This exposes the automation bridge to your LAN.


See Also

Navigation

Getting Started

Reference

Help


Unreal MCP

Clone this wiki locally