Claude Game Studio

Unreal Engine MCP: connect Claude Code

Unreal Engine MCP connects Claude Code to editor tools through Epic's local server in UE 5.8.

  1. Enable Unreal MCP and All Toolsets under Edit → Plugins; restart.
  2. Enter these commands in the Unreal editor console, one line at a time.
  3. Start Claude Code in your project root and open /mcp.
ModelContextProtocol.StartServer ModelContextProtocol.GenerateClientConfig ClaudeCode

1. Start the UE 5.8 server

Use Epic's version-selected 5.8 instructions, read 30 November 2026. The unversioned documentation now opens a different engine version. Keep the version selector on 5.8 while following this page. In the Plugin Browser, enable Unreal MCP and All Toolsets; the Toolset Registry dependency enables with them.

After restarting, run the two console commands above. The first starts the local server. The second writes Claude Code's connection into .mcp.json in your project root. Open that file to check its URL before starting Claude from the same folder. A command in your system terminal does not run in Unreal's console.

The default URL is http://127.0.0.1:8000/mcp. If you prefer to register it yourself, use this HTTP command instead of adding a duplicate generated entry:

claude mcp add --transport http unreal-mcp http://127.0.0.1:8000/mcp

If you change the server's port in Editor Preferences, update the URL too. Leave the address on your own machine. Epic's server is designed for local connections; opening a port to the internet is not a setup step.

For automatic startup, use Editor Preferences → General → Model Context Protocol → Auto Start Server. Otherwise, start it from the console each time. The editor's Output Log shows whether it bound the address successfully.

  1. 1. Enable plugins

    Unreal MCP serves the connection; All Toolsets supplies operations.

  2. 2. Start local HTTP

    The editor listens on 127.0.0.1:8000/mcp.

  3. 3. Connect Claude

    The project-root .mcp.json points to that endpoint.

  4. 4. Discover and act

    Read a tool schema, make one change, inspect the saved result.

2. Discover the actual tools

Epic's 5.8 documentation describes three default discovery tools: list_toolsets, describe_toolset and call_tool. Ask Claude to list the toolsets, describe the actor toolset returned by that list, and inspect the relevant operation's arguments. Let the server supply the name; do not borrow a function name from another MCP package.

This is a menu of operations that the agent opens as needed. A short initial tool list is therefore expected. Enabling All Toolsets loads the engine's available groups; enabling a specific group lets you expose a narrower set. A connection indicator alone does not tell you which groups are usable.

Start by asking which actors are selected. Compare the returned names with the Outliner before allowing an edit. If the names belong to another project, stop and check the URL, project root and open editor windows. If a new toolset is absent, use ModelContextProtocol.RefreshTools and reconnect; new C++ declarations can require a full editor restart.

For the client-side connection syntax, use Claude Code's MCP instructions. Epic's tool discovery is different from the community Python server below, whose list directly advertises names such as spawn_actor. Keep those names in their own setup.

3. Save and test one cube

Use a new map for the first write. One falling cube makes the result easy to check: you can inspect its name, location and physics settings, then watch it land on the floor. Start from a version-control checkpoint and give Claude this request:

Use the connected Unreal MCP tools. First identify this project and list the selected actors. Discover the actor toolset and inspect its schemas. Create a new saved Basic test map. Add a static floor with collision if absent. Add one cube named MCP_PracticeCube above that floor, enable collision and physics, and save. Start Play, check that it lands on the floor, then stop Play. Report the actor transform, changed assets and relevant Output Log messages. Keep other maps and project settings unchanged.

Check the Outliner and Details panel yourself. Before Play, the cube should be above a floor with collision. During Play, it should fall and rest on the surface. After stopping, reopen the saved map and confirm the cube still exists. Play-session state and saved editor state are different checks.

If the action creates a Blueprint, inspect its compile result before using it in a level. If a request returns an error, keep that message beside the attempted operation. A screenshot of a cube does not show whether the map saved, and a saved asset does not show whether physics ran.

Compare the community Python bridge

chongdashu's unreal-mcp is a separate integration. Its Python process speaks MCP over stdio and talks to its Unreal plugin on port 55557. Its repository supplies the plugin and installation instructions. Adding Python to Claude does not install that plugin or turn on Epic's HTTP server.

Choose it when you specifically need that implementation's tool surface and can maintain its plugin. For a fresh UE 5.8 project, start with the bundled Epic route. Compare the exact operation you need rather than choosing a server by the largest advertised tool count.

These are the source and dependency versions that started the unmodified community server in our Linux probe:

git clone https://github.com/chongdashu/unreal-mcp.git git -C unreal-mcp checkout 4e5f00da50733190481311e254d16d137a84ef33 uv venv --python 3.12 unreal-mcp-env uv pip install --python unreal-mcp-env/bin/python "mcp==1.4.1" "pydantic==2.10.6" requests
claude mcp add --transport stdio unreal-community -- "/absolute/path/to/unreal-mcp-env/bin/python" "/absolute/path/to/unreal-mcp/Python/unreal_mcp_server.py"

What we ran on Linux

Unreal community Python bridge

30tools returned

content: []; no editor attached

Actual MCP responses on Linux, 30 November 2026. No engine editor was connected. Open the tool lists and responses.

On 30 November 2026 we installed the pinned community source and started its MCP process with Python 3.12.3, MCP SDK 1.4.1 and Pydantic 2.10.6. It initialized and returned 30 tool names. Among them were get_actors_in_level, find_actors_by_name, spawn_actor, set_actor_transform, create_blueprint and compile_blueprint.

An earlier attempt with the current MCP SDK stopped at FastMCP.__init__() got an unexpected keyword argument 'description'. Pinning MCP alone then exposed a Pydantic import failure. The versions above resolved startup without editing upstream source. This is a dependency observation from this revision, not a recommended change to every MCP environment.

The real get_actors_in_level response had content: [] and isError: false with no editor attached. It did not prove the level was empty. Treat an empty response as incomplete until the editor is connected and a known actor can be read. The full tool-name list and responses preserve that result.

Unreal Editor is not installed on this host. We did not enable or start Epic's embedded plugin, create an actor, compile a Blueprint or run the physics task. The official editor steps above are taken from the linked 5.8 documentation; the Linux test applies only to the community process.

Recover a missing connection

For Epic's route, inspect the Output Log, start the server, check the exact HTTP URL and restart Claude from the folder containing its configuration. If only discovery tools appear, explore toolsets before diagnosing a failure. For the Python route, check its plugin and port 55557. An HTTP configuration for port 8000 cannot connect a stdio bridge.

Use Unity MCP or Godot MCP for those engines. The Godot guide includes a recorded engine run and repaired parser error. For browser-game templates and assets, see the studio kit; its playable examples are separate from this Unreal setup.

Questions

Does Unreal Engine have an official MCP plugin?

Yes. Unreal Engine 5.8 includes Epic's experimental Unreal MCP plugin. Enable Unreal MCP and All Toolsets, restart the editor, then start the server. It connects MCP clients to engine operations exposed through the Toolset Registry.

How do I connect Unreal MCP to Claude Code?

With the plugins enabled in UE 5.8, enter ModelContextProtocol.StartServer and ModelContextProtocol.GenerateClientConfig ClaudeCode in the editor console. Start Claude Code from the project root containing the generated .mcp.json, then inspect /mcp and request the selected actors.

Why does Unreal MCP show only three tools?

Epic's default tool-search mode advertises list_toolsets, describe_toolset and call_tool. They discover and invoke the underlying toolsets. Three discovery tools do not mean only three editor operations are available. Also check that All Toolsets or your chosen individual toolsets are enabled.

Is the Python unreal-mcp server the official Epic plugin?

No. The chongdashu community server is a separate Python stdio bridge with an Unreal plugin on port 55557. Epic's embedded server uses local HTTP, normally port 8000 and path /mcp. The two configurations and tool lists are different.

Can I run Unreal MCP without Unreal Editor?

A community bridge can start and advertise tools without an editor. Our Linux probe listed 30 tools, but its actor request returned no content with no engine connected. That is not a successful level inspection. Epic's plugin setup and the physics task need an installed engine host and were not run here.