UniFi Gateway
io.github.pete-builds/unifi
About UniFi Gateway
UniFi Gateway is an MCP server published by the GitHub account pete-builds. Safe-by-default UniFi MCP: Network + Protect + Access, multi-site, dry-run, audit log.
It runs on your own machine: your AI client starts it from the Docker (OCI) package ghcr.io/pete-builds/mcp-unifi:0.27.0, with no version pinned.
It asks for 2 secrets: UNIFI_API_KEY and UNIFI_ACCESS_API_KEY. Give it a key with the least access that still works.
Version 0.27.0 was published on 21 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 7 automated checks on registry metadata: 4 pass, 0 warn, 0 fail, 3 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
STUB_MODE | No | No | When true, the server returns realistic mock data and requires no UniFi hardware. Defaults to true so the image is functional out of the box. |
UNIFI_HOST | No | No | IP address or hostname of the UniFi OS gateway (UCG-Fiber, UDM Pro, etc). Required when STUB_MODE=false and MCP_UNIFI_CONTROLLERS_FILE is unset. |
UNIFI_API_KEY | No | Yes | Local API key generated under Settings -> Control Plane -> Integrations on the gateway. Required when STUB_MODE=false and MCP_UNIFI_CONTROLLERS_FILE is unset. |
UNIFI_SITE | No | No | UniFi controller site name. Defaults to 'default'. |
UNIFI_VERIFY_SSL | No | No | Whether to verify the gateway's TLS certificate. Defaults to false because most home gateways use a self-signed cert. |
MCP_UNIFI_CONTROLLERS_FILE | No | No | Path to a YAML file describing multiple named controllers for multi-site management. When set, the legacy UNIFI_HOST / UNIFI_API_KEY env vars are ignored. Each entry needs name, host, api_key, and optionally port, site, verify_ssl. |
MCP_UNIFI_MODULES_ENABLED | No | No | Comma-separated list of modules to load. Known values: 'network', 'protect', 'access'. Defaults to 'network'. Set to 'network,protect,access' to enable Protect and Access tools alongside Network. Access currently ships read-only; door unlocks and credential issuance require session-token auth and are deferred. |
UNIFI_ACCESS_HOST | No | No | UniFi Access hub IP or hostname. Required when the access module is enabled and STUB_MODE=false. Often the same host as UNIFI_HOST. |
UNIFI_ACCESS_API_KEY | No | Yes | UniFi Access API key. Separate from the Network API key; generated on the Access controller's developer settings. Required when the access module is enabled and STUB_MODE=false. |
UNIFI_ACCESS_PORT | No | No | HTTPS port for the Access hub. Defaults to 12445 (the direct Access app port). |
MCP_UNIFI_AUDIT_SINK | No | No | Audit log sink. One of 'file' (default), 'stdout', or 'syslog'. Every tool call is recorded to a JSONL stream with secrets scrubbed. |
MCP_UNIFI_AUDIT_PATH | No | No | Path for the audit log file when MCP_UNIFI_AUDIT_SINK=file. Defaults to audit.jsonl in the process CWD. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/pete-builds/mcp-unifi |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 2 secrets: UNIFI_API_KEY, UNIFI_ACCESS_API_KEY |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account pete-builds |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Code red flags | Info | oci packages are not read yet |
Popularity & health: 59 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
7 forks, 176 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.pete-builds/unifi |
|---|---|
| Publisher | GitHub account pete-builds |
| How the name is verified | Name verified via GitHub account pete-builds. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | oci ghcr.io/pete-builds/mcp-unifi:0.27.0 no version given (streamable-http) |
| Version | 0.27.0 |
| Published | |
| Last updated | |
| Source repository | https://github.com/pete-builds/mcp-unifi |
| Website | https://pete-builds.github.io/mcp-unifi/ |
| Category | Analytics & monitoring (assigned by keyword rule, not by hand) |
Related servers in Analytics & monitoring
- gws-admin-mcp2/2Safe Google Workspace admin for AI agents: read-only by default,…
- entraadm MCP7/7MCP server for Microsoft Entra ID sign-in and audit-log triage…
- approval-gate-mcp7/7Fail-closed human approval gates for AI agent actions.…
- OpenWrt MCP2/2MCP server that runs on an OpenWrt router: deny-by-default policy,…
- unifi7/8UniFi semantic-analysis MCP — fleet health, anomaly detection,…
- MCP Gateway3/3Multi-tenant MCP platform with OAuth 2.1, Entra SSO, RBAC and audit…