UniFi MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
UniFi MCP Server
Full-featured Model Context Protocol server for UniFi Network controllers. Monitor, configure, and manage your entire UniFi network from Claude Code, Cursor, or any MCP-compatible AI assistant.
43 tools covering monitoring, WiFi configuration, VLAN management, firewall rules, switch port config, and more.
Quick Start
git clone https://github.com/alexsollars/mcp-unifi.git
cd mcp-unifi
npm install
npm run buildAdd to your .mcp.json:
{
"mcpServers": {
"unifi": {
"command": "node",
"args": ["/path/to/mcp-unifi/dist/index.js"],
"cwd": "/path/to/mcp-unifi",
"env": {
"UNIFI_URL": "https://192.168.1.1",
"UNIFI_USERNAME": "your-admin-username",
"UNIFI_PASSWORD": "your-admin-password",
"UNIFI_SITE": "default"
}
}
}
}Related MCP server: UniFi MCP Server
Tools (43 total)
Monitoring (10 tools)
Tool | Description |
| Overall site health and status |
| List all devices (APs, switches, gateways) |
| Detailed device info by MAC |
| Connected clients (all/wireless/wired) |
| Detailed client info by MAC |
| AP radio settings (channel, width, power) |
| Full WLAN config including advanced settings |
| Switch port status and config |
| Traffic stats (hourly/daily/monthly) |
| Deep packet inspection / app usage |
WiFi Management (6 tools)
Tool | Description |
| Channel, channel width (20/40/80/160), TX power |
| Min RSSI threshold for client roaming |
| Band steering, PMF, 802.11r, DTIM, min rates, network assignment |
| MAC filtering (allow/deny list) |
| Enable a wireless network |
| Disable a wireless network |
Network & VLAN (4 tools)
Tool | Description |
| List all networks |
| Create network/VLAN with DHCP |
| Update network settings |
| Delete a network/VLAN |
Firewall (4 tools)
Tool | Description |
| List all firewall rules |
| Create rule (LAN_IN, WAN_OUT, etc.) |
| Update existing rule |
| Delete a rule |
Switch Ports (3 tools)
Tool | Description |
| Port status and config |
| Port name, PoE, speed, VLAN assignment |
| Available port profiles |
Client Management (3 tools)
Tool | Description |
| Block a client |
| Unblock a client |
| Force reconnect |
Device Management (3 tools)
Tool | Description |
| Restart a device |
| Rename a device |
| LED control (on/off/color) |
Routing (2 tools)
Tool | Description |
| Create port forwarding rule |
| Create static route |
Site & System (4 tools)
Tool | Description |
| Site name, timezone, country |
| Trigger WAN speed test |
| Change WiFi password |
| Create controller backup |
Guest & Events (4 tools)
Tool | Description |
| List wireless networks |
| Recent alerts |
| Recent events |
| Guest vouchers |
| Create guest vouchers |
Optional Safety Guard
Set UNIFI_CONFIRM_WRITES=true to require confirmation on write operations:
"env": {
"UNIFI_CONFIRM_WRITES": "true"
}When enabled, write tools return a diff preview and require confirm: true to apply. Default is off.
Examples
Fix slow WiFi:
→ unifi_set_radio_config(mac: "aa:bb:cc:dd:ee:ff", radio: "na", channel_width: "80")Create IoT VLAN:
→ unifi_create_network(name: "IoT", vlan_id: 20, subnet: "192.168.20.1/24", dhcp_enabled: true)Block inter-VLAN traffic:
→ unifi_create_firewall_rule(name: "Block IoT", action: "drop", ruleset: "LAN_IN", src_address: "192.168.20.0/24", dst_address: "192.168.1.0/24")Assign switch port to VLAN:
→ unifi_set_port_config(mac: "aa:bb:cc:dd:ee:ff", port_idx: 4, network_id: "vlan-id", name: "Camera")How It Works
Auth: Cookie-based login with automatic re-login on session expiry
CSRF: Extracts and sends CSRF tokens (required by UniFi OS for writes)
Writes: GET → merge changes → PUT. Only provided fields change.
Errors: Clear messages with UniFi API error details
Requirements
Node.js >= 18
UniFi Network Controller (UDM, UDM Pro, Cloud Key)
Admin account with Super Admin role
License
MIT
Credits
Built by Alexander Sollars at Beautiful Networks, LLC with Claude Code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Image and video AI tools and your own pipelines, run from any AI assistant.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Ubiquiti UniFi network infrastructure for monitoring devices, managing clients, and performing configuration tasks like blocking/unblocking devices and viewing network health.101GPL 3.0
- AlicenseDqualityDmaintenanceEnables comprehensive management of UniFi network infrastructure through the UniFi Cloud API, including device control, client management, camera settings, and access door control through natural language.39MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage and monitor UniFi Network Controllers through natural language. Provides 25 read-only tools for discovering devices and clients, viewing security configurations, analyzing network statistics, and exporting configuration data.41MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage UniFi network infrastructure through 50+ tools covering devices, clients, networks, WiFi, firewall rules, and guest access using the official UniFi Network API.525MIT