UE-MCP

Getting Started

Getting Started documentation.

⏱ ~5 minutes

UE-MCP lets you tell an AI assistant what you want done in Unreal. It can place actors, write blueprints, author materials, configure Niagara, build lighting, generate PCG systems, blah, blah, blah.

Prerequisites

  1. Install Unreal Engine 5.4 to 5.7
  2. Install Node.js 18 or newer
  3. Install an MCP-capable AI client (e.g. Claude Code)

1. Installation

  1. If your Unreal Editor is open, close it.

  2. cd into your project folder (the one with the .uproject).

  3. Run the wizard:

    npx ue-mcp init

The wizard then:

  1. Auto-detects your .uproject.
  2. Asks which tool categories to enable (level, blueprint, material, niagara, etc.). All enabled by default.
  3. Copies the C++ bridge plugin into [YourProject]/Plugins/UE_MCP_Bridge/.
  4. Enables the plugins it needs in your .uproject: UE_MCP_Bridge, PythonScriptPlugin, plus any of Niagara, PCG, GameplayAbilities, EnhancedInput required by the categories you kept.
  5. Writes .ue-mcp.json (project config) and scaffolds an empty ue-mcp.yml (for custom flows) if missing.
  6. Detects installed MCP clients (Claude Code, Claude Desktop, Cursor) and writes the config for each you confirm.
  7. Claude Code only: optionally installs a PostToolUse hook that prompts agents to file a GitHub issue when they fall back to execute_python, and copies bundled workflow skills into .claude/.

2. Open the Editor

  1. Open your project.
  2. When the editor asks whether to compile UE_MCP_Bridge, say yes. First-time compile takes ~30-60 seconds.

The bridge starts automatically once the editor finishes loading, listening on ws://localhost:9877.

Verify the bridge

  1. Open Window → Output Log.

  2. Filter on LogMCPBridge.

  3. Confirm this line appears:

    LogMCPBridge: [UE-MCP] Bridge listening on ws://localhost:9877

If it's not there, see Troubleshooting.

3. Verify the connection

  1. Open your AI client.

  2. Paste:

    Run project(action="get_status").
  3. Look for "editorConnected": true in the response.

4. Try things

Good first prompts:

What's in my level right now?
List all blueprints under /Game/Blueprints.
Place a directional light at (0, 0, 500), a SkyLight at the origin, then build lighting at preview quality.
Run the Neon Shrine demo so I can see what you can build.
Read the Blueprint at /Game/Blueprints/BP_Player and explain what it does.

Direct tool-call syntax also works:

level(action="get_outliner")
asset(action="list", directory="/Game/")
demo(action="step", stepIndex=1)
reflection(action="reflect_class", className="StaticMeshActor")

See the Tool Reference for everything available.

Updating

Run from your project directory whenever a new UE-MCP version ships:

npx ue-mcp update

Switching projects

To point ue-mcp at a different .uproject without restarting your AI client, ask:

Switch to the project at C:/path/to/Other.uproject.

UE-MCP redeploys the bridge and reconnects. (Calls project(action="set_project") under the hood.)

Manual configuration

If you'd rather skip npx ue-mcp init, edit the MCP client config yourself.

Use forward slashes on Windows

C:/Users/..., not C:\Users\.... Backslashes need escaping inside JSON.

.mcp.json in your project root:

{
  "mcpServers": {
    "ue-mcp": {
      "command": "npx",
      "args": ["ue-mcp", "C:/path/to/MyGame.uproject"]
    }
  }
}

claude_desktop_config.json:

{
  "mcpServers": {
    "ue-mcp": {
      "command": "npx",
      "args": ["ue-mcp", "C:/path/to/MyGame.uproject"]
    }
  }
}

.cursor/mcp.json:

{
  "mcpServers": {
    "ue-mcp": {
      "command": "npx",
      "args": ["ue-mcp", "C:/path/to/MyGame.uproject"]
    }
  }
}

The first run auto-deploys the C++ plugin. To deploy explicitly: npx ue-mcp update [path], then restart the editor.

Where to next