UniFi MCP

v1.12.4Monitoring & Observabilitystable

UniFi semantic-analysis MCP — 54 tools on Site Manager API and Cloud Connector. 8 workflow Prompts (4 fleet-ops + 4 MSP). Read-only.

agentic-aihome-automationmcp-serverunifiunifi-access
Share:
354
Stars
0
Downloads
0
Weekly
0/5

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

Manage UniFi network infrastructure.
Monitor network and security devices.
Automate fleet operations.
us-all

Maintainer

LicenseMIT License
Languagepython
Versionv1.12.4
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @us-all/unifi-mcp

Manual Installation

npx -y @us-all/unifi-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 Keys
2

Run 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 --doctor
3

Configure 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"
      }
    }
  }
}
4

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"
      }
    }
  }
}
5

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.

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.

Quick Config Preview

{ "mcpServers": { "unifi": { "command": "npx", "args": ["-y", "@us-all/unifi-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides