Guide
How to set up the UEFN MCP server
For UEFN 43.00. Updated November 2, 2026
Since 42.00, UEFN has an MCP server built into the editor. It lets an AI agent like Claude Code or Cursor 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, and setup takes about five minutes.
What you need
- UEFN 43.00 or later, with your project open.
- An agent that speaks MCP over HTTP, such as Claude Code or Cursor.
1. Turn on Python Editor Scripting
Open Project Settings, go to Beta Access and turn on Python Editor Scripting. You don't need to restart UEFN.
Several toolsets are built on Python and only load with it on, including programmatic scripts and Execute Python, which an agent uses for batch work like editing dozens of actors in one call.
2. Start the server
- Go to Edit, then Editor Preferences.
- Open Agentic Workflows, then Model Context Protocol.
- Tick Auto Start Server, so it starts every time UEFN opens.
- Click Start Server. The status should read
Running - http://127.0.0.1:8000/mcp.
The server only listens on your own PC. These are your editor preferences, so they apply to every project you open.
3. Connect your agent
An agent finds the server through a .mcp.json file in the folder you start it from. There are two ways to get one.
Let UEFN write it. On the same Model Context Protocol page, pick your agent under Client Selection and click Generate Client Config. UEFN saves .mcp.json in your Fortnite\FortniteGame install folder. Start your agent from that folder.
Write it yourself. Save this as .mcp.json in any folder you like, for example your project folder next to its .uefnproject file:
{
"mcpServers": {
"unreal-mcp": { "type": "http", "url": "http://127.0.0.1:8000/mcp" }
}
}
Then open a terminal in that folder and start your agent. For Claude Code, that's:
claude
Type /mcp to check that unreal-mcp shows as connected.
4. Try it
Start small and specific. A few prompts from Epic's own docs:
- "What devices can I place?"
- "Add a log when the round starts and compile it."
- "Start a session so I can test."
Name things exactly ("the Timer device", not "that thing I added"), and ask for a plan before changes that take many steps.
How the agent sees UEFN
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, 43.00 has about 56 toolsets, covering Verse, devices, entities, assets, materials, UMG, Niagara, PCG, Sequencer, play sessions and more.
43.00 renamed most toolsets and moved tools to PascalCase names with camelCase arguments, so prompts and scripts written for 42.00 fail. A few of the renames:
| Before 43.00 | 43.00 |
|---|---|
editor_toolset.toolsets.scene.SceneTools | EditorToolset.LevelToolset |
editor_toolset.toolsets.actor.ActorTools | EditorToolset.ActorToolset |
editor_toolset.toolsets.object.ObjectTools | EditorToolset.ObjectToolset |
ValkyrieToolset.VerseToolset | VerseToolset.VerseToolset |
ValkyrieToolset.DeviceToolset | ValkyrieFortniteToolset.DeviceToolset |
EditorToolset.LogsToolset | ConsoleToolset.LogsToolset |
Tool names changed the same way: add_to_scene_from_class(actor_type) is now AddToSceneFromClass(actorType). Have your agent describe a toolset before it calls one, because a guessed name fails.
If it doesn't connect
- The agent doesn't list unreal-mcp. Start it from the folder that holds
.mcp.json. - The agent started before UEFN did. Its UEFN tools stay missing for that session. In Claude Code, reconnect with
/mcp, or start it again. - Port 8000 is taken. Change Server Port Number on the same preferences page, restart UEFN, and change the port in
.mcp.jsonto match. - Two UEFN windows are open. They share one port setting, so only one gets the server. Use one editor at a time.
- The editor hitches while the agent works. Tool calls run on the editor's main thread. Epic lists this as a known issue.
- Things land in the wrong place. The tools take engine XYZ, while the editor shows Left-Up-Forward. Ask the agent to convert, and to say which one it used.