unifi-mcp
by sirkirby·★ 339·Score 53
MCP servers for UniFi applications (Network, Protect, Access) with 169 tools total and cross-product correlations.
Overview
UniFi MCP is a collection of MCP servers that enable AI assistants to interact with Ubiquiti UniFi controllers. The project includes three main servers: Network (stable, 169 tools), Protect (beta, 43 tools), and Access (beta, 29 tools). Each server exposes its respective UniFi application functionality as MCP tools that are queryable, composable, and safe by default. The project also includes a cloud relay for connecting to remote agents and an optional REST/GraphQL API for non-MCP consumers.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose UniFi MCP if you're already using Ubiquiti UniFi infrastructure and want AI-powered management capabilities with advanced features like preview-before-confirm mutations and cross-product event correlation.
When NOT to choose this
Don't choose UniFi MCP if you're not using Ubiquiti hardware, as this server only supports UniFi controllers and doesn't integrate with other networking ecosystems.
Tools this server exposes
12 tools extracted from the READMEshow_clientsShow all clients connected to the network with their details
create_firewall_ruleCreate a new firewall rule to control network traffic
audit_firewallAudit firewall policies for redundant or conflicting rules
list_motion_camerasList all cameras that detected motion in a specified time period
show_smart_detectionShow smart detection events from cameras with filtering options
badge_access_eventsShow timeline of door access events and badge information
create_visitor_passCreate a visitor pass with specific access permissions
network_health_checkRun batch diagnostics across devices and health subsystems
firewall_managerManage firewall policies with templates and change tracking
security_digestSummarize cross-product events with severity classification
correlate_eventsCorrelate Network, Protect, and Access events in a single timeline
audit_firewall_policiesComprehensive security audit of firewall policies with scoring
Comparable tools
Installation
Installation
Claude Desktop (Recommended)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"unifi-network": {
"command": "uvx",
"args": ["unifi-network-mcp@latest"],
"env": {
"UNIFI_HOST": "192.168.1.1",
"UNIFI_USERNAME": "admin",
"UNIFI_PASSWORD": "your-password"
}
},
"unifi-protect": {
"command": "uvx",
"args": ["unifi-protect-mcp@latest"],
"env": {
"UNIFI_PROTECT_HOST": "192.168.1.1",
"UNIFI_PROTECT_USERNAME": "admin",
"UNIFI_PROTECT_PASSWORD": "your-password"
}
},
"unifi-access": {
"command": "uvx",
"args": ["unifi-access-mcp@latest"],
"env": {
"UNIFI_ACCESS_HOST": "192.168.1.1",
"UNIFI_ACCESS_USERNAME": "admin",
"UNIFI_ACCESS_PASSWORD": "your-password"
}
}
}
}Direct Installation
uvx unifi-network-mcp@latest
uvx unifi-protect-mcp@latest
uvx unifi-access-mcp@latestFAQ
- Does this require UniFi API keys?
- No, it uses username/password authentication by default. API keys are optional and experimental, limited to read-only access.
- Can I manage multiple controllers with this?
- Yes, each server supports prefixed environment variables to connect to different controllers or use different credentials.
- What's the preview-then-confirm flow?
- Before applying any changes, the MCP tools show you exactly what will be modified, allowing you to confirm or reject changes before they take effect.
Compare unifi-mcp with
Last updated · Auto-generated from public README + GitHub signals.