Guide

Using Claude Code with UEFN

You can use Claude Code with UEFN through the MCP server built into the editor. Turn on Python scripts in Project Settings, start the server in Editor Preferences, add a .mcp.json file and start Claude Code from that folder. Or use Nebula, a Windows app that runs the official Claude Code for you and handles the connection, UEFN's 43.00 tool names and a library of UEFN knowledge.

What UEFN's MCP server is

Since UEFN 42.00, the editor has an MCP (Model Context Protocol) server built in. It lets an AI agent such as Claude Code read your Verse, place and edit devices, change assets and run play sessions in the project you have open. It runs on your own PC at http://127.0.0.1:8000/mcp and only listens locally.

The server gives the agent just three tools: list_toolsets, describe_toolset and call_tool. The agent lists the toolsets, reads the one it needs, then calls a tool in it by name. With Python on, UEFN 43.00 has about 56 toolsets, covering Verse, devices, entities, assets, materials, UMG, Niagara, PCG, Sequencer, play sessions and more.

Connect Claude Code by hand

This is the short version. The full walkthrough, with the exact settings and fixes, is in how to set up the UEFN MCP server.

  1. Turn on Python scripts. In Project Settings, open Beta Access and tick Enable Project Python Scripts. Several toolsets only load with it.
  2. Start the server. In UEFN go to Edit, Editor Preferences, Agentic Workflows, Model Context Protocol. Tick Auto Start Server and click Start Server. The status should read Running - http://127.0.0.1:8000/mcp.
  3. Add a .mcp.json file to the folder you will start Claude Code from:
{
  "mcpServers": {
    "unreal-mcp": { "type": "http", "url": "http://127.0.0.1:8000/mcp" }
  }
}
  1. Start Claude Code by running claude in that folder, then type /mcp to check that unreal-mcp shows as connected.

Where it goes wrong

What Nebula adds on top

Nebula runs the official Claude Code, unmodified, on your own Claude Pro or Max plan. You sign in to Claude Code yourself, and Nebula never reads or stores your Claude credentials. Around it she adds:

StepBy handWith Nebula
Connecting UEFNWrite .mcp.json, start Claude Code from the right folder.Nebula connects to your open UEFN and shows a live status. Setup checks the port for you.
Tool namesYou track the 43.00 renames.She already knows them.
UEFN knowledgeWhatever the agent remembers.Known traps and working recipes arrive with your message, when a toolset opens and when an error matches.
Your VerseThe agent reads files as it goes.A project codemap lists every Verse file, and she reads it before editing.
ApprovalsPrompts in a terminal.An approval dock with Allow, Always allow and Deny.
Reviewing changesRead the terminal output.Diff cards, Open in VS Code and a Revert button per file.

Nebula also adds her own tools to the connection for level building (clustered placement, and checks for floating objects and uneven spacing) and connects to Blender when you set it up, so she can model props and bring them into UEFN. Claude Code runs in your project folder, so your project's CLAUDE.md and rules load, and a project's own Claude Code setup (hooks, skills) stays off until you choose to trust it.

Pick the by-hand route if you want a bare agent in a terminal. Pick Nebula if you want to describe what you want and watch it get built. The UEFN AI agent overview and AI that writes Verse go deeper on what that looks like.

Prefer Codex? Nebula runs it too, on your ChatGPT plan. See using ChatGPT and Codex with UEFN.

What Nebula costs

AI usage comes from your preferred agent's own plan or key. Nebula charges for its own tools and knowledge, counted in shards: one shard is one step she takes in your project. UEFN Collective members get 500 free shards, and paid plans start at $20 a month. See pricing, or set up Nebula step by step.