unifi
v1.13.3UniFi semantic-analysis MCP — fleet health, anomaly detection, cross-site analytics
Values you need
| Variable | What it is | |
|---|---|---|
UNIFI_API_KEY | required secret | UniFi Site Manager API key (https://unifi.ui.com). |
UNIFI_API_URL | optional | UniFi Site Manager API base URL (default: https://api.ui.com). Default: https://api.ui.com |
UNIFI_API_KEY_OWNER | optional secret | Owner-role API key — enables 33 Cloud Connector tools for per-device/per-client deep data. |
UNIFI_TOOLS | optional | Comma-separated category allowlist. Default: all categories enabled. |
UNIFI_DISABLE | optional | Comma-separated category disablelist. |
UNIFI_LOCAL_URL | optional | 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_USER | optional | Controller local account username (required when UNIFI_LOCAL_URL set). Viewer/Limited-Admin role is sufficient. |
UNIFI_LOCAL_PASS | optional secret | Controller local account password (required when UNIFI_LOCAL_URL set). |
UNIFI_LOCAL_SITE | optional | Site slug for legacy /api/s/{site}/* (default: default). Default: default |
UNIFI_LOCAL_INSECURE | optional | 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.3Add 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
- Ask the user for: UNIFI_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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