/unifi:unififrom unifi
Queries UniFi network controllers for connected clients, devices, access points, switches, gateways, network health, site health, alarms, events, WiFi configs (SSIDs), controller sysinfo, and authenticated user info via the unifi-rmcp MCP server.
Ships in unifi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Access to a UniFi network controller via the unifi-rmcp MCP server. Data is fetched from the documented Network Integration API or internal controller APIs using X-API-KEY authentication. Mutating actions require MCP admin authorization.
All operations use a single unifi MCP tool with an action parameter:
unifi(action="clients") # who's connected
unifi(action="devices") # APs, switches, gateways
unifi(action="health") # site health summary
unifi(action="wlans") # WiFi network configs
unifi(action="alarms") # active alarms
unifi(action="events") # recent controller events
unifi(action="sysinfo") # controller version/uptime
unifi(action="me") # authenticated user info
unifi(action="help") # built-in documentation
Generated action families are also available:
unifi(action="official_list_clients", params={"siteId": "<uuid>"})
unifi(action="unifi_list_alarms")
unifi(action="list_clients", params={"siteId": "<uuid>"})
unifi(action="list_clients", params={"prefer": "internal"})
Action surface summary:
official_*: 78 documented Network Integration API operations; mutating operations require admin authorization.unifi_*: model-backed internal controller actions; runtime rows are exposed as endpoint actions.siteId or prefer="official" is supplied.Tool name: unifi
Required parameter: action (string)
| action | description | extra params |
|---|---|---|
clients | Connected wireless and wired clients | — |
devices | Network devices: APs, switches, gateways | — |
wlans | WiFi network configurations (SSID/band/security/VLAN) | — |
health | Site health summary (subsystems, AP counts, client counts) | — |
alarms | Active alarms and alerts | — |
events | Recent controller events | optional limit |
sysinfo | Controller version, build, hostname, uptime, timezone | — |
me | Authenticated user info (name, email, role) | — |
help | Returns built-in action documentation | — |
| family | description | extra params |
|---|---|---|
official_* | Documented Network Integration API under /proxy/network/integration/v1 | path params like siteId, networkId; query; body; admin auth for mutations |
unifi_* | Internal controller-compatible actions under /proxy/network/api/s/{site} and /proxy/network/v2/api/site/{site} | query; body; admin auth for mutations |
| hybrid actions | list_clients, list_devices, list_networks, list_wifi, get_system_info | uses internal actions by default; pass siteId or prefer="official" for official API |
Internal controller actions usually return: {"meta": {"rc": "ok"}, "data": [...]}
Always index into ["data"] for the actual records.
Official official_* actions return the documented Network Integration API response shape for that endpoint. Hybrid actions return the shape of whichever family they resolve to.
Exception — me: Returns {"data": {...}} (object, not array). The /api/self endpoint
it calls does not use the /proxy/network prefix — this is intentional and unique to this action.
# List connected clients
unifi(action="clients")
# → data[].{hostname, mac, ip, is_wired, essid, sw_port}
# List network devices
unifi(action="devices")
# → data[].{name, model, type, mac, ip, state, state_str}
# WiFi networks (configurations, not per-SSID client counts)
unifi(action="wlans")
# → data[].{name, band, security, enabled, vlan_enabled, vlanid}
# Health overview
unifi(action="health")
# → data[].{subsystem, status, num_ap, num_disconnected, num_user, num_guest}
# Recent controller events
unifi(action="events", params={"limit": 25})
# → data[] event records; limit truncates the returned array
# Controller info
unifi(action="sysinfo")
# → data[0].{version, build, hostname, uptime, timezone}
# Current user
unifi(action="me")
# → data.{name, email, role, is_super_admin}
Binary: /home/jmagar/workspace/unifi-rmcp/target/release/runifi
If the binary does not exist, build it first:
cd /home/jmagar/workspace/unifi-rmcp && cargo build --release
# or run without building:
cargo run --bin runifi -- <command>
| command | output |
|---|---|
runifi clients | HOSTNAME / MAC / IP / TYPE / SSID or PORT |
runifi devices | NAME / TYPE / MAC / STATE / IP |
runifi wlans | SSID / BAND / VLAN / SECURITY |
runifi health | subsystem status with AP and client counts |
runifi alarms | [key] message per alarm |
runifi events [--limit N] | recent controller events; optional limit truncates returned events |
runifi sysinfo | Version, Build, Hostname, Uptime, Timezone |
runifi me | Name, Email, Role, Super admin flag |
All commands accept --json for raw JSON output.
# Examples
runifi clients
runifi devices --json
runifi health
Use when neither MCP nor CLI is available. Requires UNIFI_URL and UNIFI_API_KEY in environment.
Auth: X-API-KEY header — only works on UniFi OS consoles (UDM, UDR, UCG, UX, UDW).
TLS: Self-signed certs are normal — always use -sk with curl.
Site: Defaults to default.
UDM/UniFi OS paths (include /proxy/network prefix):
SITE=${UNIFI_SITE:-default}
# Clients
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/stat/sta" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data[] | {hostname, mac, ip, is_wired}'
# Devices
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/stat/device" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data[] | {name, type, mac, ip, state}'
# WLANs
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/rest/wlanconf" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data[] | {name, band, security, enabled}'
# Health
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/stat/health" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data'
# Alarms
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/rest/alarm" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data[] | {key, msg}'
# Events
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/rest/event" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data[]'
# Sysinfo
curl -sk "$UNIFI_URL/proxy/network/api/s/$SITE/stat/sysinfo" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data[0]'
# Me
curl -sk "$UNIFI_URL/proxy/network/api/self" \
-H "X-API-KEY: $UNIFI_API_KEY" | jq '.data'
Legacy controllers (UNIFI_LEGACY=true, typically port 8443): use the same paths but
omit the /proxy/network prefix entirely.
me has a unique path. On modern UniFi OS hardware it uses
/proxy/network/api/self rather than the site-scoped /api/s/{site} prefix.
wlans is configuration, not client counts. It returns SSID names, band, security
mode, and VLAN settings. To count clients per SSID, cross-reference clients by essid.
Wireless vs wired clients. In clients data: is_wired=false means wireless — check
essid for the SSID. is_wired=true means wired — check sw_port for the switch port.
Device state. In devices data: state==1 means connected. Prefer state_str for
human display; fall back to checking state==1 when state_str is absent.
Self-signed TLS is expected. The UniFi controller uses a self-signed certificate by
default. UNIFI_SKIP_TLS_VERIFY=true is the default in unifi-rmcp; use -sk in curl.
meta.rc should be "ok". If the UniFi API returns an error, meta.rc will not be
"ok". The client raises an HTTP error in this case, so you'll see an anyhow error rather
than an unexpected data shape.
| Variable | Purpose | Default |
|---|---|---|
UNIFI_URL | Controller base URL, e.g. https://192.168.1.1 | required |
UNIFI_API_KEY | X-API-KEY header value | required |
UNIFI_SITE | Site name | default |
UNIFI_SKIP_TLS_VERIFY | Skip TLS certificate check | true |
UNIFI_LEGACY | Omit /proxy/network prefix (legacy controllers) | false |
UNIFI_MCP_PORT | MCP server bind port | 40030 |
UNIFI_MCP_TOKEN | Static bearer token for MCP auth | — |
UNIFI_MCP_NO_AUTH | Disable MCP auth (loopback only) | — |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
unifi@dendrite is listed by dinglebear-ai/dendrite — review the source before installing
npx claudepluginhub dinglebear-ai/dendrite --plugin unifi