Sign in
mcp server · pete-builds.github.io

UniFi Gateway

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

What it says

The record the registry holds

How you get it

There is no address to call. This one is a package you install and run yourself, wherever your assistant runs.

ghcr.io/pete-builds/mcp-unifi:0.21.1 · oci
the record Copied from the official MCP registry, exactly as it holds it.
{
  "server": {
    "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
    "name": "io.github.pete-builds/unifi",
    "description": "Safe-by-default UniFi MCP: Network + Protect + Access, multi-site, dry-run, audit log.",
    "title": "UniFi Gateway",
    "repository": {
      "url": "https://github.com/pete-builds/mcp-unifi",
      "source": "github"
    },
    "version": "0.21.1",
    "websiteUrl": "https://pete-builds.github.io/mcp-unifi/",
    "packages": [
      {
        "registryType": "oci",
        "identifier": "ghcr.io/pete-builds/mcp-unifi:0.21.1",
        "runtimeHint": "docker",
        "transport": {
          "type": "streamable-http",
          "url": "http://localhost:3714/mcp"
        },
        "environmentVariables": [
          {
            "description": "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.",
            "format": "string",
            "default": "true",
            "choices": [
              "true",
              "false"
            ],
            "name": "STUB_MODE"
          },
          {
            "description": "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.",
            "format": "string",
            "name": "UNIFI_HOST"
          },
          {
            "description": "Local API key generated under Settings -> Control Plane -> Integrations on the gateway. Required when STUB_MODE=false and MCP_UNIFI_CONTROLLERS_FILE is unset.",
            "format": "string",
            "isSecret": true,
            "name": "UNIFI_API_KEY"
          },
          {
            "description": "UniFi controller site name. Defaults to 'default'.",
            "format": "string",
            "default": "default",
            "name": "UNIFI_SITE"
          },
          {
            "description": "Whether to verify the gateway's TLS certificate. Defaults to false because most home gateways use a self-signed cert.",
            "format": "string",
            "default": "false",
            "choices": [
              "true",
              "false"
            ],
            "name": "UNIFI_VERIFY_SSL"
          },
          {
            "description": "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.",
            "format": "string",
            "name": "MCP_UNIFI_CONTROLLERS_FILE"
          },
          {
            "description": "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.",
            "format": "string",
            "default": "network",
            "name": "MCP_UNIFI_MODULES_ENABLED"
          },
          {
            "description": "UniFi Access hub IP or hostname. Required when the access module is enabled and STUB_MODE=false. Often the same host as UNIFI_HOST.",
            "format": "string",
            "name": "UNIFI_ACCESS_HOST"
          },
          {
            "description": "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.",
            "format": "string",
            "isSecret": true,
            "name": "UNIFI_ACCESS_API_KEY"
          },
          {
            "description": "HTTPS port for the Access hub. Defaults to 12445 (the direct Access app port).",
            "format": "string",
            "default": "12445",
            "name": "UNIFI_ACCESS_PORT"
          },
          {
            "description": "Audit log sink. One of 'file' (default), 'stdout', or 'syslog'. Every tool call is recorded to a JSONL stream with secrets scrubbed.",
            "format": "string",
            "default": "file",
            "choices": [
              "file",
              "stdout",
              "syslog"
            ],
            "name": "MCP_UNIFI_AUDIT_SINK"
          },
          {
            "description": "Path for the audit log file when MCP_UNIFI_AUDIT_SINK=file. Defaults to audit.jsonl in the process CWD.",
            "format": "string",
            "default": "audit.jsonl",
            "name": "MCP_UNIFI_AUDIT_PATH"
          }
        ]
      }
    ]
  },
  "_meta": {
    "io.modelcontextprotocol.registry/official": {
      "status": "active",
      "statusChangedAt": "2026-08-16T07:13:52.573364Z",
      "publishedAt": "2026-08-16T07:13:52.573364Z",
      "updatedAt": "2026-08-16T07:13:52.573364Z",
      "isLatest": true
    }
  }
}
Make it installable

Draft an Agent Plugin from this

An MCP server is raw capability: some tools, wired to something. An Agent Plugin is the packaging that says what job it does, what it leaves behind and where it stops. The prompt below carries this record and asks for the packaging; your own assistant writes it, and nothing here is sent anywhere.

Make it installable

Draft an Agent Plugin from UniFi Gateway

Paste it into your assistant. It asks for the manifest, the server wiring and the skills, and for an honest account of what this record does not say. Read that second file first.

193 lines · the record is inside it, so nothing else is needed
Draft an Agent Plugin (agent-plugins.org, specification 1.1.0) that wraps the
MCP server described below, so that somebody could install one thing and have
an assistant that knows when and how to use it.

An Agent Plugin is one installable unit: a `plugin.json` manifest, an
`mcp.json` that wires up the servers it needs, and a `skills/` directory
where each skill is a folder holding a `SKILL.md`. Hand back every file in
full, each under its own path, ready to save.

1. Write `plugin.json` with `$schema` exactly `https://agent-plugins.org/schemas/1.1.0/plugin.schema.json`. The name is
   1 to 64 characters of a-z, 0-9, `-` and `.`, alphanumeric at both ends, with
   no `--` and no `..` in it.

2. Write `mcp.json` wiring THIS server exactly as its record declares it. A
   remote keeps the URL and the transport type as written. A package keeps the
   registry, the identifier and the version as written. Do not invent a command,
   a port, a flag or an argument that is not in the record.

3. Every secret stays an input. No key, token, password or connection string
   belongs in either file. Declare what has to be supplied, name it, and say what
   it is for.

4. Do not invent tools. The record lists the tools it lists, and if it lists
   none then the honest plugin says the tool list was not published rather than
   guessing one from the description.

5. Skills are jobs, not tools. Write one skill per thing somebody would actually
   ask for, and inside each one say when to reach for this server, what a good
   result looks like, and what to do when it comes back empty. A skill per tool
   is a manual page with a different filename.

6. Say where it stops. Name what this plugin will not do — what it has no tool
   for, what needs a person, and what it must not be pointed at. A plugin with no
   stated edge reads as one with no edge.

7. Keep the author's own words for the description. If you would rather say it
   differently, say yours somewhere else and leave theirs where it is.

8. Record which version of the server you wrapped, and where the record came
   from, at the top of `plugin.json`'s description or in the readme. A plugin
   nobody can trace back to a version is one nobody can update.

Produce a second file alongside them, `LIMITS.md`, and treat it as the more
important of the two. The plugin is for whoever installs it. This is for
whoever has to decide whether installing it is a good idea, and that is
usually a different person who will never read the manifest.

It has three parts.

**What this is built from.** One paragraph: whose server it is, what the
record says it does, which version, and the fact that the record is all you
had. Say plainly that nobody ran it.

**What the record does not say.** One entry per gap. Whether the tool list was
published. What the server does with what it reads. What it costs. Whether it
writes anything anywhere. What credentials it will ask for and what those
credentials can reach. An unanswered question stays an unanswered question:
do not fill one in from the description or from what similar servers usually do.

**What a person has to check before trusting it.** The specific things
somebody should verify for themselves, in the order that would stop them
soonest if the answer is bad.

Write it in plain English, and do not soften it. A plugin drafted from a
directory record is a starting point to argue with, not something to install
into anything that matters.

The server record follows, exactly as the public index holds it. It is
everything I have: nobody has run this server, called a tool on it, or checked
that the address answers.

```json
{
  "server": {
    "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
    "name": "io.github.pete-builds/unifi",
    "description": "Safe-by-default UniFi MCP: Network + Protect + Access, multi-site, dry-run, audit log.",
    "title": "UniFi Gateway",
    "repository": {
      "url": "https://github.com/pete-builds/mcp-unifi",
      "source": "github"
    },
    "version": "0.21.1",
    "websiteUrl": "https://pete-builds.github.io/mcp-unifi/",
    "packages": [
      {
        "registryType": "oci",
        "identifier": "ghcr.io/pete-builds/mcp-unifi:0.21.1",
        "runtimeHint": "docker",
        "transport": {
          "type": "streamable-http",
          "url": "http://localhost:3714/mcp"
        },
        "environmentVariables": [
          {
            "description": "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.",
            "format": "string",
            "default": "true",
            "choices": [
              "true",
              "false"
            ],
            "name": "STUB_MODE"
          },
          {
            "description": "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.",
            "format": "string",
            "name": "UNIFI_HOST"
          },
          {
            "description": "Local API key generated under Settings -> Control Plane -> Integrations on the gateway. Required when STUB_MODE=false and MCP_UNIFI_CONTROLLERS_FILE is unset.",
            "format": "string",
            "isSecret": true,
            "name": "UNIFI_API_KEY"
          },
          {
            "description": "UniFi controller site name. Defaults to 'default'.",
            "format": "string",
            "default": "default",
            "name": "UNIFI_SITE"
          },
          {
            "description": "Whether to verify the gateway's TLS certificate. Defaults to false because most home gateways use a self-signed cert.",
            "format": "string",
            "default": "false",
            "choices": [
              "true",
              "false"
            ],
            "name": "UNIFI_VERIFY_SSL"
          },
          {
            "description": "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.",
            "format": "string",
            "name": "MCP_UNIFI_CONTROLLERS_FILE"
          },
          {
            "description": "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.",
            "format": "string",
            "default": "network",
            "name": "MCP_UNIFI_MODULES_ENABLED"
          },
          {
            "description": "UniFi Access hub IP or hostname. Required when the access module is enabled and STUB_MODE=false. Often the same host as UNIFI_HOST.",
            "format": "string",
            "name": "UNIFI_ACCESS_HOST"
          },
          {
            "description": "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.",
            "format": "string",
            "isSecret": true,
            "name": "UNIFI_ACCESS_API_KEY"
          },
          {
            "description": "HTTPS port for the Access hub. Defaults to 12445 (the direct Access app port).",
            "format": "string",
            "default": "12445",
            "name": "UNIFI_ACCESS_PORT"
          },
          {
            "description": "Audit log sink. One of 'file' (default), 'stdout', or 'syslog'. Every tool call is recorded to a JSONL stream with secrets scrubbed.",
            "format": "string",
            "default": "file",
            "choices": [
              "file",
              "stdout",
              "syslog"
            ],
            "name": "MCP_UNIFI_AUDIT_SINK"
          },
          {
            "description": "Path for the audit log file when MCP_UNIFI_AUDIT_SINK=file. Defaults to audit.jsonl in the process CWD.",
            "format": "string",
            "default": "audit.jsonl",
            "name": "MCP_UNIFI_AUDIT_PATH"
          }
        ]
      }
    ]
  },
  "_meta": {
    "io.modelcontextprotocol.registry/official": {
      "status": "active",
      "statusChangedAt": "2026-08-16T07:13:52.573364Z",
      "publishedAt": "2026-08-16T07:13:52.573364Z",
      "updatedAt": "2026-08-16T07:13:52.573364Z",
      "isLatest": true
    }
  }
}
```

The server is listed as "UniFi Gateway".
What this is

MCP server

application/mcp-server-record+jsonlocal · you run it yourselfversion 0.21.1last seen 2026-08-23

These are the publisher's own words, filed by them with the official MCP registry and mirrored here. This catalog did not read them from the publisher and has not run, called or installed anything.

Where it lives

The publisher's own address

https://pete-builds.github.io/mcp-unifi/

The address the publisher put in their registry record, printed as they wrote it. Nobody here has opened it.