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.
-
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
13579unless another editor already held it. -
Add the config below to your AI client.
-
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.”
Client configuration
Section titled “Client configuration”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.
From your project directory, register the bridge in one command:
claude mcp add direktor -- npx -y unreal-direktor-mcpRun claude mcp list to confirm it’s registered.
Create or edit .cursor/mcp.json in your project (or the global ~/.cursor/mcp.json):
{ "mcpServers": { "direktor": { "command": "npx", "args": ["-y", "unreal-direktor-mcp"] } }}Cursor picks it up from Settings → MCP.
Edit ~/.codeium/windsurf/mcp_config.json:
{ "mcpServers": { "direktor": { "command": "npx", "args": ["-y", "unreal-direktor-mcp"] } }}Then reload the server list from Windsurf’s MCP settings.
Connecting without the bridge
Section titled “Connecting without the bridge”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/mcpThe 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.
Working with several editors
Section titled “Working with several editors”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.
Bridge configuration
Section titled “Bridge configuration”The bridge reads a few optional environment variables:
| Env var | Default | Purpose |
|---|---|---|
DIREKTOR_PROJECT | none | The 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_URL | http://127.0.0.1:13579/mcp | Full MCP endpoint of the running editor. The project check still applies |
DIREKTOR_PORT | 13579 | Port 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_MS | 30000 | How long a tool call waits for the editor, in milliseconds, at most 300000. run_python and known slow actions always wait 300000 |
DIREKTOR_CACHE | next to the script | Relocate the tool-list cache if the install dir is read-only |