Skip to content

Tool reference

unifi-mcp has 148 tools in 14 toolsets: 60 read, 59 write and 29 delete. It also has 5 prompts.

Each tool is labelled with the setting it needs:

Label Registered when
🟢 read Always
🟠 write UNIFI_ALLOW_WRITES=true
🔴 delete UNIFI_ALLOW_WRITES=true and UNIFI_ALLOW_DELETES=true

Every tool also needs its toolset to be enabled in UNIFI_TOOLSETS, which enables every toolset except raw by default (raw must be named). Most tools take an optional site argument, which defaults to UNIFI_SITE.

Every write and delete tool, and unifi_api_request when writes are enabled, also takes an optional dry_run argument (boolean), left out of the tables below. With dry_run: true the tool reads the current state and returns the first request it would send, with a field-level diff for updates, without changing anything. See Previewing changes.

List tools return {total, returned, items}: total counts the matches and returned the items sent after limit. They take search, fields and, on lists that can grow long, limit. See Narrowing list results.

  • overview: Sites, controller information and site health.
  • devices: UniFi devices (gateways, switches, access points, PDUs): status, firmware, radios, adoption and maintenance.
  • clients: Connected and known clients: lookup, blocking, reconnecting, naming and locking to an access point.
  • switching: Switch ports and port profiles, including PoE, port mirroring, link aggregation and LLDP neighbours.
  • wifi: WiFi networks (WLANs) and join QR codes.
  • networks: Networks/VLANs, WAN links, local DNS records, bandwidth profiles and dynamic DNS.
  • firewall: Port forwards, legacy firewall rules and groups, zone-based firewall policies and zones, traffic rules, and the policy table: QoS rules, NAT rules, switch ACL rules and object-oriented network policies.
  • routing: Static routes and policy-based traffic routes.
  • security: Threat management (IDS/IPS), country blocking and content filtering.
  • vpn: VPN servers and site-to-site VPNs, RADIUS profiles and RADIUS accounts.
  • hotspot: Hotspot vouchers, operators, guest authorization and the guest portal.
  • monitoring: Events, alarms, traffic and DPI statistics, traffic flows, speed tests, logs and dashboards.
  • admin: Site settings, administrators, backups, controller updates and site management.
  • raw: A raw API escape hatch for anything the other tools don’t cover. It is limited to GET requests unless writes are enabled.

Sites, controller information and site health.

Tool Access Summary
unifi_list_sites 🟢 read List sites
unifi_get_system_info 🟢 read Get controller system info
unifi_get_site_health 🟢 read Get site health

🟢 read

List the controller’s sites with id, name, description, role and device_count. Pass a site’s name (not its description) as the site argument of other tools.

Argument Type Required Description
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

Get the controller’s own details (stat/sysinfo): Network application version, hostname, timezone, uptime and whether an application update is available. To check application and device firmware updates together use unifi_check_updates. For each device’s firmware use unifi_get_firmware_status.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.

🟢 read

Get a site’s status per subsystem (wan, lan, wlan, vpn, www): status, ISP, WAN IP, latency, throughput, and device and client counts. The quickest overall check of a site. For WAN quality over time use unifi_get_dashboard.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.

UniFi devices (gateways, switches, access points, PDUs): status, firmware, radios, adoption and maintenance.

Tool Access Summary
unifi_list_devices 🟢 read List devices
unifi_get_device 🟢 read Get device details
unifi_refresh_firmware 🟠 write Refresh firmware availability
unifi_get_firmware_status 🟢 read Get firmware status
unifi_get_rf_scan 🟢 read Get RF scan results
unifi_list_ap_groups 🟢 read List AP groups
unifi_update_device 🟠 write Update device settings
unifi_set_radio 🟠 write Configure AP radio
unifi_set_outlet 🟠 write Control power outlet
unifi_restart_device 🟠 write Restart device
unifi_locate_device 🟠 write Locate device (flash LED)
unifi_upgrade_device 🟠 write Upgrade device firmware
unifi_control_rolling_upgrade 🟠 write Start/cancel rolling upgrade
unifi_provision_device 🟠 write Force provision device
unifi_adopt_device 🟠 write Adopt device
unifi_move_device 🟠 write Move device to another site
unifi_forget_device 🔴 delete Forget (remove) device
unifi_run_rf_scan 🟠 write Run RF scan
unifi_save_ap_group 🟠 write Create/update AP group
unifi_delete_ap_group 🔴 delete Delete AP group

🟢 read

List the site’s UniFi devices (gateways, switches, access points…) with state, model, firmware, IP, uptime, CPU and memory load and client counts; filter by type or state. For one device’s ports, radios and uplink use unifi_get_device.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
type "access_point" | "switch" | "gateway" | "other" Only devices of this type
state string Only this state: connected, disconnected, upgrading…
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 500)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟢 read

Get one device by MAC: its list summary plus serial, ports, radio settings and stats, outlets, WAN links, system stats, load average, PoE use and LED settings. Errors if no device has that MAC. For a switch’s ports with LLDP neighbours and profile names use unifi_list_switch_ports.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
raw boolean Return the full controller objects (large)

🟠 write

Ask the controller to re-check Ubiquiti’s servers for new device firmware (cmd/productinfo check-firmware-update). Nothing is upgraded. The check runs in the background: read the result a minute later with unifi_get_firmware_status. unifi_check_updates shows it too.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.

🟢 read

List each device’s model and firmware version, whether an upgrade is available (and to which version) or running, with the number of upgradable devices; include_available adds the firmware images the controller can install. Availability is as of the controller’s last check with Ubiquiti. To make it check again first, run unifi_refresh_firmware. unifi_check_updates also covers Network application updates.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
include_available boolean Also list firmware images available to the controller (cmd/firmware list-available)

🟢 read

Get an access point’s last RF/spectrum scan: whether a scan is running, when it last ran, and utilization and interference per channel. Returns scanning: false and no results if the AP has no scan. Start a scan with unifi_run_rf_scan.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the access point

🟢 read

List access point groups (id, name, member AP MACs, device count, default flag), which choose the APs that broadcast each WiFi network. Network 7.x+ (v2 API).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Change a device’s settings: name, LED (on/off/site default, plus colour/brightness on LED-ring devices), enable/disable (disabling turns off its LED and radios; mainly supported on APs) and management IP (DHCP or static). Only the given fields change.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
name string New display name
led "on" | "off" | "default" LED override; default follows the site-wide LED setting
led_color string LED colour as hex, e.g. #0000FF (LED-ring devices only)
led_brightness integer LED brightness 0-100 (LED-ring devices only)
disabled boolean true disables the device, false re-enables it
ip_config object Management IP configuration; static requires ip, netmask and gateway. A wrong static IP can make the device unreachable.
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🟠 write · destructive

Change one radio on an access point: channel, channel width, transmit power and minimum RSSI. Only the given fields change. Clients on that radio will briefly disconnect.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the access point
radio "ng" | "na" | "6e" | "ad" yes Radio: ng = 2.4 GHz, na = 5 GHz, 6e = 6 GHz, ad = 60 GHz
channel "auto" | integer ‘auto’ or a channel number
channel_width 20 | 40 | 80 | 160 | 240 | 320 Channel width in MHz
tx_power_mode "auto" | "high" | "medium" | "low" | "custom" Transmit power mode
tx_power integer Transmit power in dBm (sets tx_power_mode=custom)
min_rssi integer | null Minimum RSSI in dBm (e.g. -75) below which clients are kicked; null disables it
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🟠 write · destructive

Switch an outlet on a UniFi SmartPower device (USP plug/strip/PDU) on or off, toggle its auto power-cycle (modem reset), or rename it. Only the given fields change.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the SmartPower device
index integer yes Outlet index (see unifi_get_device outlets[].index)
on boolean Relay state: true = power on, false = power off
cycle_enabled boolean Automatically power-cycle the outlet when the internet connection drops
name string Outlet name

🟠 write · destructive

Restart a UniFi device. reboot_type=hard also power-cycles PoE ports on switches (connected PoE devices will reboot too).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
reboot_type "soft" | "hard" soft (default) or hard

🟠 write

Start or stop flashing a device’s LED so it can be found physically.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
enabled boolean yes true to start flashing, false to stop

🟠 write · destructive

Upgrade a device to the latest firmware known to the controller, or to a specific firmware image URL. The device is offline while it upgrades and reboots. A wrong custom image can brick the device.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
firmware_url string Upgrade to this firmware image instead of the latest (advanced)

🟠 write · destructive

Start a rolling (one-at-a-time) firmware upgrade of all devices of the given types to the latest firmware, or cancel one in progress.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
action "start" | "cancel" yes start a rolling upgrade, or cancel the one in progress
types ("uap" | "usw" | "ugw" | "uxg")[] Device types to upgrade when starting (default all: uap, usw, ugw, uxg)

🟠 write · destructive

Force the controller to re-push configuration to a device.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🟠 write · destructive

Adopt a device that is pending adoption (see unifi_list_devices, state=pending_adoption).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🟠 write · destructive

Move an adopted device from this site to another site on the same controller.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
target_site string yes Destination site: its name (e.g. ‘branch’), description, or 24-character _id (see unifi_list_sites)

🔴 delete · destructive

Remove a device from the site. It is factory-reset when next reachable and must be re-adopted to be used again.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🟠 write · destructive

Start an RF/spectrum scan on an access point. Its radios go offline for a few minutes while scanning, disconnecting clients. Fetch results with unifi_get_rf_scan.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the access point

🟠 write · destructive

Create an access point group (omit id) or update one (pass id). device_macs replaces the group’s member list when given.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string AP group ID to update; omit to create
name string Group name (required when creating)
device_macs string[] MAC addresses of the APs in the group (replaces the current list)

🔴 delete · destructive

Delete an access point group. WiFi networks assigned to it must be moved to another group first.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes AP group ID (the id field returned by the matching list tool)

Connected and known clients: lookup, blocking, reconnecting, naming and locking to an access point.

Tool Access Summary
unifi_list_clients 🟢 read List connected clients
unifi_list_known_clients 🟢 read List known clients
unifi_get_client 🟢 read Get client details
unifi_block_client 🟠 write Block client
unifi_unblock_client 🟠 write Unblock client
unifi_reconnect_client 🟠 write Reconnect (kick) client
unifi_forget_clients 🔴 delete Forget clients
unifi_update_client 🟠 write Update client settings

🟢 read

List the clients connected now, with IP, network, AP or switch port, signal, rates, usage and uptime; filter by connection type, guests, network or AP. For offline clients and stored settings (alias, fixed IP, blocked) use unifi_list_known_clients. For connection history use unifi_list_client_sessions.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
connection "all" | "wired" | "wireless" Filter by connection type (default all)
guests_only boolean Only guest clients
network string Only clients on this network (name)
ap_mac string Only clients of this access point
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 200)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟢 read

List every client the controller has stored, online or offline, most recently seen first, with alias, note, fixed IP and block status. For live connection details use unifi_list_clients or unifi_get_client.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
filter "all" | "blocked" | "fixed_ip" | "noted" | "named" Only blocked clients, clients with a fixed IP, clients with a note, or clients with an alias
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 200)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟢 read

Get one client by MAC: its stored settings (alias, note, fixed IP, blocked) merged with live connection details when it is connected, and an online flag. Errors if the controller has never seen the MAC.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
raw boolean Return the full controller objects (large)

🟠 write · destructive

Block a client from connecting to the network.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🟠 write · destructive

Unblock a previously blocked client.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🟠 write · destructive

Disconnect a wireless client so it reconnects (useful to force a roam or re-authentication).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🔴 delete · destructive

Remove clients and their history (alias, note, fixed IP, statistics) from the controller.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
macs string[] yes MAC addresses to forget

🟠 write · destructive

Set a known client’s alias (name) and note, assign/clear a fixed IP (DHCP reservation), or lock a wireless client to one access point. Only the fields given are changed.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
name string Alias to show instead of the hostname (empty string clears it)
note string Free-text note (empty string clears it)
fixed_ip string IPv4 address to reserve for this client
network_id string Network ID the fixed IP belongs to (defaults to the client’s current network; see unifi_list_networks)
clear_fixed_ip boolean Remove the fixed IP reservation
fixed_ap_mac string Lock this wireless client to the access point with this MAC address (see unifi_list_devices). It won’t roam to other APs.
clear_fixed_ap boolean Remove the AP lock so the client can roam again

Switch ports and port profiles, including PoE, port mirroring, link aggregation and LLDP neighbours.

Tool Access Summary
unifi_list_port_profiles 🟢 read List switch port profiles
unifi_save_port_profile 🟠 write Create/update switch port profile
unifi_delete_port_profile 🔴 delete Delete switch port profile
unifi_list_switch_ports 🟢 read List switch ports
unifi_set_switch_port 🟠 write Configure switch port
unifi_reset_switch_port 🟠 write Reset switch port override
unifi_power_cycle_port 🟠 write Power-cycle PoE port

🟢 read

List switch port profiles (reusable port configurations): forwarding mode, native and tagged networks, PoE, speed, isolation, storm control and port security. unifi_list_switch_ports shows which profile each port uses.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create a switch port profile (omit id) or update one (pass id; only the given fields change). Ports using the profile are reprovisioned, which can briefly interrupt traffic.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Port profile ID to update; omit to create
name string Profile name (required when creating)
native_network_id string Native (untagged) network ID (see unifi_list_networks)
tagged_vlan_mgmt "auto" | "block_all" | "custom" Tagged VLANs: auto (allow all), block_all (native VLAN only) or custom (allow all except excluded_network_ids)
excluded_network_ids string[] Network IDs NOT to tag on the port (used with tagged_vlan_mgmt=custom)
poe_mode "auto" | "pasv24" | "passthrough" | "off" PoE mode: auto (802.3af/at/bt), pasv24 (24V passive), passthrough, or off
speed "auto" | integer Link speed: ‘auto’ (autonegotiate) or a fixed speed in Mbps (10, 100, 1000, 2500, 10000…)
full_duplex boolean Full duplex when a fixed speed is set (default true)
isolation boolean Port isolation: block traffic to other isolated ports
storm_control boolean Enable broadcast/multicast/unicast storm control
op_mode "switch" | "mirror" | "aggregate" Operation mode: switch (normal), mirror (port mirroring) or aggregate (link aggregation)
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a switch port profile. Ports using it fall back to the default profile.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Port profile ID (the id field returned by the matching list tool)

🟢 read

List a switch’s ports with link state, speed, PoE, assigned profile, LLDP neighbours (what is plugged in: chassis ID, description and remote port), link aggregation and any per-port overrides configured on the device.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the switch
up boolean Only ports whose link is up (true) or down (false)
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Configure one switch port via a per-port override: name, enable/disable, port profile, native/tagged VLANs, PoE, speed, isolation, storm control, port mirroring and link aggregation. Only the given fields change; other ports’ overrides are kept (except the other members of a new aggregation group, which the controller manages). Disabling uses port security with no allowed MACs (blocks all traffic), as the UniFi UI does. op_mode=switch turns mirroring or aggregation off again.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the switch
port_idx integer yes Port number (see unifi_list_switch_ports)
name string Port name/label
enabled boolean false blocks all traffic on the port; true lifts that block (a port security MAC allow-list is kept)
profile_id string Port profile ID to assign (see unifi_list_port_profiles)
native_network_id string Native (untagged) network ID (see unifi_list_networks)
tagged_vlan_mgmt "auto" | "block_all" | "custom" Tagged VLANs: auto (allow all), block_all (native VLAN only) or custom (allow all except excluded_network_ids)
excluded_network_ids string[] Network IDs NOT to tag on the port (used with tagged_vlan_mgmt=custom)
poe_mode "auto" | "pasv24" | "passthrough" | "off" PoE mode: auto (802.3af/at/bt), pasv24 (24V passive), passthrough, or off
speed "auto" | integer Link speed: ‘auto’ (autonegotiate) or a fixed speed in Mbps (10, 100, 1000, 2500, 10000…)
full_duplex boolean Full duplex when a fixed speed is set (default true)
isolation boolean Port isolation: block traffic to other isolated ports
storm_control boolean Enable broadcast/multicast/unicast storm control
op_mode "switch" | "mirror" | "aggregate" Operation mode: switch (normal), mirror (port mirroring) or aggregate (link aggregation)
mirror_port_idx integer Mirror this port’s traffic to this port (sets op_mode=mirror). Most switches allow one mirror session.
aggregate_ports integer[] Bond these consecutive ports, starting with port_idx, into an LACP link aggregation group (sets op_mode=aggregate). Ports must run at the same speed; the other members’ own overrides are removed.
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🟠 write · destructive

Remove the per-port override from one or more switch ports so they follow the default port profile again.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the switch
port_idx integer[] yes Port numbers to reset

🟠 write · destructive

Power-cycle a PoE port on a switch, rebooting the device powered by it.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address of the switch
port_idx integer yes Port number (see unifi_list_switch_ports)

WiFi networks (WLANs) and join QR codes.

Tool Access Summary
unifi_list_wlans 🟢 read List WiFi networks
unifi_save_wlan 🟠 write Create/update WiFi network
unifi_delete_wlan 🔴 delete Delete WiFi network
unifi_get_wifi_qr 🟢 read Get WiFi join string (QR)

🟢 read

List WiFi networks (SSIDs) with security and WPA mode, bands, linked network, AP groups, bandwidth and RADIUS profiles, guest and hidden flags, client isolation, MAC filter and enabled state (passphrases redacted unless include_secrets).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)
include_secrets boolean Include secret fields such as passphrases and shared keys (redacted by default)

🟠 write · destructive

Create a WiFi network/SSID (no id) or update one (id; only the fields passed change): name, password, security, WPA3, VLAN network, bands, AP groups, guest/hidden/isolation, bandwidth profile, MAC filter, fast roaming, minimum data rates, enabled. On create, defaults are WPA2-PSK (or open without a passphrase), 2.4+5 GHz, the default network, bandwidth profile and all APs. Changes reconnect clients on that SSID.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string WLAN ID to update; omit to create
name string SSID (required on create)
passphrase string WPA passphrase (8-63 characters)
security "open" | "wpapsk" | "wpaeap" open, wpapsk (personal) or wpaeap (enterprise/RADIUS)
wpa_mode "wpa2" | "wpa1" | "auto" WPA version for WPA2/WPA mixed (default wpa2)
wpa3 "off" | "transition" | "only" WPA3: off, transition (WPA2/WPA3 mixed) or only
network_id string Network (VLAN) the SSID bridges to (see unifi_list_networks)
ap_group_ids string[] AP groups that broadcast the SSID (default: all APs)
bands ("2g" | "5g" | "6g")[] Radio bands, e.g. [‘2g’,‘5g’]
hidden boolean Hide the SSID
guest boolean Apply guest policies (guest portal / restrictions)
client_isolation boolean Block clients on this SSID from talking to each other
bandwidth_profile_id string Bandwidth profile (user group) ID, see unifi_list_bandwidth_profiles
radius_profile_id string RADIUS profile for security wpaeap, see unifi_list_radius_profiles
mac_filter object | null MAC address filter; null disables it
fast_roaming boolean 802.11r fast roaming
bss_transition boolean 802.11v BSS transition (helps steer clients between APs)
min_rate_2g_kbps integer | null Minimum 2.4 GHz data rate in kbps (e.g. 6000, 12000); null disables
min_rate_5g_kbps integer | null Minimum 5 GHz data rate in kbps; null disables
enabled boolean Whether the SSID is broadcast
extra object Additional raw wlanconf fields, e.g. schedule_enabled + schedule_with_duration, uapsd_enabled, group_rekey, dtim_ng/dtim_na, pmf_mode, iapp_enabled. Merged last.

🔴 delete · destructive

Delete a WiFi network (SSID). Clients connected to it are disconnected.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes WLAN ID (the id field returned by the matching list tool)

🟢 read

Get the standard WIFI: join string for an SSID, which phones understand when encoded as a QR code. NOTE: this reveals the WiFi password.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes WLAN ID (the id field returned by the matching list tool)

Networks/VLANs, WAN links, local DNS records, bandwidth profiles and dynamic DNS.

Tool Access Summary
unifi_list_networks 🟢 read List networks
unifi_save_network 🟠 write Create/update LAN or VLAN
unifi_delete_network 🔴 delete Delete LAN or VLAN
unifi_list_wans 🟢 read List WAN connections
unifi_update_wan 🟠 write Update WAN settings
unifi_list_dns_records 🟢 read List local DNS records
unifi_save_dns_record 🟠 write Create/update local DNS record
unifi_delete_dns_record 🔴 delete Delete local DNS record
unifi_list_bandwidth_profiles 🟢 read List bandwidth profiles
unifi_save_bandwidth_profile 🟠 write Create/update bandwidth profile
unifi_delete_bandwidth_profile 🔴 delete Delete bandwidth profile
unifi_list_dynamic_dns 🟢 read List dynamic DNS
unifi_save_dynamic_dns 🟠 write Create/update dynamic DNS

🟢 read

List every configured network (LANs/VLANs, WANs and VPNs) with purpose, subnet, VLAN, DHCP range, domain and firewall zone. For WAN connection settings and health use unifi_list_wans. For VPN settings use unifi_list_vpns.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)
include_secrets boolean Include secret fields such as passphrases and shared keys (redacted by default)

🟠 write · destructive

Create a LAN/VLAN network (no id) or update one (id; only the fields passed change). Handles purposes corporate (regular LAN), guest and vlan-only. On create, DHCP is enabled with a range derived from the subnet unless given. Use unifi_update_wan for WANs. Changing subnet/VLAN/DHCP disrupts connected clients. Use unifi_save_vpn for VPNs.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Network ID to update; omit to create
name string Network name (required on create)
purpose "corporate" | "guest" | "vlan-only" corporate (default), guest, or vlan-only (VLAN with no gateway/DHCP)
vlan integer | null VLAN ID; null removes VLAN tagging
subnet string Gateway IP and prefix, e.g. 192.168.10.1/24
dhcp_enabled boolean Run the DHCP server on this network
dhcp_start string First address of the DHCP range
dhcp_stop string Last address of the DHCP range
dhcp_lease_seconds integer DHCP lease time in seconds (default 86400)
dhcp_dns string[] DNS servers handed out by DHCP (up to 4); empty array reverts to the gateway
dhcp_gateway string | null Override the gateway handed out by DHCP; null reverts to automatic
domain_name string Domain name handed out by DHCP
igmp_snooping boolean IGMP snooping: forward multicast only to ports that joined the group
isolated boolean Network isolation: block traffic to other local networks
internet_access boolean Allow internet access (false blocks it)
mdns boolean Enable multicast DNS forwarding for this network
enabled boolean Whether the network is enabled
extra object Additional raw networkconf fields, e.g. DHCP options (dhcpd_ntp_1, dhcpd_boot_enabled/dhcpd_boot_server/dhcpd_boot_filename, dhcpd_tftp_server, dhcpd_wins_1) or IPv6 (ipv6_interface_type, ipv6_ra_enabled). Merged last.

🔴 delete · destructive

Delete a LAN/VLAN network (purpose corporate, guest or vlan-only). WAN networks cannot be deleted here. Clients on the network lose connectivity. Delete VPNs with unifi_delete_vpn.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Network ID (the id field returned by the matching list tool)

🟢 read

List WAN connections with connection type, VLAN, static IP or PPPoE user, DNS, failover and load balancing, Smart Queues and ISP speeds, plus live WAN health (status, WAN IP, ISP, uptime).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Change a WAN interface’s connection type (DHCP/static/PPPoE), VLAN, DNS, failover/load balancing or Smart Queues. Only the fields passed change. A wrong setting can take the site offline.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes WAN network (see unifi_list_wans) ID (the id field returned by the matching list tool)
type "dhcp" | "static" | "pppoe" Connection type
static_ip string Static WAN IP (type static)
netmask string Static WAN netmask, e.g. 255.255.255.0
gateway string Static WAN gateway
dns string[] Manual DNS servers; empty array reverts to ISP-provided DNS
pppoe_username string PPPoE username (type pppoe)
pppoe_password string PPPoE password (type pppoe)
vlan integer | null WAN VLAN ID (some ISPs require one); null disables
load_balance_type "failover-only" | "weighted" failover-only uses this WAN only when higher-priority WANs fail; weighted load-balances
load_balance_weight integer Weight for weighted load balancing
failover_priority integer Failover priority (lower is preferred)
smart_queues boolean Enable Smart Queues (SQM) to reduce bufferbloat
download_kbps integer Smart Queues / ISP download rate in kbps
upload_kbps integer Smart Queues / ISP upload rate in kbps
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🟢 read

List the gateway’s local DNS records (A, AAAA, CNAME, MX, TXT, SRV, NS) with name, value, TTL and enabled state. Network 8.2+ (v2 static-dns). For a public hostname that follows the WAN IP use unifi_list_dynamic_dns.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create (no id) or update (id; only fields passed change) a local DNS record served by the gateway (UniFi Network 8.2+). For A/AAAA the value is an IP; for CNAME a hostname; for MX/SRV set priority (and weight/port for SRV).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Record ID to update; omit to create
type "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "SRV" | "NS" Record type (default A on create)
name string Record name (domain), e.g. nas.home.arpa (required on create)
value string Record value: IP address, target hostname or text (required on create)
ttl integer TTL in seconds; 0 = automatic
priority integer MX/SRV priority
weight integer SRV weight
port integer SRV port
enabled boolean Whether the record is served
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a local DNS record.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes DNS record ID (the id field returned by the matching list tool)

🟢 read

List bandwidth profiles (user groups): per-client download and upload caps in kbps (“unlimited” when uncapped) that WiFi networks and clients can be assigned.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create (no id) or update (id) a bandwidth profile (user group). Rates are in kbps; -1 means unlimited.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Profile ID to update; omit to create
name string Profile name (required on create)
download_kbps integer Download cap in kbps (-1 = unlimited)
upload_kbps integer Upload cap in kbps (-1 = unlimited)

🔴 delete · destructive

Delete a bandwidth profile (user group). The default profile cannot be deleted.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Bandwidth profile ID (the id field returned by the matching list tool)

🟢 read

List the gateway’s dynamic DNS entries, which keep a public hostname pointed at the WAN IP: provider service, hostname, login, server and WAN interface (passwords redacted unless include_secrets).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
include_secrets boolean Include secret fields such as passphrases and shared keys (redacted by default)

🟠 write · destructive

Create (no id) or update (id) a dynamic DNS configuration on the gateway.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Entry ID to update; omit to create
service string Provider, e.g. dyndns, noip, afraid, duckdns, dnspark, easydns, namecheap, zoneedit, cloudflare or custom (required on create)
hostname string Hostname to update (required on create)
login string Username / login
password string Password or API token
server string Update server (custom service)
interface string WAN interface: wan (default) or wan2
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

Port forwards, legacy firewall rules and groups, zone-based firewall policies and zones, traffic rules, and the policy table: QoS rules, NAT rules, switch ACL rules and object-oriented network policies.

Tool Access Summary
unifi_list_port_forwards 🟢 read List port forwards
unifi_save_port_forward 🟠 write Create or update port forward
unifi_delete_port_forward 🔴 delete Delete port forward
unifi_list_firewall_rules 🟢 read List firewall rules (legacy)
unifi_save_firewall_rule 🟠 write Create or update firewall rule (legacy)
unifi_delete_firewall_rule 🔴 delete Delete firewall rule (legacy)
unifi_list_firewall_groups 🟢 read List firewall groups
unifi_save_firewall_group 🟠 write Create or update firewall group
unifi_delete_firewall_group 🔴 delete Delete firewall group
unifi_list_firewall_policies 🟢 read List firewall policies (zone-based)
unifi_save_firewall_policy 🟠 write Create or update firewall policy (zone-based)
unifi_delete_firewall_policy 🔴 delete Delete firewall policy (zone-based)
unifi_get_firewall_policy_ordering 🟢 read Get firewall policy order
unifi_set_firewall_policy_ordering 🟠 write Reorder firewall policies
unifi_list_firewall_zones 🟢 read List firewall zones
unifi_save_firewall_zone 🟠 write Create or update firewall zone
unifi_delete_firewall_zone 🔴 delete Delete firewall zone
unifi_list_traffic_rules 🟢 read List traffic rules
unifi_save_traffic_rule 🟠 write Create or update traffic rule
unifi_delete_traffic_rule 🔴 delete Delete traffic rule
unifi_list_qos_rules 🟢 read List QoS rules
unifi_save_qos_rule 🟠 write Create or update QoS rule
unifi_delete_qos_rule 🔴 delete Delete QoS rule
unifi_list_nat_rules 🟢 read List NAT rules
unifi_save_nat_rule 🟠 write Create or update NAT rule
unifi_delete_nat_rule 🔴 delete Delete NAT rule
unifi_list_acl_rules 🟢 read List ACL rules
unifi_save_acl_rule 🟠 write Create or update ACL rule
unifi_delete_acl_rule 🔴 delete Delete ACL rule
unifi_list_oon_policies 🟢 read List object-oriented network policies
unifi_save_oon_policy 🟠 write Create or update object-oriented network policy
unifi_delete_oon_policy 🔴 delete Delete object-oriented network policy
unifi_check_firewall_path 🟢 read Check which firewall policy applies

🟢 read

List port forwards (WAN port to internal IP and port) with protocol, WAN interface, allowed source and logging. Custom DNAT/SNAT rules are in unifi_list_nat_rules, and the rules that filter traffic in unifi_list_firewall_policies (unifi_list_firewall_rules on classic firewalls).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create a port forward (name, external_port and forward_ip required) or update one by id. Defaults on create: WAN interface ‘wan’, protocol tcp_udp, any source, enabled.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Port forward ID to update (only the fields passed are changed). Omit to create a new one.
name string Rule name (required on create)
enabled boolean Whether the rule is active (default true on create)
wan_interface "wan" | "wan2" | "both" WAN interface to listen on
protocol "tcp_udp" | "tcp" | "udp" Protocol to forward (default tcp_udp on create)
source string Allowed source: ‘any’ or an IP/CIDR
destination_ip string WAN IP to match (‘any’ for all WAN IPs; newer Network versions)
external_port string External port or range, e.g. ‘443’ or ‘8000-8100’
forward_ip string Internal IP to forward to
forward_port string Internal port or range (defaults to external_port on create)
log boolean Log forwarded connections
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a port forwarding rule.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Port forward ID (the id field returned by the matching list tool)

🟢 read

List classic firewall rules, sorted by ruleset (WAN_IN, LAN_IN, …) and rule_index, with action, protocol, source and destination. Not available on Network 11+ or on sites migrated to the zone-based firewall (Network 9+): use unifi_list_firewall_policies there.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a classic firewall rule (name, ruleset and action required) or update one by id. Not for zone-based firewall (Network 11+, or Network 9+ with zones migrated) — use unifi_save_firewall_policy there. On create, rule_index defaults to the next free index from 2000 in the ruleset (rules before the predefined ones).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Firewall rule ID to update (only the fields passed are changed). Omit to create a new one.
name string Rule name (required on create)
enabled boolean Whether the rule is active
ruleset "WAN_IN" | "WAN_OUT" | "WAN_LOCAL" | "LAN_IN" | "LAN_OUT" | "LAN_LOCAL" | "GUEST_IN" | "GUEST_OUT" | "GUEST_LOCAL" | "WANv6_IN" | "WANv6_OUT" | "WANv6_LOCAL" | "LANv6_IN" | "LANv6_OUT" | "LANv6_LOCAL" | "GUESTv6_IN" | "GUESTv6_OUT" | "GUESTv6_LOCAL" Ruleset: traffic direction and interface, e.g. WAN_IN for inbound from the internet (required on create)
rule_index integer Order within the ruleset (2000-2999 run before predefined rules, 4000+ after)
action "accept" | "drop" | "reject" What to do with matching traffic (required on create)
protocol string all (default), tcp, udp, tcp_udp, icmp, or another protocol name/number
protocol_match_excepted boolean Match every protocol except the one given
src_network_id string Source network ID
src_network_type "NETv4" | "ADDRv4" NETv4 = whole subnet, ADDRv4 = gateway IP of the network
src_address string Source IP/CIDR
src_mac string Source MAC address
src_group_ids string[] Source firewall group IDs (address and/or port group)
src_port string Source port(s) (tcp/udp only)
dst_network_id string Destination network ID
dst_network_type "NETv4" | "ADDRv4" NETv4 = whole subnet, ADDRv4 = gateway IP of the network
dst_address string Destination IP/CIDR
dst_group_ids string[] Destination firewall group IDs
dst_port string Destination port(s) (tcp/udp only)
states ("new" | "established" | "related" | "invalid")[] Connection states to match (none = all states)
logging boolean Log matching packets
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a classic firewall rule. Not available on Network 11+ or on sites migrated to zone-based firewall.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Firewall rule ID (the id field returned by the matching list tool)

🟢 read

List firewall groups (address groups, IPv6 address groups and port groups) referenced by firewall rules and policies.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create a firewall group (name and type required) or update one by id. members replaces the whole member list. The type of an existing group cannot be changed.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Firewall group ID to update (only the fields passed are changed). Omit to create a new one.
name string Group name (required on create)
type "address-group" | "ipv6-address-group" | "port-group" Group type (required on create; can’t be changed)
members string[] IPs/CIDRs (address groups) or ports/ranges like ‘80’ or ‘8000-8100’ (port groups)
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a firewall group. The controller refuses to delete groups still referenced by rules or policies.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Firewall group ID (the id field returned by the matching list tool)

🟢 read

List zone-based firewall policies (Network 9.0+) sorted by index: action, source and destination (zone and match), protocol, connection states, schedule and logging. Predefined (system) policies are left out unless include_predefined. On classic firewalls use unifi_list_firewall_rules; to find the policy that applies to a connection use unifi_check_firewall_path.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
include_predefined boolean Also return predefined/system policies
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a zone-based firewall policy (name, action, source and destination required) or update one by id (Network 9.0+). source/destination: {zone_id, matching_target: ANY|IP|NETWORK|CLIENT|REGION|…, ips | network_ids | client_macs, port_matching_type, port | port_group_id}; on update they are merged into the current endpoint. Use unifi_list_firewall_zones for zone IDs. Predefined policies cannot be changed.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Firewall policy ID to update (only the fields passed are changed). Omit to create a new one.
name string Policy name (required on create)
description string Free-text description
enabled boolean Whether the policy is active
action "ALLOW" | "BLOCK" | "REJECT" What to do with matching traffic (required on create)
source object Policy endpoint; extra controller fields are passed through
destination object Policy endpoint; extra controller fields are passed through
protocol string all (default), tcp, udp, tcp_udp, icmp, icmpv6, …
ip_version "BOTH" | "IPV4" | "IPV6" IP versions the policy matches
connection_state_type "ALL" | "RESPOND_ONLY" | "CUSTOM" Connection states matched: all, return traffic only, or connection_states
connection_states ("NEW" | "ESTABLISHED" | "RELATED" | "INVALID")[] With connection_state_type=CUSTOM
create_allow_respond boolean For ALLOW policies: also create the return-traffic policy
logging boolean Log matching traffic
schedule object e.g. {mode: ‘ALWAYS’} (default) or a custom schedule object
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a user-defined zone-based firewall policy (predefined policies are refused).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Firewall policy ID (the id field returned by the matching list tool)

🟢 read

Get the evaluation order of user-defined policies between a source and destination zone (beforeSystemDefined / afterSystemDefined policy ID lists). Uses the official integration API, so it requires API-key authentication (UNIFI_API_KEY) and Network 9.0+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
source_zone_id string yes Source zone ID (v2 _id from unifi_list_firewall_zones, or integration API id)
destination_zone_id string yes Destination zone ID

🟠 write · destructive

Set the evaluation order of user-defined policies between two zones. Pass every policy ID from unifi_get_firewall_policy_ordering, reordered (IDs are the integration API’s). Uses the official integration API, so it requires API-key authentication (UNIFI_API_KEY) and Network 9.0+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
source_zone_id string yes Source zone ID
destination_zone_id string yes Destination zone ID
before_system_defined string[] yes Policy IDs evaluated before the predefined policies, in order
after_system_defined string[] Policy IDs evaluated after the predefined policies, in order

🟢 read

List zone-based firewall zones (Network 9.0+) with zone_key, system-defined flag, network IDs and integration_id. Firewall policies and unifi_check_firewall_path refer to zones by these IDs.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a custom firewall zone (name required) or update one by id: rename it and/or set which networks it contains (network_ids replaces the list). System-defined zones cannot be renamed. Uses the official integration API, so it requires API-key authentication (UNIFI_API_KEY) and Network 9.0+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Firewall zone ID to update (only the fields passed are changed). Omit to create a new one.
name string Zone name (required on create)
network_ids string[] Network IDs in the zone (see unifi_list_networks)

🔴 delete · destructive

Delete a custom firewall zone (system-defined zones are refused). Uses the official integration API, so it requires API-key authentication (UNIFI_API_KEY) and Network 9.0+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Firewall zone ID (the id field returned by the matching list tool)

🟢 read

List traffic rules (v2 API) that block, allow or rate-limit traffic from clients or networks by app, app category, domain, IP, region or all internet, with schedule and bandwidth limit. Zone-based firewall policies are separate (unifi_list_firewall_policies).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a traffic rule (action and matching_target required) or update one by id. Targets default to all clients on create. matching_target picks what is matched: INTERNET (all traffic), DOMAIN (domains), APP (app_ids), APP_CATEGORY (app_category_ids), IP (ip_addresses), REGION (regions). Setting a bandwidth limit makes it a rate-limiting rule.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Traffic rule ID to update (only the fields passed are changed). Omit to create a new one.
description string Rule name/description
enabled boolean Whether the rule is active
action "BLOCK" | "ALLOW" What to do with matching traffic (required on create)
matching_target "INTERNET" | "DOMAIN" | "APP" | "APP_CATEGORY" | "IP" | "REGION" What the rule matches (required on create)
all_clients boolean Apply to all clients (default on create when no clients/networks are given)
client_macs string[] Apply to these client MAC addresses
network_ids string[] Apply to all clients on these network IDs (see unifi_list_networks)
domains string[] Domains, e.g. [‘example.com’] (matching_target=DOMAIN)
ip_addresses string[] IPs or CIDRs (matching_target=IP)
app_ids integer[] DPI application IDs (matching_target=APP)
app_category_ids integer[] DPI category IDs (matching_target=APP_CATEGORY)
regions string[] ISO country codes, e.g. [‘CN’,‘RU’] (matching_target=REGION)
download_limit_kbps integer Download limit (enables the bandwidth limit)
upload_limit_kbps integer Upload limit (enables the bandwidth limit)
remove_bandwidth_limit boolean Disable the bandwidth limit
schedule object e.g. {mode:‘ALWAYS’} (default) or {mode:‘EVERY_DAY’, time_range_start:‘22:00’, time_range_end:‘06:00’, …}
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a traffic management rule.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Traffic rule ID (the id field returned by the matching list tool)

🟢 read

List QoS rules from the policy table (recent Network 9.x/10.x with a UniFi gateway): objective (LIMIT, PRIORITIZE or LIMIT_AND_PRIORITIZE), rate limits in kbps, the clients/networks they apply to and the apps, IPs, regions or domains they match.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a QoS rule (name and objective required) or update one by id; only the fields passed change. LIMIT caps bandwidth (kbps), PRIORITIZE moves matching traffic to a higher-priority queue, LIMIT_AND_PRIORITIZE does both. Source defaults to all clients and destination to any traffic on create. A rule with a low limit can make the matched traffic unusable. Recent Network 9.x/10.x with a UniFi gateway; field names were taken from Network 10.6, so use extra for anything else.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string QoS rule ID to update (only the fields passed are changed). Omit to create a new one.
name string Rule name (required when creating)
enabled boolean Enable or disable the rule (default true on create)
objective "LIMIT" | "PRIORITIZE" | "LIMIT_AND_PRIORITIZE" What the rule does (required when creating)
download_limit_kbps integer Download limit in kbps (LIMIT objectives)
upload_limit_kbps integer Upload limit in kbps (LIMIT objectives)
download_burst "OFF" | "SHORT" | "LONG" Allow short or long bursts above the download limit
upload_burst "OFF" | "SHORT" | "LONG" Allow short or long bursts above the upload limit
all_clients boolean Apply to all clients (the default on create)
client_macs string[] Apply to these client MAC addresses
network_ids string[] Apply to clients on these network IDs (see unifi_list_networks)
any_destination boolean Match all traffic (the default on create)
app_ids integer[] Match these DPI application IDs
app_category_ids integer[] Match these DPI category IDs
ips string[] Match these destination IPs or CIDRs
regions string[] Match these ISO country codes, e.g. [‘US’]
web_domains string[] Match these domains, e.g. [‘example.com’]
destination_port string Match this destination port or range, e.g. ‘443’; empty string matches any port
wan_or_vpn_network string WAN or VPN network ID the rule applies to (empty for all)
schedule object e.g. {mode:‘ALWAYS’} (default) or {mode:‘EVERY_DAY’, time_range_start:‘22:00’, time_range_end:‘06:00’}
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a QoS rule.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes QoS rule ID (the id field returned by the matching list tool)

🟢 read

List NAT rules (DNAT, SNAT and masquerade, the predefined ones included) with type, interfaces, translated IP and port, source and destination. Needs Network 9.0+ with a UniFi gateway and the zone-based firewall. Simple port forwards are separate: unifi_list_port_forwards.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a NAT rule (type required) or update one by id; only the fields passed change. DNAT rewrites the destination of traffic arriving on in_interface (needs translated_ip and a destination to match); SNAT rewrites the source of traffic leaving out_interface (needs translated_ip); MASQUERADE uses the out_interface address. A wrong NAT rule can break internet access or expose internal hosts. Copy interface values from an existing rule (unifi_list_nat_rules with raw) if unsure. Network 9.0+ with a UniFi gateway and the zone-based firewall.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string NAT rule ID to update (only the fields passed are changed). Omit to create a new one.
description string Rule name/description
enabled boolean Enable or disable the rule (default true on create)
type "DNAT" | "SNAT" | "MASQUERADE" NAT type (required when creating)
protocol "all" | "tcp" | "udp" | "tcp_udp" Protocol to match (default all)
ip_version "IPV4" | "IPV6" IP version (default IPV4)
in_interface string Interface (network ID) the traffic arrives on, for DNAT
out_interface string Interface (network ID) the traffic leaves on, for SNAT and MASQUERADE
translated_ip string Address to translate to (DNAT destination or SNAT source)
translated_port string Port to translate to, e.g. ‘8080’ (empty string clears it)
source_address string Match this source IP or CIDR (empty strings for address and port match any source)
source_port string Match this source port
destination_address string Match this destination IP or CIDR
destination_port string Match this destination port
rule_index integer Position of the rule (default: after the last custom rule)
exclude boolean Exclude matching traffic from NAT instead of translating it
logging boolean Log matching traffic
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a custom NAT rule. Predefined rules can’t be deleted.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes NAT rule ID (the id field returned by the matching list tool)

🟢 read

List switch ACL rules (MAC ACLs that allow or block traffic between devices inside one network, enforced by UniFi switches). Rules are processed in acl_index order. Needs Network 9.4+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
network_id string Only rules for this network ID
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a MAC ACL rule (name, action and network_id required) or update one by id; only the fields passed change. BLOCK stops matching devices on the network from talking to each other at the switch, which can cut devices off. New rules go after the existing ones unless acl_index is given. Needs Network 9.4+; use extra for fields such as mac_mask.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string ACL rule ID to update (only the fields passed are changed). Omit to create a new one.
name string Rule name (required when creating)
enabled boolean Enable or disable the rule (default true on create)
action "ALLOW" | "BLOCK" ALLOW or BLOCK (required when creating)
network_id string Network ID the rule applies in (required when creating; see unifi_list_networks)
source_macs string[] Source device MAC addresses (replaces the list)
destination_macs string[] Destination device MAC addresses (replaces the list)
acl_index integer Position in the rule order (lower runs first)
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a switch ACL rule.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes ACL rule ID (the id field returned by the matching list tool)

🟢 read

List object-oriented networking (OON) policies: rules attached to clients or client groups that schedule or block internet access and apps (secure), limit bandwidth (qos) or route through a VPN (route). Needs Network 9.4+ with a UniFi gateway.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create an OON policy (name, target_type, targets and at least one of secure, qos or route) or update one by id; only the fields passed change, and secure, qos and route are merged into the current values one level deep. The section shapes vary by Network version: read an existing policy with unifi_list_oon_policies raw=true and copy its structure, e.g. secure: {enabled:true, internet:{mode:‘TURN_OFF_INTERNET’, schedule:{…}}}. A policy can cut targets off the internet. Needs Network 9.4+ with a UniFi gateway.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string OON policy ID to update (only the fields passed are changed). Omit to create a new one.
name string Policy name (required when creating)
enabled boolean Enable or disable the policy (default true on create)
target_type "CLIENTS" | "GROUPS" CLIENTS (targets are MAC addresses) or GROUPS (targets are client group IDs); required when creating
targets string[] Client MACs or group IDs, depending on target_type (replaces the list)
secure object Internet access and app blocking settings (controller field names)
qos object Bandwidth limit settings (controller field names)
route object VPN routing settings (controller field names)
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete an object-oriented network policy.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes OON policy ID (the id field returned by the matching list tool)

🟢 read

Read-only “what if”: for a new connection from source to destination (and destination port), work out the source and destination zones from the networks’ subnets (addresses outside every local subnet are in the External zone), then walk the enabled zone-based firewall policies between those zones in index order and report the first that matches, so the verdict (ALLOW, BLOCK or REJECT). Policies that might match first but can’t be evaluated from addresses (apps, domains, regions, IP or port groups, schedules) are listed under may_match_first, and when one of them is listed the verdict is only certain if it doesn’t match. Traffic rules that match the source and destination are listed too. It reads the configuration only: no traffic is sent, and the controller’s own evaluation can differ in details. Network 9.0+ (zone-based firewall).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
source string yes Source IP address, or the MAC address of a connected client
destination string yes Destination IP address, or the MAC address of a connected client
protocol "tcp" | "udp" | "icmp" Protocol (default tcp)
port integer Destination port (tcp/udp). Without it, policies that match specific ports are reported as may_match_first.
source_zone_id string Use this zone for the source instead of working it out (v2 _id from unifi_list_firewall_zones), e.g. the Gateway zone
destination_zone_id string Use this zone for the destination instead of working it out, e.g. the Gateway zone for the gateway’s own services

Static routes and policy-based traffic routes.

Tool Access Summary
unifi_list_routes 🟢 read List static routes
unifi_save_route 🟠 write Create or update static route
unifi_delete_route 🔴 delete Delete static route
unifi_list_traffic_routes 🟢 read List traffic routes
unifi_save_traffic_route 🟠 write Create or update traffic route
unifi_delete_traffic_route 🔴 delete Delete traffic route

🟢 read

List user-defined static routes: destination CIDR, type (nexthop, interface or blackhole), next hop or interface, distance and enabled. With active: true, return the gateway’s live routing table instead, system routes included (stat/routing; not on every version). To send chosen clients or destinations out a particular WAN or VPN use unifi_list_traffic_routes.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
active boolean Return the active routing table (including system routes)
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create a static route (name and destination required; next_hop for type=nexthop, interface for type=interface) or update one by id. Defaults on create: type nexthop, distance 1, enabled.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Route ID to update (only the fields passed are changed). Omit to create.
name string Route name (required on create)
enabled boolean Whether the route is active (default true on create)
type "nexthop" | "interface" | "blackhole" nexthop: via a gateway IP; interface: out of an interface (WAN1/WAN2 or a network ID); blackhole: drop
destination string Destination network in CIDR form, e.g. 10.20.0.0/16
next_hop string Next-hop IP address (type=nexthop)
interface string Interface (type=interface), e.g. WAN1, WAN2 or a network ID
distance integer Administrative distance
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a static route.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Route ID (the id field returned by the matching list tool)

🟢 read

List traffic routes (policy-based routing): which clients or networks, and which destinations (domains, IPs, regions or all internet), are sent out a given WAN or VPN client network, with kill switch and next hop. Plain destination-based static routes are in unifi_list_routes.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a traffic route (description, matching_target and network_id required) or update one by id. Routes matching traffic from the target clients/networks via network_id (a WAN or VPN client network). matching_target: DOMAIN (domains), IP (ip_addresses), REGION (regions) or INTERNET (all traffic; requires explicit client_macs/network_ids). Targets default to all clients for DOMAIN/IP/REGION. Find network IDs with unifi_list_networks.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Traffic route ID to update (only the fields passed are changed). Omit to create.
description string Route name
enabled boolean Whether the route is active
matching_target "DOMAIN" | "IP" | "REGION" | "INTERNET" What the route matches (required on create)
network_id string Network ID to route through (WAN or VPN client)
all_clients boolean Apply to all clients (default on create when no clients/networks are given)
client_macs string[] Apply to these client MAC addresses
network_ids string[] Apply to all clients on these network IDs (see unifi_list_networks)
domains string[] Domains (matching_target=DOMAIN)
ip_addresses string[] IPs or CIDRs (matching_target=IP)
regions string[] ISO country codes (matching_target=REGION)
kill_switch boolean Block the traffic if the route’s interface/VPN is down
next_hop string Optional next-hop IP
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a traffic route (policy-based route).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Traffic route ID (the id field returned by the matching list tool)

Threat management (IDS/IPS), country blocking and content filtering.

Tool Access Summary
unifi_get_security_settings 🟢 read Get security settings
unifi_update_threat_management 🟠 write Update threat management / DPI
unifi_update_country_blocking 🟠 write Update country/region blocking
unifi_list_threats 🟢 read List detected threats
unifi_list_content_filters 🟢 read List content filters
unifi_save_content_filter 🟠 write Create/update content filter
unifi_delete_content_filter 🔴 delete Delete content filter

🟢 read

Get threat management (IDS/IPS mode, categories, protected networks), traffic identification (DPI) and country/region blocking (geo-IP) settings. Optionally list the IPS categories the controller supports (Network 8+).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
include_categories boolean Also fetch the catalog of available IPS categories (v2 API, Network 8+)

🟠 write · destructive

Change IDS/IPS (threat management) and traffic identification settings. Only the fields given are changed. ips_mode: disabled, ids (detect only), ips (detect and block), ipsInline (inline blocking, newer gateways). Changing IPS mode can briefly interrupt traffic and raise gateway CPU load.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
ips_mode "disabled" | "ids" | "ips" | "ipsInline" Threat management mode
enabled_categories string[] IPS signature categories to enable (see unifi_get_security_settings include_categories)
enabled_networks string[] Network IDs protected by threat management
dpi_enabled boolean Traffic identification (DPI)
device_fingerprinting boolean Device identification / fingerprinting
extra object Additional raw fields for the ‘ips’ setting (e.g. honeypot or ad blocking keys on your version)

🟠 write · destructive

Configure geo-IP (country/region) blocking on the gateway (stored in the ‘usg’ site setting). Field names are version-dependent: on some Network 9+ releases region blocking moved into the zone-based firewall UI; check unifi_get_security_settings first.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
enabled boolean Turn country blocking on or off
mode "block" | "allow" block = block listed countries; allow = allow only listed countries
countries string[] ISO 3166-1 alpha-2 country codes, e.g. [‘CN’,‘RU’]
direction "both" | "ingress" | "egress" Traffic direction to filter

🟢 read

List IDS/IPS threat events detected by the gateway, newest first (default last 24 hours): signature, category, severity, action taken, protocol, and source and destination IP, port and country.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Look back this many hours (default 24)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

List content filtering profiles (blocked categories, safe search, target networks/clients). v2 API, Network 8.1+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

🟠 write · destructive

Create a content filtering profile (no id) or update one (id; only given fields change). v2 API, Network 8.1+.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Content filter ID (the id field returned by the matching list tool)
name string Profile name
enabled boolean Whether the profile is active
blocked_categories string[] Category identifiers as used by the controller (see raw output of unifi_list_content_filters)
safe_search string[] Search engines to force safe search on, e.g. [‘GOOGLE’,‘BING’,‘YOUTUBE’]
network_ids string[] Networks the filter applies to
client_macs string[] Clients the filter applies to
allow_list string[] Domains always allowed
block_list string[] Domains always blocked
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a content filtering profile.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Content filter ID (the id field returned by the matching list tool)

VPN servers and site-to-site VPNs, RADIUS profiles and RADIUS accounts.

Tool Access Summary
unifi_list_vpns 🟢 read List VPNs
unifi_save_vpn 🟠 write Create/update VPN
unifi_delete_vpn 🔴 delete Delete VPN
unifi_list_radius_profiles 🟢 read List RADIUS profiles
unifi_save_radius_profile 🟠 write Create/update RADIUS profile
unifi_delete_radius_profile 🔴 delete Delete RADIUS profile
unifi_list_radius_accounts 🟢 read List RADIUS accounts
unifi_save_radius_account 🟠 write Create/update RADIUS account
unifi_delete_radius_account 🔴 delete Delete RADIUS account

🟢 read

List the gateway’s VPN servers (WireGuard, OpenVPN, L2TP), VPN clients and site-to-site VPNs with kind, enabled state, subnet, port, WAN interface, peer and remote subnets and DNS. raw: true shows every field.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)
include_secrets boolean Include secret fields such as pre-shared keys, private keys and passwords (redacted by default)

🟠 write · destructive

Create (no id; kind required) or update (id; only fields passed change) a VPN server, VPN client or site-to-site VPN. Typed fields cover the common settings; anything else (IPsec proposals, OpenVPN/WireGuard client configuration, peer keys) goes in extra using the controller’s field names — inspect an existing VPN with unifi_list_vpns raw: true to see them, since they vary between Network versions. WireGuard server peers (users) and imported client config files are not covered by this tool. Use unifi_api_request for those.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string VPN ID to update; omit to create
kind "wireguard-server" | "openvpn-server" | "l2tp-server" | "wireguard-client" | "openvpn-client" | "ipsec-site-to-site" | "openvpn-site-to-site" VPN type (required on create)
name string Name (required on create)
enabled boolean Whether the VPN is enabled
subnet string Tunnel/client address pool as gateway/prefix, e.g. 192.168.3.1/24 (VPN servers)
port integer Listen port (WireGuard default 51820, OpenVPN 1194)
wan_interface string WAN to listen on: wan (default) or wan2 (L2TP/OpenVPN/WireGuard servers)
pre_shared_key string IPsec pre-shared key (L2TP server, IPsec site-to-site)
peer_ip string Remote peer public IP or hostname (site-to-site)
local_ip string Local WAN IP used for the tunnel (IPsec site-to-site)
remote_subnets string[] Remote networks reachable over the tunnel, CIDR (site-to-site)
radius_profile_id string RADIUS profile authenticating L2TP users (see unifi_list_radius_profiles)
dns string[] DNS servers given to VPN clients; empty array = automatic
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a VPN server, VPN client or site-to-site VPN. Connected VPN users/tunnels drop.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes VPN ID (the id field returned by the matching list tool)

🟢 read

List RADIUS profiles used by WPA-Enterprise WiFi, 802.1X switch ports and L2TP VPN (secrets redacted unless include_secrets).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
include_secrets boolean Include secret fields such as pre-shared keys, private keys and passwords (redacted by default)

🟠 write · destructive

Create (no id) or update (id; only fields passed change) a RADIUS profile pointing at external RADIUS servers. Server lists replace the existing ones.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Profile ID to update; omit to create
name string Name (required on create)
auth_servers object[] Authentication servers
accounting_enabled boolean Send RADIUS accounting to acct_servers
acct_servers object[] Accounting servers
vlan_enabled boolean Assign VLANs from RADIUS attributes
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a RADIUS profile. The built-in default profile cannot be deleted.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes RADIUS profile ID (the id field returned by the matching list tool)

🟢 read

List users of the built-in RADIUS server (used for L2TP VPN and WPA-Enterprise). Passwords redacted unless include_secrets.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
include_secrets boolean Include secret fields such as pre-shared keys, private keys and passwords (redacted by default)

🟠 write · destructive

Create (no id) or update (id) a user of the built-in RADIUS server. For per-user VLAN assignment set vlan together with tunnel_type 13 (VLAN) and tunnel_medium_type 6 (802).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Account ID to update; omit to create
name string Username (required on create)
password string Password (required on create)
vlan integer VLAN ID to assign to this user
tunnel_type integer RADIUS Tunnel-Type (3 = L2TP, 13 = VLAN)
tunnel_medium_type integer RADIUS Tunnel-Medium-Type (1 = IPv4, 6 = 802)
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

🔴 delete · destructive

Delete a user of the built-in RADIUS server.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes RADIUS account ID (the id field returned by the matching list tool)

Hotspot vouchers, operators, guest authorization and the guest portal.

Tool Access Summary
unifi_list_vouchers 🟢 read List hotspot vouchers
unifi_create_vouchers 🟠 write Create hotspot vouchers
unifi_revoke_voucher 🔴 delete Revoke hotspot voucher
unifi_authorize_guest 🟠 write Authorize guest
unifi_unauthorize_guest 🟠 write Unauthorize guest
unifi_list_hotspot_operators 🟢 read List hotspot operators
unifi_save_hotspot_operator 🟠 write Create/update hotspot operator
unifi_delete_hotspot_operator 🔴 delete Delete hotspot operator
unifi_get_guest_portal_settings 🟢 read Get guest portal settings
unifi_update_guest_portal_settings 🟠 write Update guest portal settings

🟢 read

List hotspot vouchers with code, note, duration, quota and times used, status, rate and data limits, and creation time. For who redeemed them use unifi_list_guest_authorizations.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 200)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create guest hotspot vouchers and return their codes.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
count integer Number of vouchers (default 1)
minutes integer yes Validity once redeemed, in minutes (e.g. 1440 = 1 day)
uses integer Times each voucher can be used: 1 = single use (default), 0 = unlimited, n = n uses
note string Note to attach to the vouchers
up_kbps integer Upload limit in kbps
down_kbps integer Download limit in kbps
data_limit_mb integer Data transfer limit in MB

🔴 delete · destructive

Delete/revoke a hotspot voucher.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Voucher ID (the id field returned by the matching list tool)

🟠 write · destructive

Authorize a guest client on a hotspot/guest portal network, optionally with time, bandwidth and data limits.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff
minutes integer Authorization duration in minutes (default: portal setting)
up_kbps integer Upload limit in kbps
down_kbps integer Download limit in kbps
data_limit_mb integer Data transfer limit in MB

🟠 write · destructive

Revoke a guest client’s hotspot authorization.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string yes MAC address, e.g. aa:bb:cc:dd:ee:ff

🟢 read

List hotspot operator accounts (staff who can log in to the hotspot manager to issue vouchers).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Create a hotspot operator (no id; name and password required) or update one (id; only given fields change).

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Hotspot operator ID (the id field returned by the matching list tool)
name string Operator login name (required on create)
password string Operator password
note string Free-text note

🔴 delete · destructive

Delete a hotspot operator account.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string yes Hotspot operator ID (the id field returned by the matching list tool)

🟢 read

Get guest portal / hotspot settings: authentication method, session length, voucher/password/payment options, redirect, allowed subnets.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
include_secrets boolean Include the portal password and payment/RADIUS secrets

🟠 write · destructive

Change guest portal settings. Only the fields given are changed; use extra for any other guest_access field.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
portal_enabled boolean Enable the guest portal
auth "none" | "hotspot" | "password" | "facebook" | "custom" | "radius" Authentication: none (click-through), hotspot (vouchers/payment/etc.), password, …
session_minutes integer How long a guest stays authorized, in minutes
password string Portal password (auth=password, or password option under hotspot)
voucher_enabled boolean Offer voucher login (auth=hotspot)
password_enabled boolean Offer password login (auth=hotspot)
redirect_url string Redirect guests here after authorizing; empty string disables
extra object Additional raw controller fields to set (advanced; field names as in the raw objects). Merged last.

Events, alarms, traffic and DPI statistics, traffic flows, speed tests, logs and dashboards.

Tool Access Summary
unifi_list_events 🟢 read List recent events
unifi_list_alarms 🟢 read List alarms
unifi_archive_alarms 🟠 write Archive alarms
unifi_get_traffic_report 🟢 read Get traffic/usage report
unifi_get_dpi_stats 🟢 read Get DPI statistics
unifi_get_speedtest_results 🟢 read Get speed test history
unifi_run_speedtest 🟠 write Run WAN speed test
unifi_list_rogue_aps 🟢 read List neighbouring/rogue APs
unifi_get_system_log 🟢 read Get system log
unifi_list_client_sessions 🟢 read List client sessions
unifi_list_guest_authorizations 🟢 read List guest authorizations
unifi_list_anomalies 🟢 read List anomalies
unifi_get_dashboard 🟢 read Get dashboard metrics
unifi_list_traffic_flows 🟢 read List traffic flows

🟢 read

List recent controller events, newest first (default last 24 hours): client connects and roams, device restarts, upgrades and the like, with time, key, subsystem and message. Falls back to the v2 system log’s device and client alerts where the classic event log is gone or empty. For other log classes (admin activity, threats, VPN…) use unifi_get_system_log; for unresolved problems use unifi_list_alarms.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Look back this many hours (default 24; the classic event log rounds fractions up to whole hours)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

List controller alarms (alerts), newest first, with time, key, subsystem and message; archived alarms are left out unless include_archived. On Network 10.6+, where the classic alarm list is gone, returns the v2 system log’s entries of min_severity (default high) from the last hours (default 168) instead. For the full event history use unifi_list_events.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
include_archived boolean Include archived alarms (classic alarm list)
hours number Look back this many hours (system log; default 168)
min_severity "low" | "medium" | "high" | "very_high" Lowest severity to include (system log; default high)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write

Archive one alarm by ID, or all alarms when no ID is given.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
id string Alarm ID; omit to archive all alarms

🟢 read

Get historical time-series statistics in buckets of 5 minutes to a month. scope=site for whole-site traffic and client counts, gw for gateway CPU/memory/WAN traffic, ap for per-AP traffic, user for per-client traffic (pass macs). For traffic by application use unifi_get_dpi_stats.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
scope "site" | "gw" | "ap" | "user" yes What to report on
interval "5minutes" | "hourly" | "daily" | "monthly" Bucket size (default hourly)
hours number Look back this many hours (default: 12 for 5minutes, 168 for hourly, 720 for daily, 8760 for monthly)
macs string[] Limit to these device/client MACs (ap and user scopes)
attrs string[] Override the attributes to fetch, e.g. [‘rx_bytes’,‘tx_bytes’,‘time’]

🟢 read

Get deep packet inspection (traffic identification) statistics, by application or by category, biggest first: site-wide, or per client when macs are given. Uses the v2 traffic endpoint (Network 9+), with names from the official API when an API key is configured, and falls back to the classic stat/sitedpi on older versions. Requires traffic identification to be enabled.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
by "app" | "category" Group by application or category (default category)
macs string[] Client MACs to report on instead of the whole site
hours number Look back this many hours (default 24; not supported by the classic endpoint)
limit integer Top rows to return per list (default 25)

🟢 read

List the gateway’s WAN speed test results, newest first (default last 168 hours): time, download and upload in Mbps, latency in ms and test server. Start a new test with unifi_run_speedtest.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Look back this many hours (default 168)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write

Start a WAN speed test on the gateway. Results appear in unifi_get_speedtest_results after a minute or so.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.

🟢 read

List access points your APs can hear (neighbours and ones flagged as rogue), strongest first (default seen in the last 24 hours): SSID, BSSID, channel, band, signal, security, vendor, which of your APs saw it and when. For per-channel interference use unifi_get_rf_scan.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Seen within this many hours (default 24; fractions are rounded up to whole hours)
rogue_only boolean Only APs flagged as rogue
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

Read one class of the v2 system log (Network 8+), paged (default 50 entries from the last 168 hours): device-alert (default), client-alert, admin-activity (logins and config changes), update-alert, threat-alert (IPS/honeypot), vpn-alert, triggers (traffic/firewall rule hits) or next-ai-alert. Entries have time, key, category, severity, title, message, device and client. unifi_list_events reads the classic event log.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
class "device-alert" | "client-alert" | "admin-activity" | "update-alert" | "threat-alert" | "vpn-alert" | "triggers" | "next-ai-alert" Log class (default device-alert)
hours number Look back this many hours (default 168)
page integer Page number, from 0
page_size integer Entries per page (default 50)
raw boolean Return raw entries

🟢 read

List client connection sessions, newest first (default last 168 hours): client, IP, connect and disconnect times, duration, AP, SSID, network and bytes; filter by client MAC or guest/user. For who is connected now use unifi_list_clients.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
mac string Only sessions for this client
type "all" | "user" | "guest" Client type (default all)
hours number Look back this many hours (default 168)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

List guest portal/hotspot authorizations, newest first (default last 168 hours): client MAC and IP, method, voucher code, start and end, bytes and expired flag.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Look back this many hours (default 168)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

List anomalies the controller detected per client or device (e.g. high latency, DNS timeouts, poor WiFi experience), default last 24 hours. Rows are returned as the controller reports them; not available on every Network version.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Look back this many hours (default 24)
search string Case-insensitive substring match on names, MACs, IPs and similar
limit integer Maximum items to return (default 100)
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟢 read

Get the aggregated dashboard the UniFi UI shows: WAN/ISP quality history (latency, packet loss, availability, throughput), WiFi experience and client mix. v2 API, Network 7.4+; large response.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number History window in hours (default 24)

🟢 read

List recent traffic flows seen by the gateway (Insights > Flows): source and destination client, IP, domain and network, app/service, allowed or blocked, risk, bytes and the policies that matched. This is an expensive query on the gateway, so it looks back 15 minutes (hours: 0.25) and returns 50 flows per page by default; narrow it with client_mac, action, risk or search (applied by the controller to app, domain, client name and more) before widening the window. Recent Network 9.x/10.x with a UniFi gateway.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
hours number Look back this many hours (default 0.25, i.e. 15 minutes)
client_mac string Only flows from this client MAC address
client_ip string Only flows from this source IP
action "allowed" | "blocked" Only allowed or only blocked flows
risk "low" | "medium" | "high" Only flows with this risk level
destination_domain string Only flows to this domain
page integer Page number, from 0
page_size integer Flows per page (default 50)
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)
raw boolean Return the full controller objects (large)

Site settings, administrators, backups, controller updates and site management.

Tool Access Summary
unifi_get_site_settings 🟢 read Get site settings
unifi_update_site_settings 🟠 write Update site settings
unifi_create_site 🟠 write Create site
unifi_rename_site 🟠 write Rename site
unifi_delete_site 🔴 delete Delete site
unifi_list_admins 🟢 read List administrators
unifi_invite_admin 🟠 write Invite administrator
unifi_revoke_admin 🔴 delete Revoke administrator
unifi_list_backups 🟢 read List backups
unifi_create_backup 🟠 write Create backup
unifi_download_backup 🟠 write Download backup
unifi_delete_backup 🔴 delete Delete backup
unifi_check_updates 🟢 read Check for updates

🟢 read

Get site-wide settings. Each setting is an object identified by key, e.g. mgmt (auto-upgrade, LEDs, SSH), country, locale, ntp, snmp, mdns (multicast DNS), rsyslogd (remote syslog), connectivity, guest_access, ips, dpi, usg (gateway: DNS, geo-IP, UPnP…), radius, network_optimization, super_mgmt (controller-wide, including auto-backup). Omit key to list all keys.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
key string Setting key to return in full; omit to list available keys
include_secrets boolean Include secret fields such as passwords and shared keys (redacted by default)

🟠 write · destructive

Change fields of one site setting object (see unifi_get_site_settings for keys and current field names). Only the given fields change. Examples: key=mgmt {led_enabled:false} or {auto_upgrade:true, auto_upgrade_hour:3}; key=rsyslogd {enabled:true, ip:‘10.0.0.5’, port:514}; key=ntp {ntp_server_1:‘pool.ntp.org’}; key=snmp {enabled:true, community:‘…’} (SNMPv3: enabledV3, username, x_password); key=mdns {mode:‘auto’} (all, auto or custom); key=super_mgmt {autobackup_enabled:true, autobackup_cron_expr:‘0 3 * * 1’, autobackup_max_files:7}.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
key string yes Setting key, e.g. mgmt, ntp, rsyslogd, connectivity, usg
changes object yes Fields to set, using the controller’s field names

🟠 write · destructive

Create a new site on the controller. Returns its API name (used as site by other tools).

Argument Type Required Description
description string yes Display name of the new site

🟠 write

Change a site’s display name (description). The API name stays the same.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
description string yes New display name

🔴 delete · destructive

Delete a site and all of its configuration. Devices on it must be removed or moved first. This cannot be undone.

Argument Type Required Description
site_name string yes API name of the site to delete (see unifi_list_sites name)

🟢 read

List a site’s administrator accounts, or every site’s with all_sites: true: name, email, role, super admin and owner flags, permissions, sites and last login.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
all_sites boolean List admins across all sites
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write · destructive

Invite an administrator to the site by email (re-sends the invite if they already exist). On UniFi OS consoles admins are usually managed in UniFi OS instead; this may not be supported there.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
name string yes Admin’s name
email string yes Admin’s email address
role "admin" | "readonly" admin (default) or readonly
allow_adopt boolean Allow adopting devices
allow_restart boolean Allow restarting devices
sso boolean Allow UI SSO (cloud) login (default true)

🔴 delete · destructive

Remove an administrator’s access to the site. Super admins cannot be revoked this way.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
admin_id string yes Admin ID (see unifi_list_admins id)

🟢 read

List the backups stored on the controller, newest first: filename, time, Network version, size in MB and type. Save one to the backup directory with unifi_download_backup.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
search string Case-insensitive substring match on names, MACs, IPs and similar
fields string[] Only return these fields per item (dot paths, e.g. uplink.name)

🟠 write

Generate a controller backup and return the controller-relative download path. Generating can take a while on large installs.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
days integer Days of statistics history to include: -1 = all (default), 0 = settings only, or 7/30/90/180/365

🟠 write

Save a controller backup (.unf) in the server’s backup directory (UNIFI_BACKUP_DIR; the tool only exists when it is set). Pass source, the download_path from unifi_create_backup, or filename, an automatic backup from unifi_list_backups (both name the backup on the controller). The file is written only inside that directory, with mode 0600, under the backup’s own name; an existing file is kept unless overwrite is true. Backups contain the whole configuration, including secrets. Nothing on the controller changes.

Argument Type Required Description
source string Backup to download: the download_path from unifi_create_backup, e.g. /dl/backup/9.0.0.unf. The saved file keeps the backup’s own name.
filename string Automatic backup filename from unifi_list_backups, e.g. autobackup_9.0.0_20260101_0300_1767236400000.unf
overwrite boolean Replace a file of the same name in the backup directory (default false)

🔴 delete · destructive

Delete a stored backup file.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.
filename string yes Backup filename (see unifi_list_backups)

🟢 read

Check for updates in one call: the latest Network application version the controller knows of (controller), the devices with a firmware upgrade (current and available version) and how many are up to date. To make the controller re-check Ubiquiti’s servers for device firmware first, run unifi_refresh_firmware. For every device’s firmware use unifi_get_firmware_status.

Argument Type Required Description
site string Site name/ID as used in the API (e.g. ‘default’). Defaults to the configured site. See unifi_list_sites.

A raw API escape hatch for anything the other tools don’t cover. It is limited to GET requests unless writes are enabled.

Tool Access Summary
unifi_api_request 🟢 read Raw UniFi API request

🟢 read · destructive

Call any UniFi Network API endpoint directly, for anything the other tools don’t cover. path is relative to the Network application, e.g. /api/s/default/stat/ccode, /v2/api/site/default/trafficroutes or /integration/v1/sites (official API, API-key auth). All HTTP methods are allowed.

Argument Type Required Description
method "GET" | "POST" | "PUT" | "DELETE" | "PATCH" HTTP method (default GET)
path string yes Path relative to the Network application, starting with / (no ‘..’ segments or query string)
query object Query string parameters
body any JSON request body

Prompts are ready-made requests that tell the model which tools to call and what to report. In Claude Code they appear as slash commands, such as /mcp__unifi__network_health_check.

Overall health review of a UniFi site: WAN, devices, clients, alarms and recent problems.

Argument Required Description
site Site name (defaults to the configured site)

Investigate why a specific client (by MAC, name or IP) has connectivity problems.

Argument Required Description
client yes Client MAC address, name, hostname or IP
site Site name (defaults to the configured site)

Review the site’s security posture: threat management, firewall, port forwards, WiFi security and admins.

Argument Required Description
site Site name (defaults to the configured site)

List devices and the controller with available updates and propose a safe upgrade order.

Argument Required Description
site Site name (defaults to the configured site)

Analyse WiFi channels, utilisation, interference and client experience and suggest improvements.

Argument Required Description
site Site name (defaults to the configured site)