Skip to content

Quick Setup

Direktor connects through a small npm bridge, unreal-direktor-mcp, that runs with npx. It works on every MCP client, including the ones that don’t speak Streamable HTTP directly, and it caches the tool list so your AI session survives editor restarts.

  1. Make sure the Direktor plugin is enabled and the editor is running (see Installation). The setup panel under Window → Direktor shows the server listening and its port, which is 13579 unless another editor already held it.

  2. Add the config below to your AI client.

  3. Restart or reload your client so it picks up the new MCP server, then ask it to do something in the editor — for example, “spawn a cube at the origin.”

Every client uses the same bridge command. Pick your client below.

Open Settings → Developer → Edit Config to find claude_desktop_config.json, then add:

{
"mcpServers": {
"direktor": {
"command": "npx",
"args": ["-y", "unreal-direktor-mcp"]
}
}
}

Restart Claude Desktop. Direktor’s tools appear under the MCP tools menu.

If your client supports a direct Streamable HTTP MCP endpoint, you can skip the npm package entirely and point it at the loopback URL:

http://127.0.0.1:13579/mcp

The bridge is still the recommended path because it works on every client and keeps a cached tool list so the client can start and list tools even before the editor is up. It also finds your project’s editor when that editor is not on 13579: if another editor already holds the port, Direktor picks the next free one, and the setup panel shows which. A direct URL has to be updated by hand in that case.

A bridge bound to a project only sends calls to that project’s editor. It takes the project from --project <value>, then the DIREKTOR_PROJECT environment variable, then the first .uproject found walking up from its working directory. The value can be a .uproject path, a folder holding one, or the project name. Clients that start the bridge in your project folder bind automatically. For a global config such as Claude Desktop’s, add "env": { "DIREKTOR_PROJECT": "MyProject" } to the direktor entry. Troubleshooting has the details.

The bridge reads a few optional environment variables:

Env varDefaultPurpose
DIREKTOR_PROJECTnoneThe project this session works on: a .uproject path, a folder holding one, or a project name. The --project <value> argument does the same and wins over it
DIREKTOR_URLhttp://127.0.0.1:13579/mcpFull MCP endpoint of the running editor. The project check still applies
DIREKTOR_PORT13579Port only, used when DIREKTOR_URL is unset. For a bridge bound to a project it is only the fallback; the bridge finds the project’s editor on whatever port it uses
DIREKTOR_CALL_MS30000How long a tool call waits for the editor, in milliseconds, at most 300000. run_python and known slow actions always wait 300000
DIREKTOR_CACHEnext to the scriptRelocate the tool-list cache if the install dir is read-only