unifi

v1.13.3
io.github.us-all/unifi Checked 1 hour ago Published 5 months ago

UniFi semantic-analysis MCP — fleet health, anomaly detection, cross-site analytics

Values you need

VariableWhat it is
UNIFI_API_KEYrequired secret UniFi Site Manager API key (https://unifi.ui.com).
UNIFI_API_URLoptional UniFi Site Manager API base URL (default: https://api.ui.com). Default: https://api.ui.com
UNIFI_API_KEY_OWNERoptional secret Owner-role API key — enables 33 Cloud Connector tools for per-device/per-client deep data.
UNIFI_TOOLSoptional Comma-separated category allowlist. Default: all categories enabled.
UNIFI_DISABLEoptional Comma-separated category disablelist.
UNIFI_LOCAL_URLoptional Local controller URL (e.g. https://10.10.1.1). Enables 2 local-only tools (get-port-errors, list-port-flap-summary) that surface per-port errors + SFP DDM the Cloud API does not expose. Requires LAN reachability.
UNIFI_LOCAL_USERoptional Controller local account username (required when UNIFI_LOCAL_URL set). Viewer/Limited-Admin role is sufficient.
UNIFI_LOCAL_PASSoptional secret Controller local account password (required when UNIFI_LOCAL_URL set).
UNIFI_LOCAL_SITEoptional Site slug for legacy /api/s/{site}/* (default: default). Default: default
UNIFI_LOCAL_INSECUREoptional Set to 'true' to accept self-signed cert from the local controller (typical for UDM Pro).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add unifi -e 'UNIFI_API_KEY=<UNIFI_API_KEY>' -- npx -y @us-all/unifi-mcp@1.13.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "unifi": {
      "args": [
        "-y",
        "@us-all/unifi-mcp@1.13.3"
      ],
      "command": "npx",
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "unifi": {
      "args": [
        "-y",
        "@us-all/unifi-mcp@1.13.3"
      ],
      "command": "npx",
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "UNIFI_API_KEY",
      "id": "unifi-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "unifi": {
      "args": [
        "-y",
        "@us-all/unifi-mcp@1.13.3"
      ],
      "command": "npx",
      "env": {
        "UNIFI_API_KEY": "${input:unifi-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.unifi]
command = "npx"
args = ["-y", "@us-all/unifi-mcp@1.13.3"]
env = { "UNIFI_API_KEY" = "<UNIFI_API_KEY>" }

For AI agents

  1. Ask the user for: UNIFI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list-sites-overview, analyze-site-health, detect-recent-reboots, compare-sites, firmware-inventory, wan-uptime-trend, top-clients-by-bandwidth, list-hosts, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json