Why Cursor and Unreal fit together
Most Unreal projects mix C++ in an IDE with assets that only exist inside the editor: levels, Blueprint graphs, materials, widgets. Cursor already edits the C++. With EngineWire connected as an MCP server, the same agent session can also work on the editor side: spawn and place actors, add Blueprint variables and components, build material graphs, run Play In Editor and take a screenshot to check the result.
Cursor sees a single MCP tool, unreal. Instead of loading hundreds of tool schemas into the context, the agent searches for what it needs in plain words, reads one contract and runs it. That keeps the context small and keeps Cursor well clear of tool-count limits.
Setup
- Install the plugin from Fab, or copy
EngineWirefrom the newest release intoYourProject/Plugins/and open the project so it builds. Full steps: quick start. - Check the native server. The status bar reads
MCP :3000 (0). On the Fab build it readsMCP off: tick Edit › Project Settings › Plugins › EngineWire › Native MCP › Enable Native MCP Server and restart the editor. - Copy the token from
<YourProject>/Saved/MCP/capability-token. Without it the endpoint answers401 Invalid capability token. - Add the server to Cursor, globally in
~/.cursor/mcp.jsonor per project in.cursor/mcp.json:
{
"mcpServers": {
"unreal-engine": {
"url": "http://127.0.0.1:3000/mcp",
"headers": {
"X-MCP-Capability-Token": "<token>"
}
}
}
}
Cursor takes the same url and headers as Claude Code, without a type field. When Cursor connects, the status bar count goes up to MCP :3000 (1) and Cursor lists one tool from this server, unreal.
Don’t commit the token. A project .cursor/mcp.json with the token pasted in is a secret. Either keep that file out of version control or use the global ~/.cursor/mcp.json. Anyone holding the token can drive your editor.
Using stdio instead
If you prefer not to handle the token at all, Cursor can launch the Node.js server, which reads the token from your project and relays to the native server. It needs Node.js 20.19 or later:
{
"mcpServers": {
"unreal-engine": {
"command": "npx",
"args": ["-y", "unreal-engine-mcp-server"],
"env": {
"UE_PROJECT_PATH": "C:/Path/To/MyGame"
}
}
}
}
Use one route per client, not both: with both configured, the unreal tool shows up twice. This route also keeps the session across editor restarts: while the editor is down every call answers NOT_CONNECTED, and the first call after it is back goes through.
Cursor and Claude Code on one editor
The native server serves up to 16 sessions at once, so Cursor and Claude Code (or a second Cursor window) can share one running editor. Each client sends the same project token. To work with two editors at once, give each its own port by setting MCP_NATIVE_PORT in the environment that launches the editor, then point each Cursor entry at its port:
$env:MCP_NATIVE_PORT = "3001"; & "C:\Program Files\Epic Games\UE_5.7\Engine\Binaries\Win64\UnrealEditor.exe" "C:\Path\To\OtherGame\OtherGame.uproject"
A sensible way to work
- Ask for a check, not just a change. “Spawn a row of five crates along X and then take a viewport screenshot” lets the agent see whether they landed where you meant.
- Name your conventions once. Put folder and naming rules in the plugin’s Server Instructions setting (native route) or your Cursor rules (stdio route), for example “Widgets are named WBP_* under /Game/UI.”
- Keep the editor in front. Unreal throttles a background editor; turn off Editor Preferences › General › Performance › Use Less CPU when in Background so Play In Editor checks run at full speed while you type in Cursor.
- Commit first. Deletes need a per-call consent grant, and
control_editor.undosteps back through editor transactions, but source control is still your real safety net.
Questions
Does Cursor need anything installed besides the plugin?
Cursor says it can’t connect.
MCP :3000 rather than MCP off, and that the URL ends in /mcp. A 401 means the token is missing or wrong. More in troubleshooting.Does it work with Windsurf too?
~/.codeium/windsurf/mcp_config.json, and any client with Streamable HTTP and custom headers can use the native URL.