MCP // UNREAL ENGINE

Unreal Engine MCP for fire, smoke and explosions

An MCP server lets your agent call tools while it works on your Unreal Engine project. Spatial Compiler's hosted server gives it fire, smoke, explosion and dust effects as PNG sprite sheets, which you play through a Niagara Sprite Renderer set to an 8 x 8 grid.

  • Godot 4 Available
  • Unity Manual setup
  • Unreal Engine Manual setup
  • Roblox Studio Manual setup
  • three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

FIREBALLFINAL
First frame of the fireball bake
Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. Spec →

01 // ALONGSIDE

Where Spatial Compiler fits next to editor tools

MCP is the protocol your agent uses to call tools. Servers that plug into the Unreal Editor let an agent work on actors, Blueprints and levels. Spatial Compiler's server is hosted and works from any MCP client, so your agent can call it for effects next to the other tools you connected.

Compiles are measured in meters and Unreal measures in centimeters, so the 13.4 m fireball is 1,340 units tall in your level. Every tile is square, and layout.json records meters per tile, which gives your agent the square sprite size to set (times 100).

02 // HOW TO

Play a precomputed explosion through Niagara today

  1. Add the hosted server, https://spatialcompiler.dev/mcp, to your MCP client and sign in in your browser.
  2. Ask your agent to compile the fireball example at final quality into a folder outside Content, packed into one RGBA sheet with export.pack.
  3. Drag the PNG into the Content Browser to import it, then set its Texture Group to Effects.
  4. Make a material with Blend Mode Translucent and the Unlit shading model, sample the sheet through the Particle SubUV node, and plug its color into Emissive Color and its alpha into Opacity.
  5. In a Niagara emitter, set the Sprite Renderer's Sub UV > Sub Image Size to 8 x 8 and turn on Sub UV Blending Enabled.
  6. Set the particle Lifetime to 4 s in Initialize Particle, the time the fireball's 64 frames span, and add the Sub UV Animation module in Linear mode so they play once. The frames are packed tighter at the start, so check the timing against layout.json.
mcp.json · hosted server
{
  "mcpServers": {
    "spatial-compiler": {
      "type": "http",
      "url": "https://spatialcompiler.dev/mcp"
    }
  }
}

03 // REAL OUTPUT

Two one-shots to start from

The fireball rolls up 13.4 m over 3.7 s. The impact throws earth across 3.5 m in 2.0 s.

IMPACTFINAL
First frame of the impact bake
Impact, 3.5 x 2.8 m, compiled with Spatial Compiler. Spec →

05 // FAQ

Unreal Engine MCP questions

All questions →

README.UNREAL
How do I set up Unreal Engine MCP for effects?

Add the hosted Spatial Compiler MCP URL to your MCP client and sign in through your browser. No Unreal Engine plugin is required.

Do I need to install a plugin in Unreal Engine for effects?

No. The hosted server talks to your MCP client and outputs PNG sprite sheets that you import into the Content Browser.

Does Spatial Compiler work with Unreal Engine?

Yes. You import the compiled PNG sheets and play them through a Niagara Sprite Renderer by hand.

What tools does the Unreal effects MCP give my agent?

Your agent can validate specs with check, estimate prices at $0, compile sprite sheets and run sweep for up to 16 draft variants.

How do I set the SubUV grid for a compiled Unreal sheet?

Set Sub Image Size to 8 by 8 in the Niagara Sprite Renderer to match the 64 frames of a default compile.

Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

All effects, guides and explainers →