UniFi Network API MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| UNIFI_API_KEY | Yes | Your UniFi Network Controller API key. | |
| UNIFI_LOG_LEVEL | No | Optional log level for the server. | |
| UNIFI_API_TIMEOUT | No | Optional UniFi API timeout. | |
| UNIFI_CONTROLLER_URL | Yes | The URL of the UniFi Network Controller. | |
| UNIFI_API_RETRY_DELAY | No | Optional delay between UniFi API retry attempts. | |
| UNIFI_DEFAULT_PAGE_SIZE | No | Optional default page size for UniFi API requests. | |
| UNIFI_API_RETRY_ATTEMPTS | No | Optional number of UniFi API retry attempts. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| application_infoB | Get general information about the UniFi Network application. |
| sitesA | List all sites managed by this UniFi Network application. |
| devicesB | List all adopted devices on a site. |
| device_detailsC | Get detailed information about a specific device. |
| device_statisticsC | Get the latest statistics for a specific device. |
| clientsB | List all connected clients on a site. |
| client_detailsA | Get detailed information about a specific client. |
| vouchersB | List all hotspot vouchers for a site. |
| restart_deviceB | Restart a specific device. This will cause the device to reboot, temporarily disconnecting any connected clients. |
| power_cycle_portA | Power cycle a specific port on a device. This will temporarily disable PoE power on the port and then re-enable it. Useful for restarting PoE-powered devices like access points or cameras. |
| authorize_guestB | Authorize guest access for a client. This allows a client to access the network through the guest portal. You can optionally set limits on time, data usage, and bandwidth. |
| unauthorize_guestA | Revoke guest access for a client. This will immediately disconnect the client from the guest network. |
| create_vouchersC | Create one or more hotspot vouchers. Vouchers allow guests to access the network by entering a code. Each voucher can be used by multiple guests up to the authorized limit. |
| delete_voucherA | Delete a specific hotspot voucher. This will invalidate the voucher code and disconnect any guests using it. |
| search_devicesA | Search for devices with optional filters. Use wildcards in name_pattern: * matches any characters, . matches single character. Example: "AP-*" matches all devices starting with "AP-" |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
Most tools map to a distinct resource+action (device_details vs device_statistics vs restart_device vs power_cycle_port are clearly separable), and voucher and guest-authorization operations are unambiguous. The only real overlap is between `devices` (list adopted devices on a site) and `search_devices` (wildcard name search), where an agent could plausibly pick the wrong one; `sites` vs `devices` vs `clients` is otherwise clean.
There is a readable implied convention — bare nouns for reads (`sites`, `devices`, `clients`, `vouchers`) and verb_noun for actions (`restart_device`, `authorize_guest`, `create_vouchers`) — but it is never stated and the reads are inconsistent with the noun_phrase reads (`application_info`, `device_details`, `client_details`). Plural/singular also drifts within one resource: `vouchers` / `create_vouchers` (plural) vs `delete_voucher` (singular).
Fifteen tools is within a healthy range and the surface divides cleanly into three domains (devices, clients, vouchers) plus app/site context, with no filler tools. Each entry corresponds to a real UniFi operation rather than a variant of another tool.
The set covers device inspection/restart/PoE cycling and full voucher + guest-authorization lifecycle, but there are notable holes: no site details or site-level settings, no client block/kick (only guest auth), no WLAN/network/firewall/port-forward configuration reads, and no events/alarms/health data. An agent doing anything beyond monitoring and guest access will hit dead ends.