Skip to content
Grok

UniFi Gateway for Grok

io.github.pete-builds/unifi

Safe-by-default UniFi MCP: Network + Protect + Access, multi-site, dry-run, audit log.

client:Grok transport:stdio runtime:oci

Install UniFi Gateway in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "unifi": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pete-builds/mcp-unifi:0.23.0"
      ],
      "env": {
        "STUB_MODE": "<STUB_MODE>",
        "UNIFI_HOST": "<UNIFI_HOST>",
        "UNIFI_API_KEY": "<UNIFI_API_KEY>",
        "UNIFI_SITE": "<UNIFI_SITE>",
        "UNIFI_VERIFY_SSL": "<UNIFI_VERIFY_SSL>",
        "MCP_UNIFI_CONTROLLERS_FILE": "<MCP_UNIFI_CONTROLLERS_FILE>",
        "MCP_UNIFI_MODULES_ENABLED": "<MCP_UNIFI_MODULES_ENABLED>",
        "UNIFI_ACCESS_HOST": "<UNIFI_ACCESS_HOST>",
        "UNIFI_ACCESS_API_KEY": "<UNIFI_ACCESS_API_KEY>",
        "UNIFI_ACCESS_PORT": "<UNIFI_ACCESS_PORT>",
        "MCP_UNIFI_AUDIT_SINK": "<MCP_UNIFI_AUDIT_SINK>",
        "MCP_UNIFI_AUDIT_PATH": "<MCP_UNIFI_AUDIT_PATH>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

UniFi Gateway in other clients