unifi-network-mcp
Provides access to Ubiquiti UniFi Network consoles, enabling management of devices, clients, networks, WiFi, firewall policies and zones, ACL rules, DNS policies, traffic matching lists, hotspot vouchers, and switching views.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@unifi-network-mcplist the clients on my UniFi network"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
unifi-network-mcp
MCP server for the official UniFi Network Integration API.
Gives AI assistants (Claude, and any MCP-compatible client) typed, safety-gated access to your UniFi Network console: devices, clients, networks, WiFi, firewall policies and zones, ACL rules, DNS policies, traffic matching lists, hotspot vouchers, switching views, and supporting resources — the complete documented v10.4.57 surface, 73 operations behind 16 tools.
Community project. Not affiliated with, endorsed by, or supported by Ubiquiti Inc. "UniFi" is used only to describe what this software connects to.
Get started with AI
Paste this into Claude, ChatGPT, Grok, or any AI assistant for a guided, hands-on setup:
Read https://raw.githubusercontent.com/ZenixSolutions/unifi-network-mcp/main/docs/ai-setup.md and follow its instructions to help me set up the UniFi Network MCP server with my AI client.Related MCP server: unifi-mcp
Quick start (cloud, recommended)
One API key, every console you manage — no VPN, no console IPs, no self-signed certificates.
Create an API key: sign in at unifi.ui.com → Settings → API Keys → Create New API Key. Store it securely — it is shown once.
Add the server to your MCP client. For Claude Desktop (
claude_desktop_config.json):
{
"mcpServers": {
"unifi-network": {
"command": "npx",
"args": ["-y", "@zenixsolutions/unifi-network-mcp"],
"env": {
"UNIFI_API_KEY": "<your API key>"
}
}
}
}Ask your assistant something like "list my UniFi consoles", then "list the clients at Acme HQ". With several consoles visible, the assistant is shown the list and picks a
consoleIdper action (ADR-002); with exactly one, it is used automatically. Calls route through Ubiquiti's documented Site Manager Connector onapi.ui.com.
Quick start (direct to one console)
Point the server at a single console instead by adding:
"UNIFI_CONSOLE_URL": "https://192.168.1.1",
"UNIFI_INSECURE": "1"(UNIFI_INSECURE=1 accepts the console's default self-signed certificate — warned on start; see SECURITY.md.)
Configuration
Variable | Required | Meaning |
| yes | API key from unifi.ui.com. Sent as the |
| no | When set: direct mode against that console (integration path appended automatically; a full |
| no | Direct mode only: set to |
Verify a configuration without connecting a client:
npx -y @zenixsolutions/unifi-network-mcp --check # exit 0 ok, 78 misconfigured
npx -y @zenixsolutions/unifi-network-mcp --list-tools
npx -y @zenixsolutions/unifi-network-mcp --versionThe tool surface
16 tools cover all 73 documented operations (measured tools/list cost: ≈7,500 tokens). Each resource area is one tool with an operation argument:
unifi_info, unifi_sites, unifi_devices, unifi_clients, unifi_networks, unifi_wifi_broadcasts, unifi_firewall_policies, unifi_firewall_zones, unifi_acl_rules, unifi_dns_policies, unifi_traffic_matching_lists, unifi_vouchers, unifi_switching, unifi_supporting — plus unifi_spec (the vendor's exact request/response schema for any operation) and unifi_consoles (cloud-mode console discovery; every tool takes an optional consoleId).
Full per-operation reference: docs/tools.md.
Safety model
Every operation is classified Read / Create / Update / Admin / Destructive in its tool description.
Destructive (all deletes, device removal) and Admin (device restart, PoE power-cycle, guest authorization) operations require
confirm: truein the call — an assistant cannot trigger them by accident.Request bodies are validated locally against Ubiquiti's own published OpenAPI schemas before anything is sent.
The real write control is your API key's permissions — scope the key in unifi.ui.com to what you actually want an assistant to do. The server adds friction, not authorization.
The API key is never logged and is redacted from every error message.
Documentation
docs/tools.md — tool and operation reference
docs/compatibility.md — clients, controller versions, transports, known limitations
docs/reference/openapi.json — the committed vendor contract (v10.4.57) this build is generated from
SECURITY.md — security posture, residual risks, reporting
CHANGELOG.md — release notes
Development
npm install
npm run generate # regenerate op map from docs/reference/openapi.json
npm run typecheck && npm run lint && npm test
npm run build
npm run check:budget # measured tools/list token budget (CI-enforced)
UNIFI_CONSOLE_URL=... UNIFI_API_KEY=... npm run test:contract # live, read-onlySee CONTRIBUTING.md. Governance follows the Engineering OS framework; the foundation decisions are recorded in docs/rfc/RFC-004-unifi-network-mcp-foundation.md.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceAn MCP server for self-hosted UniFi gateway management, providing tools for devices, networks, WiFi, firewall rules, switch port profiles, connected clients, and a one-shot IoT network creation with rollback.17MIT
- AlicenseAqualityCmaintenanceMCP server that turns Claude into a UniFi network specialist. Manage devices, optimize WiFi, audit security, and troubleshoot your network through natural language.31452MIT
- FlicenseBqualityCmaintenanceMCP server for UniFi Network Controller that provides full API coverage for managing APs, clients, WLANs, firewall rules, VLANs, port forwards, and more.51
- Alicense-qualityCmaintenanceA safety-first MCP server for managing UniFi networks, exposing 17 tools for telemetry, diagnostics, and guarded mutations with dry-run previews and confirm requirements.MIT
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZenixSolutions/unifi-network-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server