UniFi MCP
UniFi semantic-analysis MCP — 54 tools on Site Manager API and Cloud Connector. 8 workflow Prompts (4 fleet-ops + 4 MSP). Read-only.
What is UniFi MCP?
UniFi MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to unifi semantic-analysis mcp — 54 tools on site manager api and cloud connector. 8 workflow prompts (4 fleet-ops + 4 msp). read-only.
UniFi semantic-analysis MCP — 54 tools on Site Manager API and Cloud Connector. 8 workflow Prompts (4 fleet-ops + 4 MSP). Read-only.
This server falls under the Monitoring & Observability category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- UniFi semantic-analysis MCP — 54 tools on Site Manager API a
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @us-all/unifi-mcpManual Installation
npx -y @us-all/unifi-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use UniFi MCP
UniFi MCP Server provides AI assistants with read-only access to Ubiquiti UniFi network infrastructure through 54 semantic analysis tools built on the Site Manager API and Cloud Connector. It covers nine domains including fleet-wide health analysis, device status, client tracking, WAN metrics, WiFi diagnostics, VPN status, and firewall rules — assigning severity verdicts (healthy, info, warning, critical) to findings. Network administrators and MSPs use it to ask natural language questions about their UniFi fleet, get proactive health reports, investigate issues, and generate client-facing status summaries without logging into the UniFi console.
Prerequisites
- A Ubiquiti account with access to UniFi Site Manager (ui.com)
- A UniFi API key with at least Admin role (generated in your ui.com account settings)
- A second UniFi API key with Owner role for Cloud Connector access (optional but enables most tools)
- Node.js 18+ and npx available on your system
- An MCP-compatible client such as Claude Desktop or Claude Code
Generate your UniFi API keys
Log in to ui.com, go to your account settings, and create an API key. For full access to all 54 tools including Cloud Connector, create a second key with Owner role. Copy both keys — you will need them for the MCP config.
# UniFi API key creation:
# https://account.ui.com/ > Security > API KeysRun a preflight configuration check
Before configuring your MCP client, validate your setup using the built-in doctor command. This checks that your API keys are valid and that the server can reach the UniFi API.
npx -y @us-all/unifi-mcp --doctorConfigure your MCP client
Add the UniFi MCP server to your client configuration with your API keys. UNIFI_API_KEY_OWNER is optional but unlocks the Cloud Connector tools (33 additional tools beyond the base 9 Site Manager tools).
{
"mcpServers": {
"unifi": {
"command": "npx",
"args": ["-y", "@us-all/unifi-mcp"],
"env": {
"UNIFI_API_KEY": "your-admin-api-key-here",
"UNIFI_API_KEY_OWNER": "your-owner-api-key-here"
}
}
}
}Optionally enable local controller access
To unlock per-port error counters and SFP diagnostics (2 additional tools), add your local UniFi controller URL and credentials. This is optional and only needed for those advanced tools.
{
"mcpServers": {
"unifi": {
"command": "npx",
"args": ["-y", "@us-all/unifi-mcp"],
"env": {
"UNIFI_API_KEY": "your-admin-api-key-here",
"UNIFI_API_KEY_OWNER": "your-owner-api-key-here",
"UNIFI_LOCAL_URL": "https://192.168.1.1",
"UNIFI_LOCAL_USER": "admin",
"UNIFI_LOCAL_PASS": "your-local-password"
}
}
}
}Restart your MCP client and run a fleet health check
Restart Claude Desktop or your MCP client after saving the configuration. Ask the AI to run a fleet health check as your first query to confirm all sites and devices are reporting correctly.
UniFi MCP Examples
Client configuration
Full claude_desktop_config.json for the UniFi MCP server with both Site Manager and Cloud Connector API keys.
{
"mcpServers": {
"unifi": {
"command": "npx",
"args": ["-y", "@us-all/unifi-mcp"],
"env": {
"UNIFI_API_KEY": "your-admin-api-key-here",
"UNIFI_API_KEY_OWNER": "your-owner-api-key-here"
}
}
}
}Prompts to try
Natural language queries for monitoring and managing your UniFi network infrastructure.
- "Fleet health check across all UniFi sites — flag anything not healthy with severity and the top 3 issues"
- "Find all devices on outdated firmware, group by site, and show current vs latest version"
- "My office site has WiFi complaints — pull device statuses, WAN uptime, recent reboots, and top bandwidth clients for the last 24 hours"
- "Generate a monthly WAN uptime report for all sites and surface any outages longer than 5 minutes"
- "Which clients are currently connected to the guest WiFi network?"Troubleshooting UniFi MCP
API authentication errors when querying devices or clients
Verify your UNIFI_API_KEY is valid by testing it at https://api.ui.com/v1 directly. Cloud Connector tools require UNIFI_API_KEY_OWNER to be an Owner-role key — an Admin key will return 403 for those endpoints. Regenerate keys in your ui.com account settings if they have expired.
Only 9 tools available instead of the expected 54
The 9 semantic analysis tools work with UNIFI_API_KEY alone. The remaining 33 Cloud Connector tools require UNIFI_API_KEY_OWNER set to an Owner-role API key. The 2 local controller tools additionally require UNIFI_LOCAL_URL, UNIFI_LOCAL_USER, and UNIFI_LOCAL_PASS.
npx -y @us-all/unifi-mcp --doctor reports connection failure
Check that UNIFI_API_URL defaults to https://api.ui.com/v1 and is reachable from your machine. If you are behind a corporate firewall or proxy, set HTTP_PROXY / HTTPS_PROXY in the env block. Also verify your Ubiquiti account has active UniFi subscriptions associated with it.
Frequently Asked Questions about UniFi MCP
What is UniFi MCP?
UniFi MCP is a Model Context Protocol (MCP) server that unifi semantic-analysis mcp — 54 tools on site manager api and cloud connector. 8 workflow prompts (4 fleet-ops + 4 msp). read-only. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install UniFi MCP?
Install via npm with the command: npx -y @us-all/unifi-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with UniFi MCP?
UniFi MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is UniFi MCP free to use?
Yes, UniFi MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
UniFi MCP Alternatives — Similar Monitoring & Observability Servers
Looking for alternatives to UniFi MCP? Here are other popular monitoring & observability servers you can use with Claude, Cursor, and VS Code.
Netdata
★ 78.9kReal-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Kubeshark
★ 11.9keBPF-powered network observability for Kubernetes. Indexes L4/L7 traffic with full K8s context, decrypts TLS without keys. Queryable by AI agents via MCP and humans via dashboard.
Mission Control
★ 4.9kSelf-hosted AI agent orchestration platform: dispatch tasks, run multi-agent workflows, monitor spend, and govern operations from one mission control dashboard.
Grafana
★ 3.0kThis MCP server enables natural-language querying of Grafana logs by automatically detecting log sources and service labels. It provides read-only access to log data with intelligent caching for efficient repeat queries.
Sentrux
★ 2.4kReal-time architectural sensor that helps AI agents close the feedback loop, enabling recursive self-improvement of code quality. Pure Rust.
OpenInference
★ 986OpenTelemetry Instrumentation for AI Observability
Browse More Monitoring & Observability MCP Servers
Explore all monitoring & observability servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up UniFi MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use UniFi MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.