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

VariableRequiredSecretDescription
STUB_MODENoNoWhen 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_HOSTNoNoIP 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_KEYNoYesLocal API key generated under Settings -> Control Plane -> Integrations on the gateway. Required when STUB_MODE=false and MCP_UNIFI_CONTROLLERS_FILE is unset.
UNIFI_SITENoNoUniFi controller site name. Defaults to 'default'.
UNIFI_VERIFY_SSLNoNoWhether to verify the gateway's TLS certificate. Defaults to false because most home gateways use a self-signed cert.
MCP_UNIFI_CONTROLLERS_FILENoNoPath 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_ENABLEDNoNoComma-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_HOSTNoNoUniFi 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_KEYNoYesUniFi 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_PORTNoNoHTTPS port for the Access hub. Defaults to 12445 (the direct Access app port).
MCP_UNIFI_AUDIT_SINKNoNoAudit log sink. One of 'file' (default), 'stdout', or 'syslog'. Every tool call is recorded to a JSONL stream with secrets scrubbed.
MCP_UNIFI_AUDIT_PATHNoNoPath for the audit log file when MCP_UNIFI_AUDIT_SINK=file. Defaults to audit.jsonl in the process CWD.

Checks

CheckResultDetail
Source repository linkedPasshttps://github.com/pete-builds/mcp-unifi
Version pinnedPassEvery package has an explicit version
Secrets requestedInfoAsks for 2 secrets: UNIFI_API_KEY, UNIFI_ACCESS_API_KEY
Known package registryPassAll packages come from npm, PyPI, OCI, NuGet or MCPB
Namespace ownershipInfoName verified via GitHub account pete-builds
Registry text aimed at the AIPassDescription and settings contain no hidden characters or instructions to the AI
Code red flagsInfooci 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.

Popularity7 / 40

29 GitHub stars, no download count, 0 Hacker News posts (0 points). Best two of the three, each on a log scale.

Activity25 / 25

Last push 2026-10-27, last release 2026-10-21, 175 commits in 90 days.

Issue health8 / 15

4 closed of 4 issues, too few to judge. No data, so half marks.

Our checks20 / 20

0 warnings, each costing a fifth.

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 nameio.github.pete-builds/unifi
PublisherGitHub account pete-builds
How the name is verifiedName verified via GitHub account pete-builds. The registry ties the name prefix to that account or domain; it does not check the code.
TypeLocal: runs on your machine from a package
Packagesoci ghcr.io/pete-builds/mcp-unifi:0.27.0 no version given (streamable-http)
Version0.27.0
Published
Last updated
Source repositoryhttps://github.com/pete-builds/mcp-unifi
Websitehttps://pete-builds.github.io/mcp-unifi/
CategoryAnalytics & monitoring (assigned by keyword rule, not by hand)

Related servers in Analytics & monitoring