Changelog
All notable changes to this project are documented here. The format is based on Keep a Changelog, and the project follows Semantic Versioning.
For unifi-mcp, the “public API” is the set of tool names, their arguments and the configuration variables. Renaming or removing any of these is a breaking change.
0.9.1 - 2026-11-17
Section titled “0.9.1 - 2026-11-17”This release describes what each tool returns and when to use it, gives every argument a description, and stops descriptions from naming tools the current settings turn off. No tool or argument names change. unifi-mcp has 148 tools (60 read, 59 write and 29 delete) and 5 prompts.
Changed
Section titled “Changed”- Tool descriptions say what each tool returns, its defaults and ordering, and which similar tool to use instead, and every argument has a description, including the list arguments
search,fieldsandlimit. A description only mentions another tool when that tool is registered, so a read-only server no longer points at write tools such asunifi_run_rf_scanandunifi_refresh_firmware.
0.9.0 - 2026-11-17
Section titled “0.9.0 - 2026-11-17”This release fixes alarms and DPI statistics on Network 10.6 and later, and renames tools, arguments and output to match the other mattoddie MCP servers ahead of 1.0. unifi-mcp has 148 tools (60 read, 59 write and 29 delete) and 5 prompts. Read the Breaking entries before upgrading.
unifi_list_alarmshashours(default 168) andmin_severity(low,medium,highorvery_high; defaulthigh) for the v2 system log fallback below.unifi_get_dpi_statshashours(default 24) andlimit(default 25) arguments, sorts biggest first, and names applications and categories from the official API’s traffic identification catalogue whenUNIFI_API_KEYis set. Without a key it returns the numeric IDs and says why.
Changed
Section titled “Changed”- Breaking:
unifi_update_site_settingis renamedunifi_update_site_settings, to matchunifi_get_site_settings. - Breaking:
unifi_rolling_upgradeis renamedunifi_control_rolling_upgrade: it takes astartorcancelaction, like the family’s othercontroltools. - Breaking:
unifi_download_backup’spathargument is renamedsource, so it isn’t mistaken for a destination. It is the backup’s path on the controller (download_pathfromunifi_create_backup);filenamestill names an automatic backup. - Breaking:
unifi_list_traffic_flowspages withpageandpage_size(default 50) instead ofpageandlimit, and looks back withhours(a number; default 0.25, i.e. 15 minutes) instead ofminutes. Its output also haspage. - Breaking:
unifi_get_system_logreturns{class, page, total, returned, items}; the entries were underentries. hoursonunifi_list_eventsandunifi_list_rogue_apsis a number, as on the other tools, so fractions work. The classic event log and rogue AP list round it up to whole hours.- Tools that set fields to given values (
unifi_set_*,unifi_update_*andunifi_reset_switch_port) have theidempotentHintannotation. - Breaking:
unifi_get_dpi_statsreturns{source, by, from, to, total_bytes, count, returned, items}(orclientswhenmacsis given) from the v2 traffic endpoint. On controllers without it, the classic response is returned underdata, withsourceandv2_error. - v2 system log entries in
unifi_list_events,unifi_get_system_logandunifi_list_alarmsshow their message and title with the{PLACEHOLDER}s filled in from the entry’s parameters, as the UI does.
unifi_list_alarmsfailed with HTTP 400api.err.InvalidObjecton Network 10.6 and later, where the classiclist/alarmendpoint is gone. It now falls back to the v2 system log (system-log/all), filtered by severity, and reports the classic error aslegacy_error(#63).unifi_get_dpi_statsreturned empty results on Network 10.6 and later, where the classicstat/sitedpiandstat/stadpiendpoints no longer have data. It now reads the v2 traffic endpoint and falls back to the classic ones (#64).
0.8.0 - 2026-11-15
Section titled “0.8.0 - 2026-11-15”UNIFI_RAW_ALLOWED_PATHSlimitsunifi_api_requestto a comma-separated list of path prefixes, so therawtoolset can be enabled narrowly. Prefixes match whole path segments, both as sent and decoded, and the tool’s description lists them. The Claude Desktop extension has a Raw API paths setting.unifi_download_backup(write) saves a controller backup, made withunifi_create_backupor an automatic one fromunifi_list_backups, in the directory set by the newUNIFI_BACKUP_DIRvariable (off by default; the tool exists only when it is set). It writes only inside that directory, throughos.Root, with mode0600, and keeps an existing file unlessoverwriteis true. The Claude Desktop extension has a Backup folder setting.unifi_check_firewall_path(read) answers “what if” questions about the zone-based firewall: for a new connection from a source IP or client MAC to a destination, with protocol and port, it works out both zones from the networks’ subnets and reports the first enabled zone policy that matches, with its action. Policies that might match first but depend on things it can’t evaluate from addresses (apps, domains, regions, IP and port groups, schedules) are listed with the reason, and matching traffic rules are listed too. It only reads the configuration.unifi_refresh_firmware(write) asks the controller to re-check Ubiquiti’s servers for device firmware. It replaces therefreshargument ofunifi_get_firmware_statusandunifi_check_updates.
Changed
Section titled “Changed”- Breaking:
UNIFI_TOOLSETS=all, and the default, no longer include therawtoolset (unifi_api_request). It reaches every endpoint, including ones the curated tools gate more finely, so it now has to be named, e.g.UNIFI_TOOLSETS=all,raw. - Breaking: boolean variables (
UNIFI_ALLOW_WRITES,UNIFI_ALLOW_DELETES,UNIFI_ALLOW_SECRETS,UNIFI_VERIFY_SSL,MCP_ALLOW_UNAUTHENTICATED) accept onlytrue/false,1/0,yes/noandon/off, and the server refuses to start on anything else. Before, a typo such asUNIFI_VERIFY_SSL=turequietly read asfalse, which turned certificate checks off and counted as an explicit TLS choice. - Breaking:
unifi_get_firmware_statusandunifi_check_updateslost theirrefreshargument and only read now. With writes on, it sent aPOSTfrom a tool marked read-only, without an audit log entry. Useunifi_refresh_firmware. - The minimum Go version for building from source is 1.26.
unifi_api_requestrefuses paths with empty segments (//),;or double percent-encoding (%25). nginx merges repeated slashes and Tomcat drops;parameters, so a path such as/api/s/default//cmd/devmgror/api/s/default/cmd/devmgr;xreachedcmd/devmgrwithout the check that, with deletes off, only allows commands known not to delete anything. Every API path now refuses a%left after decoding.unifi_set_switch_portwithenabled: truekeeps a port security MAC allow-list. It used to switch port security off, wiping the allow-list.unifi_update_threat_managementwithips_mode: "disabled"no longer clearsenabled_categories; only the fields given are changed.- The firewall zone and policy order tools page through the integration API’s site and zone lists, so a site or zone after the first 200 is found.
unifi_set_firewall_policy_orderingrefuses to send a new order when the controller reports no current policy IDs, instead of skipping the check that the new order holds exactly the current IDs.
0.7.0 - 2026-11-15
Section titled “0.7.0 - 2026-11-15”UNIFI_ALLOW_SECRETS(off by default) gates access to secrets on the server side. When off, no tool offersinclude_secrets, a client that sends it anyway gets redacted output, andunifi_get_wifi_qrisn’t registered. The startup log line showssecrets redactedorsecrets ALLOWED, and the Claude Desktop extension has an Allow secrets setting.
Changed
Section titled “Changed”- Breaking:
include_secretsandunifi_get_wifi_qrnow needUNIFI_ALLOW_SECRETS=true. Before, any client holding the token could ask for unredacted Wi-Fi passphrases, VPN keys and passwords, even with writes off. SetUNIFI_ALLOW_SECRETS=trueto keep the old behaviour.
0.6.2 - 2026-11-13
Section titled “0.6.2 - 2026-11-13”- Each release now has plain binaries for macOS, Linux and Windows on
amd64andarm64, with aSHA256SUMSfile and build provenance attestations, so you can run unifi-mcp without Docker. See Running without Docker.
Changed
Section titled “Changed”- The docs and the legacy firewall rule tools’ descriptions now cover UniFi Network 11. Network 11 moves every site to the zone-based firewall, drops USG gateways and the self-hosted Network application, and needs UniFi OS 6.0. The legacy firewall rule tools don’t apply on Network 11, and self-hosted controllers are supported up to Network 10.6. See Compatibility.
Security
Section titled “Security”- Built with Go 1.27.4, which fixes an HTTP/1 server crash in the standard library’s
net/http(GO-2026-6859).
0.6.1 - 2026-10-22
Section titled “0.6.1 - 2026-10-22”- unifi-mcp is published to the MCP Registry as
io.github.mattoddie/unifi-mcpwith each stable release. The entry lists the container image, run over stdio, and the six Claude Desktop bundles with their SHA-256s. The image carries theio.modelcontextprotocol.server.namelabel the registry checks. See Releasing.
0.6.0 - 2026-10-22
Section titled “0.6.0 - 2026-10-22”Removed
Section titled “Removed”- Breaking: lazy tool loading was removed. Every enabled tool is listed directly again, as in 0.4.0, and the meta-tools
unifi_search_tools,unifi_call_toolandunifi_call_write_toolare gone. Clients with their own tool search, such as Claude Code, already defer large tool lists, and lazy mode hid the real tools from them. It also hid each tool’s annotations behind two meta-tools, so client confirmations and per-tool permission rules couldn’t tell one change from another, and it cost the model extra calls with untyped arguments.UNIFI_TOOL_MODEnow stops the server if it is set to anything; remove it and useUNIFI_TOOLSETSto keep the tool list small. An empty value, or the unfilled${user_config.tool_mode}from a 0.5.0 Claude Desktop extension, still counts as unset. See Keeping the tool list small for ready-made toolset combinations and their sizes. - The Claude Desktop extension no longer has a Tool mode setting, and the startup log line no longer shows the tool mode.
0.5.0 - 2026-10-22
Section titled “0.5.0 - 2026-10-22”- Dry runs: every write and delete tool, and
unifi_api_requestwhen writes are enabled, takesdry_run: true. The tool reads the current state but sends nothing that changes it, and returns the first request it would send with secrets redacted. For updates the preview is a field-level diff (changed,added,removed) against the object the tool read. In a dry run the first state-changing request is stopped before any login, so a preview never changes anything. Controller reads that usePOST(statistics reports, event, session and log queries) are marked as reads and still run. In lazy mode, passdry_runin theargumentsofunifi_call_write_tool. - Audit log:
UNIFI_AUDIT_LOGset to a file path (JSON Lines, created with mode0600) orstderrrecords every call of a tool that changes things, including dry runs, failed calls and refused ones: time, tool, arguments with secrets redacted, the state-changing requests sent with their HTTP status, and the outcome. It’s off by default. In lazy mode, calls made throughunifi_call_write_toolare logged under the name of the tool they ran. The server checks the file is writable at startup; a failed write later logs one warning and doesn’t affect the tool call. - The startup log line says whether the audit log is on.
- Every
unifi_list_*tool, andunifi_get_speedtest_results, takessearch(case-insensitive substring match on names, MACs, IPs and similar) andfields(keep only these fields in each item, with dot paths such asuplink.device_mac; it also works withraw: true). Lists that can grow long also takelimit. If none of the requested fields exist, the result includes ahintlisting the available ones. See Narrowing list results. - New exact-match filters:
stateonunifi_list_devices,networkandap_maconunifi_list_clients, anduponunifi_list_switch_ports. limitonunifi_list_devices(default 500),unifi_list_vouchers(default 200) andunifi_get_speedtest_results(default 100).- The server instructions explain the list arguments once, instead of every tool repeating the descriptions. In full mode
tools/listgrows by about 2.7 KB (6.7%) with the read-only tools and 2% with writes and deletes enabled; in lazy mode it is unchanged and the instructions grow by about 270 bytes. - QoS rules:
unifi_list_qos_rules,unifi_save_qos_ruleandunifi_delete_qos_rulelimit or prioritise traffic by client, network, app, IP, region or domain. - NAT rules (DNAT, SNAT and masquerade, separate from port forwards):
unifi_list_nat_rules,unifi_save_nat_ruleandunifi_delete_nat_rule. Predefined rules can’t be changed or deleted. - Switch ACL rules (MAC ACLs):
unifi_list_acl_rules,unifi_save_acl_ruleandunifi_delete_acl_rule. - Object-oriented network policies:
unifi_list_oon_policies,unifi_save_oon_policyandunifi_delete_oon_policy. unifi_list_traffic_flowslists recent flows filtered by client, action, risk, domain or free text. It looks back 15 minutes and returns 50 flows unless asked for more.unifi_list_switch_portsshows each port’s LLDP neighbours and the port that aggregates it.unifi_set_switch_portconfigures port mirroring (mirror_port_idx) and link aggregation (aggregate_ports). Other ports’ overrides are kept, except those of the new group’s other members, which the controller manages.op_mode: switchturns either off and clears their settings.unifi_update_clientlocks a wireless client to an access point (fixed_ap_mac) or unlocks it (clear_fixed_ap). Client summaries showlocked_to_ap.- The
security_reviewandtroubleshoot_clientprompts look at the new rules and flows. - Claude Desktop extension bundles. Each release now has a one-click
.mcpbbundle for macOS (Apple silicon and Intel), Windows (x64 and Arm) and Linux (amd64 and arm64). Open it in Claude Desktop and fill in the settings form: no Docker, service or token needed. The form covers the controller, certificate checks, writes and deletes, toolsets, the tool mode (lazy by default) and the audit log. Seedocs/clients.md.make mcpbbuilds them locally.
Changed
Section titled “Changed”- Breaking: tools are now loaded lazily by default. Instead of listing every enabled tool (about 48 KB of definitions read-only, 174 KB with writes and deletes), the server lists three meta-tools, under 3 KB in all:
unifi_search_toolsfinds tools by keyword or toolset and returns their full description and input schema,unifi_call_toolruns read-only tools, andunifi_call_write_tool(only withUNIFI_ALLOW_WRITES=true) runs tools that change state.unifi_call_write_toolis marked destructive, so clients ask before every change, while reads never prompt. Toolsets, the write and delete switches, argument validation and results are unchanged. To keep the old behaviour, setUNIFI_TOOL_MODE=full, which also suits Claude Code (it defers large tool lists itself) and lets you write permission rules for individual tools. Seedocs/configuration.md. - The startup log line includes the tool mode.
- Breaking: every list tool now returns
{total, returned, items}, asunifi_list_devicesandunifi_list_clientsalready did. Before, most returned a bare array, so a model couldn’t tell whenlimithad cut the list. Tools that returned an object keep their other keys next to the list:unifi_list_switch_portsreturns{switch, total, returned, items}instead of{switch, ports},unifi_list_wans{total, returned, items, health}instead of{wans, health}, andunifi_list_eventskeepssourceandlegacy_errorwhen it falls back to the system log, with the events initemsinstead ofevents. - When
searchis given,unifi_list_eventsandunifi_list_threatsask the controller for up to 3000 entries and then applylimit, so a search isn’t limited to the newestlimitentries. unifi_get_speedtest_resultslists the newest results first.- The output-size note now suggests
searchandfieldstoo. - A configuration variable set to exactly
${user_config.<key>}is treated as unset, like an empty one. Claude Desktop passes an extension setting that was left empty through like that.
unifi_update_site_settingwritessuper_*settings such assuper_mgmt(auto-backup) throughset/setting/<key>/<id>, as the UniFi UI does, instead ofrest/setting.
Security
Section titled “Security”- Built with Go 1.27.3, which fixes a
crypto/x509vulnerability in the standard library (GO-2026-6809).
0.4.0 - 2026-10-20
Section titled “0.4.0 - 2026-10-20”Security
Section titled “Security”- Breaking: the controller’s TLS certificate must now be checked, or explicitly not checked. For an
httpsUNIFI_URL, the server refuses to start unlessUNIFI_TLS_FINGERPRINT,UNIFI_CA_FILEorUNIFI_VERIFY_SSLis set. Before, verification was silently off, so anyone on the network path could impersonate the controller and capture the API key or password. To upgrade, pin the console’s certificate withUNIFI_TLS_FINGERPRINT(recommended; seedocs/security.md), or setUNIFI_VERIFY_SSL=falseto keep the old behaviour.example.envalready setsUNIFI_VERIFY_SSL=false, so a.envcopied from it keeps working. - A plain
http://UNIFI_URLnow logs a warning that credentials travel unencrypted. - Breaking:
UNIFI_URLmay no longer contain a username or password (https://user:pass@host); they ended up in logs and error messages. UseUNIFI_API_KEY, orUNIFI_USERNAMEandUNIFI_PASSWORD. - Breaking:
MCP_ALLOW_UNAUTHENTICATED=truenow also requiresMCP_ALLOWED_HOSTS. Without a token, the Host check is the only protection against a web page reaching the server through DNS rebinding, so the server refuses to start without it. - Breaking:
MCP_AUTH_TOKENmust be at least 16 characters. Generate one withopenssl rand -hex 32. - An
MCP_ALLOWED_HOSTSentry without a port now only allows anOriginon the scheme’s default port (80 or 443). Listhost:portto allow a page on another port. Before,localhostlet a page on anylocalhost:<port>through. EveryOriginheader is checked, and an empty one is rejected. - The HTTP server now has a 60 second read timeout and a 120 second idle timeout, on top of the header timeout.
- The
healthcheckcommand connects toMCP_HTTP_HOSTwhen it is a specific address (and to127.0.0.1when it is0.0.0.0or::), and readsMCP_HTTP_PORT_FILE. - With writes on and deletes off, the raw API tool could be made to delete by percent-encoding a letter of the path, e.g.
POST /v2/api/site/default/firewall-policies/batch-d%65lete, which the delete check didn’t recognise but the controller decoded and ran. API paths that percent-encode letters, digits,-,_or~are now refused, and the delete check runs on the decoded path. The check also recognises more verbs (set-default,factory,clear,purge,erase,wipe,del-), matchescmdkeys in any letter case, and, for the classiccmd/<manager>endpoints, only sends commands known not to delete anything. - Controller responses are read up to 64 MiB (a bigger one is an error instead of being read into memory), and JSON nesting is capped at 1000 levels. Tool output returned to the model is capped at 256 KiB, with a note saying it was truncated and how to narrow the request.
- With a username and password, the server logs in again only when the controller answers 401, not 403 (which means the account lacks permission). After a rejected login it waits before trying again (5 seconds, doubling up to 5 minutes) instead of retrying on every tool call, which could lock the account.
- Tools that grant access or can disrupt connectivity are now marked destructive, so MCP clients ask before running them:
unifi_invite_admin,unifi_create_site,unifi_reconnect_client,unifi_unblock_client,unifi_update_client(fixed IPs),unifi_authorize_guest,unifi_unauthorize_guest,unifi_create_vouchers,unifi_save_hotspot_operator,unifi_save_radius_account,unifi_save_radius_profile,unifi_provision_device,unifi_adopt_device,unifi_save_ap_group,unifi_save_dns_record,unifi_save_content_filter,unifi_save_bandwidth_profileandunifi_save_dynamic_dns. - Device and client IDs taken from controller responses are now encoded as path segments.
Changed
Section titled “Changed”- The Docker base images are pinned by digest (Dependabot keeps them current), the Go toolchain is 1.27.2 in both
go.modand the image, and CI runsgovulncheck.
- The zone-based firewall tools that use the integration API no longer fall back to the only site when the
sitename doesn’t match; they report that the site wasn’t found.
0.3.0 - 2026-10-16
Section titled “0.3.0 - 2026-10-16”Changed
Section titled “Changed”- unifi-mcp is rewritten in Go on the official MCP Go SDK, as a drop-in replacement: the tools, their arguments, descriptions and annotations, the prompts, the configuration variables and the output are unchanged (
docs/tools.mdis generated identically, apart from the command named in its header), and every v0.2.0 security fix is kept. The few differences visible from outside:- The Docker image is now a single static binary on
gcr.io/distroless/static-debian13(about 22 MB, with no shell or package manager) and runs asnonroot(UID 65532) instead ofnode(UID 1000). Files you mount for*_FILEsecrets orUNIFI_CA_FILEmust be readable by that user. The health check is now the binary’s ownhealthcheckcommand. - Outside Docker, run the
unifi-mcpbinary (go install github.com/mattoddie/unifi-mcp/cmd/unifi-mcp@latestormake build) instead ofnode dist/index.js. It also hasversionandhealthcheckcommands, and refuses unknown arguments. - At the MCP protocol level,
tools/listandprompts/listreturn entries in alphabetical order rather than definition order, tool annotations includeidempotentHint: false, optional prompt arguments omitrequired: false, and calling an unknown tool returns a JSON-RPC error instead of an error result. Clients don’t depend on any of these. UNIFI_CA_FILEmust contain at least one PEM certificate; the server now says so at startup instead of failing on the first request.- Connection errors keep the Node-style codes (
ECONNREFUSED,ENOTFOUND,DEPTH_ZERO_SELF_SIGNED_CERT, …) for the common cases; rarer network errors are described in Go’s words.
- The Docker image is now a single static binary on
unifi_get_dashboard, andunifi_get_security_settingswithinclude_categories: true, failed since 0.2.0 because their query string was refused by the new path checks. The query is now sent separately.
0.2.0 - 2026-10-15
Section titled “0.2.0 - 2026-10-15”Security
Section titled “Security”- Breaking: the HTTP transport now refuses to start without
MCP_AUTH_TOKEN. SetMCP_ALLOW_UNAUTHENTICATED=trueonly when something in front of the server already authenticates requests. - Breaking: when the server runs with Node directly,
MCP_HTTP_HOSTnow defaults to127.0.0.1instead of0.0.0.0. The Docker image still listens on0.0.0.0. - API paths can no longer escape the Network application.
.and..segments, also percent-encoded (%2e%2e), backslashes, control characters,?and#are refused, and every request is checked to resolve exactly to the intended path. Before, the raw API tool could reach console endpoints outside/proxy/networkwith paths like/%2e%2e/%2e%2e/api/system. Site names and object IDs of.or..are refused too. - With
UNIFI_ALLOW_DELETES=false, the raw API tool now also refuses non-DELETErequests that delete things, identified by a JSONcmd(or path segment) containing delete, forget, revoke, remove, destroy or reset, such asPOST cmd/sitemgr {"cmd": "delete-site"}. - New
UNIFI_TLS_FINGERPRINTpins the controller’s certificate by its SHA-256 fingerprint, and newUNIFI_CA_FILEtrusts a private CA. The server logs a warning at startup when the certificate is neither verified nor pinned, and certificate errors now suggest pinning instead of turning verification off. MCP_ALLOWED_HOSTSnow also rejects requests whoseOriginheader names a host that isn’t allowed, and its entries are compared case-insensitively.- Secret redaction now covers well-known secret fields without the
x_prefix, such aspassword,passphrase,psk,community,private_key,*_key,*secret*,*token*,configuration_fileand passwords nested inprivate_preshared_keys.
Changed
Section titled “Changed”- Breaking:
unifi_forget_clientsandunifi_revoke_voucherare now delete tools, so they needUNIFI_ALLOW_DELETES=trueas well asUNIFI_ALLOW_WRITES=true. unifi_get_firmware_statuswithrefresh: truenow needsUNIFI_ALLOW_WRITES=true, likeunifi_check_updates, because it sends a command to the controller.- The Docker image is based on Node.js 24 LTS again (
node:24-alpine); Node.js 25 is end of life. Dependabot no longer proposes odd (non-LTS) Node.js majors.
- With username/password auth, concurrent requests that hit an expired session could throw away a session another request had just created and log in again. Re-logins are now tied to the session each request was sent with, and concurrent requests share one login.
0.1.0 - 2026-10-11
Section titled “0.1.0 - 2026-10-11”- MCP server for UniFi Network with 132 tools in 14 toolsets: overview, devices, clients, switching, wifi, networks, firewall, routing, security, vpn, hotspot, monitoring, admin and raw.
- Five built-in prompts:
network_health_check,troubleshoot_client,security_review,firmware_reviewandwifi_optimization. - Support for UniFi OS consoles (API key or local account) and legacy self-hosted controllers (local account), with automatic detection.
- Streamable HTTP (stateless) and stdio transports, with bearer-token auth and a
Hostheader allow-list for HTTP. - Safety switches: read-only by default,
UNIFI_ALLOW_WRITES,UNIFI_ALLOW_DELETESandUNIFI_TOOLSETS. Secrets are redacted from output. _FILEvariants of every variable for Docker secrets.- Multi-arch Docker image (
linux/amd64,linux/arm64) published to GHCR on each release, with SBOM and provenance attestation. - Documentation, including a tool reference generated from the code.