A read-only MCP server for UniFi Network providing access to controller system information, devices, clients, alerts, events, and DPI statistics
UniFi MCP server demonstrates solid fundamentals: all 10 tools have clear verb-noun naming (get_*, list_), descriptions are present and substantive (100-250 chars typical), and input schemas are properly typed with descriptions. Tool annotations (@read_tool decorator) are correctly applied. However, output schemas are not documented, LLMs cannot predict response structure. Parameter descriptions lack format/constraint details (e.g., 'identifier' accepts name OR MAC but doesn't specify format). Error handling is minimal, ValueError is raised but recovery guidance is absent. No pagination support despite list_* tools that could return large datasets. Overall: competent but missing production-grade polish around output documentation and error recovery.
Get per-client DPI (Deep Packet Inspection) bandwidth stats. Args: identifier: Client MAC address. Returns: App-level traffic breakdown for the client. Raises: ValueError: If no DPI data exists for the given MAC address.
Get full details for a specific connected client. Args: identifier: Hostname, IP address, or MAC address to search for. Returns: The complete client object with all fields. Raises: ValueError: If no client matches the identifier.
Get full details for a specific UniFi device. Args: identifier: Device name or MAC address to search for. Returns: The complete device object with all fields. Raises: ValueError: If no device matches the identifier.
Get UniFi site health status. Returns status for each subsystem (wan, wlan, lan, vpn) including client counts, adopted device counts, and overall status.
Get UniFi controller system information. Returns controller version, hostname, timezone, and other system details.
Output schemas not documented. LLMs cannot predict response structure (fields, types, nesting). Tools return raw dicts without schema declarations.
Identifier parameters (get_device, get_client, client_dpi) accept multiple formats (name, MAC, IP, hostname) but descriptions lack format constraints or examples. LLMs may pass invalid formats.
Error handling is minimal. ValueError exceptions provide no recovery guidance. Descriptions state 'Raises: ValueError' but do not explain what the LLM should do next (e.g., 'Try list_devices() to find valid identifiers').
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2026-07-28+ | v2 |
List recent UniFi alarms/alerts. Args: limit: Maximum number of alerts to return (default 20). Returns alerts sorted by most recent, with time, key, message, and device name.
List all active connected clients (wireless + wired). Returns each client with hostname, IP, MAC, connection type, AP name, signal strength, and data rates.
List all UniFi devices (APs, switches, gateways). Returns each device with name, model, IP, state, uptime (hours), and connected client count.
List recent UniFi events. Args: limit: Maximum number of events to return (default 20). Returns events sorted by most recent with time, key, and message.
Get top applications by bandwidth usage (DPI data). Args: limit: Number of top apps to return (default 10). Returns apps sorted by total traffic (rx + tx) in GB.
List tools (list_devices, list_clients, list_alerts, list_events) lack pagination support. No limit parameter on list_devices/list_clients; limit parameter on list_alerts/list_events has no documented max. Large result sets risk context window exhaustion.
Parameter 'limit' in list_alerts, list_events, top_apps lacks min/max constraints in description. LLMs may pass 0, negative, or absurdly large values.