go-unifi-mcp is an MCP server for the UniFi Network Controller, allowing AI assistants and other clients to interact with UniFi infrastructure.
From the registry: Manage UniFi sites, devices, clients, networks, port forwarding, DNS, and firewall
$ brew install claytono/tap/go-unifi-mcphttps://github.com/claytono/go-unifi-mcp/releasesPlease install the `go-unifi-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install go-unifi-mcp** — Install via Homebrew tap, `go install`, release binary, or Docker Run: `brew install claytono/tap/go-unifi-mcp` (https://github.com/claytono/go-unifi-mcp/releases)
- **UniFi credentials** — Create an API key in the UniFi controller (Settings > Control Plane > Integrations)
Canonical MCP server config (stdio transport):
- command: `go-unifi-mcp`
- args: []
- required environment variables:
- `UNIFI_HOST`: UniFi controller URL (example: `<your-unifi-host>`)
- `UNIFI_API_KEY`: UniFi API key (preferred auth). Alternatively set UNIFI_USERNAME and UNIFI_PASSWORD. (example: `<your-api-key>`)
- optional environment variables:
- `UNIFI_USERNAME`: UniFi local admin username (alternative to API key) (example: `<your-username>`)
- `UNIFI_PASSWORD`: UniFi local admin password (alternative to API key) (example: `<your-password>`)
- `UNIFI_SITE`: UniFi site name (example: `default`)
- `UNIFI_VERIFY_SSL`: Whether to verify SSL certs (example: `true`)
- `UNIFI_TOOL_MODE`: Tool registration mode: lazy (3 meta-tools) or eager (242 tools) (example: `lazy`)
Note: Also available as a Docker image at ghcr.io/claytono/go-unifi-mcp:latest.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.UNIFI_HOSTrequiredUniFi controller URLUNIFI_API_KEYrequiredAPI key (preferred auth method)UNIFI_USERNAMEUsername for password authUNIFI_PASSWORDPassword for password authManage UniFi Access doors, credentials, policies, visitors, and events via MCP.