Guide
Using Claude Code with UEFN
Updated November 10, 2026
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.
- Turn on Python scripts. In Project Settings, open Beta Access and tick Enable Project Python Scripts. Several toolsets only load with it.
- 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. - Add a
.mcp.jsonfile to the folder you will start Claude Code from:
{
"mcpServers": {
"unreal-mcp": { "type": "http", "url": "http://127.0.0.1:8000/mcp" }
}
}
- Start Claude Code by running
claudein that folder, then type/mcpto check thatunreal-mcpshows as connected.
Where it goes wrong
- The 43.00 renames. UEFN 43.00 renamed most toolsets and moved tools to PascalCase names with camelCase arguments, so anything written for 42.00 fails. Have your agent describe a toolset before it calls one, because a guessed name fails.
- Claude Code started before UEFN. Its UEFN tools stay missing for that session. Reconnect with
/mcp, or start it again. - Port 8000 is taken, or two UEFN windows are open. They share one port setting, so only one editor gets the server.
- Positions land in the wrong place. The tools take engine XYZ, while the editor shows Left-Up-Forward.
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:
| Step | By hand | With Nebula |
|---|---|---|
| Connecting UEFN | Write .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 names | You track the 43.00 renames. | She already knows them. |
| UEFN knowledge | Whatever the agent remembers. | Known traps and working recipes arrive with your message, when a toolset opens and when an error matches. |
| Your Verse | The agent reads files as it goes. | A project codemap lists every Verse file, and she reads it before editing. |
| Approvals | Prompts in a terminal. | An approval dock with Allow, Always allow and Deny. |
| Reviewing changes | Read 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.