MCP server for Ubiquiti UniFi Network and Protect. 63 tools, 16 agent skills.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
mcp-name: io.github.mikeholownych/unifi-mcp
An MCP (Model Context Protocol) server that provides AI assistants like Claude with access to UniFi Network and Protect infrastructure management and analysis capabilities. It uses the native MCP SDK 2 MCPServer API (not FastMCP 3) and communicates over stdio by default.
Credits: This project started as a fork of gbassaragh/Unifi-mcp and has since evolved into a fully independent project. Thanks to @gbassaragh for the excellent starting point.
UNIFI_MODE=local, requests now correctly use the traditional controller API (/proxy/network) with cookie + CSRF session auth. Upstream always routed through the Integration API regardless of mode.api_base_url now respects the configured auth mode instead of unconditionally returning the Integration API endpoint.device parameterpoll_events, retry_webhook_deliveries, capture_observations, and prune_runtime_data| Mode | Auth | Best for |
|---|---|---|
local_api_key | Integration API key | Recommended default; broad read access |
local | Username/password session | Full feature access: firewall rules, WLAN configs, site settings, events, alarms, DPI |
cloud | api.ui.com key | Remote/cloud-managed controllers |
When API keys are used (Integration API), a subset of controller features is only available via legacy session auth (UNIFI_MODE=local): network events, alarms, DPI statistics, speed tests, WLAN configs, firewall rules, port profiles, and routing tables. Tools for these features return a clear error explaining how to enable them rather than failing silently. Insight tools degrade gracefully and report data limitations.
Note on local accounts: SSO/Ubiquiti-account admins protected by MFA cannot complete session login. Create a local admin on your console (Restrict to Local Access Only) for
UNIFI_MODE=local.
Bundled skills (in skills/) teach agents proven workflows for this server β including
controller-specific gotchas (Network 10 removed endpoints, zone-pair rules, WPA3 transition).
Full documentation: See SKILLS.md for usage guide, expected results, troubleshooting, and how to request new functionality.
| Skill | Type | Purpose |
|---|---|---|
unifi-network-audit | read-only | Full site audit: devices, clients, WiFi posture, firewall, structured report |
unifi-troubleshoot-client | read-only | Diagnose a misbehaving device: RF, roaming, blocking, IP layer |
unifi-wifi-optimize | write-gated | Channel plan, widths, WPA3 transition, band steering β approval-gated |
unifi-grant-device-access | write-gated | Give a device a reserved IP + scoped zone-firewall access |
unifi-internet-down | read-only triage | "Internet is dead!" β plain-English outage diagnosis, ISP escalation script |
unifi-whos-home | read-only | "Who's on my WiFi?" β friendly inventory, intruder checks with randomized-MAC awareness |
unifi-setup-new-device | write-gated | Get any new gadget online: pairing pitfalls (2.4GHz/WPA3), naming, IP reservation |
unifi-dns-triage | read-only | "Site won't load but ping works" β resolution vs connectivity split, forced-internal-DNS patterns |
unifi-mdns-discovery | read-only+ | AirPrint/Cast broken across VLANs β mDNS reflection, IGMP/IPTV cautions |
unifi-port-forwarding | write-gated | Self-hosted service exposure incl. hairpin NAT, CGNAT detection, zone-policy pairing |
unifi-vpn | write-gated | WireGuard/Teleport setup + failure ladder (handshake/MTU/zone-policies) |
unifi-firmware-campaign | write-gated | Staged firmware updates: snapshot, canary, verify, stuck-device ladder |
unifi-mesh-backhaul | read-only | Slow far-room WiFi: wireless-uplink/hop diagnosis, wired-backhaul guidance |
unifi-ids-ips-triage | read-only+ | Threat alerts: false-positive vs real, suppression, IPS throughput cost |
unifi-backup-migration | write-gated | What backups contain, migration rules of thumb, pre-migration snapshots |
unifi-network-map | doc-writer | Persistent labeled topology (zones/VLANs/deps) that sharpens every other skill |
Just describe your problem naturally β the agent matches your request to the right skill and follows its workflow:
unifi-internet-down diagnoses WAN, modem, gatewayunifi-whos-home lists devices, flags unknownsunifi-network-audit produces a full health reportunifi-setup-new-device guides WiFi pairingWrite-gated skills (marked above) modify your network β they always ask approval before applying changes.
Skills for non-technical users avoid jargon, translate every technical term, and require confirmation before disruptive actions.
Install (per project): copy into .claude/skills/:
See SKILLS.md for full usage guide, expected results, troubleshooting, and how to request new functionality.
Skills reference MCP tools by their plain names (get_firewall_policies, β¦);
your MCP client prefixes them automatically.
This server is built for operation on a trusted local network, talking to UniFi consoles by IP address. With that in mind:
UNIFI_VERIFY_SSL=false). UniFi OS
ships self-signed certificates, and controllers are reached by IP on the LAN, so
certificate verification is expected to fail. Enable UNIFI_VERIFY_SSL=true only
when your controller presents a CA-trusted certificate.UNIFI_* credentials are supplied (e.g. when deployed and
configured via environment variables). Device-bound tool calls then return a clear
No device configured error until a device is set.tools/call is gated by read/write/admin OIDC scopes, and
startup fails if any tool is unclassified. Over stdio (local IPC) no auth is
required β stdio is assumed to be a trusted local process.UNIFI_MODE=local): network events, alarms,
DPI statistics, speed tests, WLAN/firewall configs, port profiles, and routing
tables. Tools for these return a clear error explaining how to enable them.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/unifi-mcp)<a href="https://allmcps.com/mcp/unifi-mcp"><img src="https://allmcps.com/api/badge/unifi-mcp?style=directory" alt="Unifi MCP on AllMCPs" /></a>