Skip to content
VS Code

unreal engine mcp for VS Code

io.github.chir24/unreal-engine-mcp

MCP server for Unreal Engine 5 with 23 tools for game development automation.

client:VS Code transport:stdio runtime:npm

Install unreal engine mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "log-level",
      "description": "LOG_LEVEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-route-stdout-logs",
      "description": "MCP_ROUTE_STDOUT_LOGS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ue-project-path",
      "description": "UE_PROJECT_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ue-editor-exe",
      "description": "UE_EDITOR_EXE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ue-screenshot-dir",
      "description": "UE_SCREENSHOT_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-port",
      "description": "MCP_AUTOMATION_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-host",
      "description": "MCP_AUTOMATION_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-allow-non-loopback",
      "description": "MCP_AUTOMATION_ALLOW_NON_LOOPBACK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-client-mode",
      "description": "MCP_AUTOMATION_CLIENT_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-use-tls",
      "description": "MCP_AUTOMATION_USE_TLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-connection-timeout-ms",
      "description": "MCP_CONNECTION_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-request-timeout-ms",
      "description": "MCP_REQUEST_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-max-messages-per-minute",
      "description": "MCP_AUTOMATION_MAX_MESSAGES_PER_MINUTE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-automation-max-automation-requests-per-minute",
      "description": "MCP_AUTOMATION_MAX_AUTOMATION_REQUESTS_PER_MINUTE",
      "password": true
    }
  ],
  "servers": {
    "unreal-engine-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "unreal-engine-mcp-server"
      ],
      "env": {
        "LOG_LEVEL": "${input:log-level}",
        "MCP_ROUTE_STDOUT_LOGS": "${input:mcp-route-stdout-logs}",
        "UE_PROJECT_PATH": "${input:ue-project-path}",
        "UE_EDITOR_EXE": "${input:ue-editor-exe}",
        "UE_SCREENSHOT_DIR": "${input:ue-screenshot-dir}",
        "MCP_AUTOMATION_PORT": "${input:mcp-automation-port}",
        "MCP_AUTOMATION_HOST": "${input:mcp-automation-host}",
        "MCP_AUTOMATION_ALLOW_NON_LOOPBACK": "${input:mcp-automation-allow-non-loopback}",
        "MCP_AUTOMATION_CLIENT_MODE": "${input:mcp-automation-client-mode}",
        "MCP_AUTOMATION_USE_TLS": "${input:mcp-automation-use-tls}",
        "MCP_CONNECTION_TIMEOUT_MS": "${input:mcp-connection-timeout-ms}",
        "MCP_REQUEST_TIMEOUT_MS": "${input:mcp-request-timeout-ms}",
        "MCP_AUTOMATION_MAX_MESSAGES_PER_MINUTE": "${input:mcp-automation-max-messages-per-minute}",
        "MCP_AUTOMATION_MAX_AUTOMATION_REQUESTS_PER_MINUTE": "${input:mcp-automation-max-automation-requests-per-minute}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

unreal engine mcp in other clients