/unifi-mcp-server:unifi-mcp-setupfrom unifi-mcp-server
Sets up and configures the UniFi MCP Server for network management. Covers install methods, environment variables, API modes, and scoped profiles for UniFi Network, Protect, and cloud APIs.
Ships in unifi-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interact with UniFi Network, Protect and the UniFi cloud APIs using 362 MCP tools (local mode) across six capability domains. The server supports three API modes (local gateway, cloud-v1, cloud-ea) and requires UniFi Network 9.0+ for zone-based firewall features.
Add to your MCP client config (~/.claude/mcp.json or equivalent):
{
"mcpServers": {
"unifi": {
"command": "uvx",
"args": ["unifi-mcp-server"],
"env": {
"UNIFI_API_KEY": "your-api-key",
"UNIFI_API_TYPE": "local",
"UNIFI_LOCAL_HOST": "192.168.2.1"
}
}
}
}
# Install
pip install unifi-mcp-server
# or: uvx unifi-mcp-server --help
# Set credentials once
export UNIFI_API_KEY=your-api-key
export UNIFI_API_TYPE=local
export UNIFI_LOCAL_HOST=192.168.2.1
# Run any tool directly
unifi-cli list-clients --site default
unifi-cli get-device-details --site default --device-id <id>
Start the server with only the tools you need:
UNIFI_PROFILE=network unifi-mcp-server # clients, VLANs, WiFi, DHCP, DNS
UNIFI_PROFILE=devices unifi-mcp-server # device management and control
UNIFI_PROFILE=security unifi-mcp-server # firewall, VPN, ACLs, content filtering
UNIFI_PROFILE=system unifi-mcp-server # backups, QoS, traffic flows, sites
UNIFI_PROFILE=protect unifi-mcp-server # cameras, NVRs, sensors, alarms
skills/unifi-network/)Clients · VLANs · WiFi (SSIDs) · DHCP reservations · DNS · WAN · Vouchers
skills/unifi-devices/)Inventory · Adoption · Restarts/upgrades · Radio config · Port profiles · Switching/stacks · Topology · Diagnostics
skills/unifi-security/)Firewall rules · Firewall groups · Zone-based firewall (ZBF) · ACLs · Port forwarding · VPN · Site-to-site VPN · Content filtering
skills/unifi-system/)Sites · Multi-site aggregation · Backups · QoS / traffic routes · Traffic flow analytics · DPI · RADIUS · Guest portal · Hotspot packages
| Variable | Description | Default |
|---|---|---|
UNIFI_API_KEY | API key from UniFi controller or unifi.ui.com | required |
UNIFI_API_TYPE | local, cloud-v1, or cloud-ea | cloud-ea |
UNIFI_LOCAL_HOST | Gateway IP (local mode only) | — |
UNIFI_DEFAULT_SITE | Default site ID | default |
UNIFI_LOCAL_VERIFY_SSL | Verify the console's TLS certificate (local mode) | true |
| Feature | local | cloud-v1 | cloud-ea |
|---|---|---|---|
| Zone-based firewall | ✅ | ❌ | ❌ |
| Traffic flows | ✅ | ❌ | ❌ |
| Firewall rules/zones | ✅ | ❌ | ❌ |
| ACLs | ✅ | ❌ | ❌ |
| Traffic matching lists | ✅ | ❌ | ❌ |
| Device and client management | ✅ | ❌ | ❌ |
| Protect | ✅ | ❌ | ❌ |
| Sites and aggregate statistics | ✅ | ✅ | ✅ |
Site Manager, Mobility, InnerSpace, Carrier (needs UNIFI_SITE_MANAGER_ENABLED=true) | ✅ | ✅ | ✅ |
# Check what clients are online on the main site
List all active clients on site "default"
# Investigate a device
Get details for the device with MAC aa:bb:cc:dd:ee:ff
# Firewall audit
List all firewall policies in zone-based firewall
# Bandwidth troubleshooting
Show top traffic flows for the last hour
# Backup before a change
Trigger a backup on site "default", then update the guest SSID password
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub enuno/unifi-mcp-server --plugin unifi-mcp-server16 skills in this plugin
/unifi-channel-planningBuild an AI-driven low-interference WiFi channel plan from UniFi MCP neighbor observations. Use when the task is RF optimization, channel conflict reduction, co-channel interference mitigation, or per-AP channel assignment.
/unifi-cloud-fleet-toolsUse when adding, changing or testing a cloud or multi-controller MCP tool (Site Manager, the connector proxy, the integration API tools, sites, Mobility, InnerSpace, Carrier Fabric) or the fleet stack (router, registry, pool, read cache, workers, fleet_* and admin tools) - covers API modes, gating, per-call routing, tokens and roles, test fixtures and known gaps./unifi-devicesUniFi device management: inventory, adoption, restarts, firmware upgrades, radio/channel configuration, port profiles, switching/stacks, network topology, and diagnostics. Use when the task involves physical UniFi hardware (APs, switches, gateways, cameras).
/unifi-discoveryFind what a UniFi MCP Server can do and pick the right backend before acting. Use when starting a session, when a tool is missing or returns nothing, when choosing between local, cloud and fleet mode, or when deciding which tools are safe to call.
/unifi-docs-syncUse when adding, changing or removing an MCP tool, changing the A2A agent card or the native MCP prompt catalog, or changing what a deployment exposes - covers the tool registry, the agent card, the prompt catalog, API.md, the skills and the checks that fail when they drift./unifi-fleet-operationsOperate a multi-controller UniFi deployment behind one MCP server. Use when there is more than one controller, when a task must run against a specific controller, when a controller is unreachable, or when a controller's credentials need to be managed.
Other plugins' skills for the same job