npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@us-all/unifi-mcp

v1.8.5

Published

UniFi semantic analysis MCP server — fleet health, anomaly detection, cross-site analytics on top of Cloud API

Readme

UniFi MCP Server

@us-all standard

UniFi semantic analysis library — fleet-wide health, anomaly detection, and cross-site analytics on top of the UniFi Cloud API.

Authored to the @us-all MCP Standard — token-efficient by design.

If you need broad raw API coverage including Protect/Access and write operations, see sirkirby/unifi-mcp (234 tools). Use this server when you want judgments, not just data — site health verdicts, fleet outlier detection, firmware inventory diffs, WAN uptime aggregates, and top-bandwidth clients — with built-in severity classification and curated thresholds.

Features

  • 51 tools (7 semantic analysis + 9 raw Site Manager + 35 Cloud Connector)
  • Semantic analysis — site health, reboot detection, fleet comparison, firmware inventory, WAN uptime trend, top-bandwidth clients
  • Severity classificationhealthy / info / warning / critical with curated thresholds (uptime, reboot recency, etc.)
  • Cloud Connector — access local device/client/network data via cloud proxy
  • Dual API key routing — separate keys for Site Manager API and Cloud Connector
  • Read-only — safe to use, no mutation operations

Quick Start

git clone https://github.com/us-all/unifi-mcp-server.git
cd unifi-mcp-server
pnpm install
pnpm run build

Environment Variables

| Variable | Required | Description | |---|---|---| | UNIFI_API_KEY | Yes | API key from unifi.ui.com → Settings → API | | UNIFI_API_KEY_OWNER | No | Owner account API key — enables 33 Cloud Connector tools | | UNIFI_API_URL | No | API base URL (default: https://api.ui.com/v1) | | UNIFI_TOOLS | No | Allowlist of tool categories. Categories: analysis, raw, devices, clients, networks, firewall, wan, reference. | | UNIFI_DISABLE | No | Denylist of categories. Ignored when UNIFI_TOOLS is set. |

Token Efficiency

Measured impact (without owner key, 17 tools loaded; with owner key, 52):

| Scenario | Tools | Schema tokens | |----------|-------|---------------| | default no-owner | 17 | 1,700 | | UNIFI_TOOLS=analysis | 8 | 1,000 (−42%) | | default with owner key | 52 | ~5,000 | | UNIFI_TOOLS=analysis with owner | 8 | 1,000 (−80%) |

Smallest schema footprint of all @us-all/* MCPs — fleet of 200+ devices analyzable inside a single session.

Claude Code

claude mcp add unifi \
  -e UNIFI_API_KEY=your-key \
  -e UNIFI_API_KEY_OWNER=your-owner-key \
  -- node /path/to/unifi-mcp-server/dist/index.js

Tools (45)

Analysis Tools (3)

| Tool | Description | |---|---| | list-sites-overview | Health overview of all sites with severity | | analyze-site-health | Detailed health analysis for a site by name | | detect-recent-reboots | Detect device reboots within a time window |

Site Manager API Tools (9)

| Tool | Description | |---|---| | list-hosts | List all console hosts | | get-host | Get host details by ID | | list-sites | List sites with statistics | | list-devices | List all devices across hosts | | get-isp-metrics | ISP performance metrics (optional) | | query-isp-metrics | Query ISP metrics with filters (optional) | | list-sdwan-configs | List SD-WAN configurations | | get-sdwan-config | Get SD-WAN config by ID | | get-sdwan-config-status | Get SD-WAN config status |

Cloud Connector Tools (33, requires UNIFI_API_KEY_OWNER)

| Category | Tools | |---|---| | App Info | get-app-info | | Sites | list-local-sites | | Devices | get-device-details, get-device-by-id, get-device-statistics, list-pending-devices | | Clients | list-site-clients, get-client-details | | Networks | list-networks, get-network-details, get-network-references | | WiFi | list-wifi-broadcasts, get-wifi-broadcast-details | | Hotspot | list-vouchers, get-voucher-details | | Firewall | list-firewall-zones, get-firewall-zone, list-firewall-policies, get-firewall-policy, get-firewall-policy-ordering | | ACL | list-acl-rules, get-acl-rule, get-acl-rule-ordering | | DNS | list-dns-policies, get-dns-policy | | Traffic | list-traffic-matching-lists, get-traffic-matching-list | | WAN/VPN | list-wans, list-vpn-tunnels, list-vpn-servers | | Reference | list-radius-profiles, list-device-tags, list-dpi-categories, list-dpi-applications, list-countries |

Example Usage

"Check all site health"           → list-sites-overview
"Is USM okay?"                    → analyze-site-health { name: "USM" }
"Any reboots in last 3 days?"     → detect-recent-reboots { hours: 72 }
"Who's connected to USS?"         → list-site-clients { name: "USS" }
"Show USM firewall rules"         → list-firewall-policies { name: "USM" }
"What WiFi SSIDs are on USS?"     → list-wifi-broadcasts { name: "USS" }
"Show USV network config"         → list-networks { name: "USV" }

API Key Levels

| Key Type | Base Tools (12) | Connector Tools (33) | |---|---|---| | Admin (non-owner) | ✅ | ❌ 403 | | Owner | ✅ | ✅ |

Limitations

  • Read-only: API keys only support read operations
  • Rate limit: 10,000 requests/min (v1 stable)
  • Cloud Connector: Partial local API proxy — no event logs, syslog, or detailed stats