Unifi MCP Server logo

Unifi MCP Server

Query and manage UniFi Network, Protect, and cloud infrastructure through MCP tools for sites, health, inventory, and performance.

Install Unifi MCP Server

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "unifi-mcp-server": {
      "command": "uvx",
      "args": [
        "unifi-mcp-server"
      ],
      "env": {
        "UNIFI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

unifi-mcp-server connects AI agents to UniFi Network, UniFi Protect, and UniFi cloud APIs through MCP. It supports local controller access as well as cloud Site Manager, Mobility, InnerSpace, and Carrier Fabric APIs, with optional fleet operation for multiple controllers. Tools cover site discovery, inventory, health, ISP and SD-WAN metrics, cross-site search, and selected infrastructure changes. Reach for it when an agent needs to inspect or operate UniFi deployments from a standard MCP client.

Use cases

  • Compare health and performance across UniFi sites
  • Search for devices, clients, and networks across a deployment
  • Inspect site inventory and console details
  • Query ISP, internet health, and SD-WAN metrics
  • Connect an AI agent to local or cloud UniFi infrastructure

Key features

  • UniFi Network and Protect API access
  • Site Manager and cross-site statistics
  • Site inventory, health, and performance analysis
  • ISP metrics and SD-WAN status queries
  • Multi-controller fleet mode
  • Confirmation and dry-run controls for mutations

Tools19

What Unifi MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~1.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

17/17 checks healthy over the last 59d

What it can do

From the 19 tools this server returned when we ran it.

Read-only tools · 19
Network at startup2 connections
Files written at startup11

Observed 2026-10-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · unifi-mcp-server (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars346Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.

How Unifi MCP Server works

What unifi-mcp-server does

unifi-mcp-server exposes UniFi infrastructure through the Model Context Protocol. It can connect to a local UniFi console or gateway, or use UniFi cloud APIs for site and aggregate data. The server covers UniFi Network and Protect functions alongside cloud services including Site Manager, Mobility, InnerSpace, and Carrier Fabric.

The listed site-management tools support site discovery, host and console inventory, site health, internet health, ISP measurements, SD-WAN configuration status, and aggregate statistics. Cross-site search can locate devices, clients, and networks across managed sites. Site inventory results can include devices, clients, networks, SSIDs, VPN tunnels, and firewall rules.

Local mode provides the broadest capability, including network, device, security, Protect, operations, and configuration tools. Fleet mode can place multiple controllers behind one server and adds shared controller management, caching, roles, and fleet-oriented tools.

How it works

Set UNIFI_API_TYPE to select the connection mode. local talks to a console or gateway on the LAN and supports device and client control, configuration, firewall functions, and Protect. cloud-ea and cloud-v1 use UniFi cloud APIs for sites and aggregate statistics, without per-device control or configuration. Cloud tools are enabled separately with UNIFI_SITE_MANAGER_ENABLED.

The server is commonly launched as a local MCP process with uvx, an installed unifi-mcp-server command, or an interactive Docker container. MCP clients communicate with the process over standard input and output. Mutating tools require explicit confirmation and also support dry-run operation; read-only and dry-run server modes are available.

Setup and configuration

Create a UniFi API key in UniFi Site Manager under Settings → Control Plane → Integrations. Install the package with pip, uv tool, or the published container image, then add an mcpServers entry to the client configuration.

The required credential is UNIFI_API_KEY. For local access, set UNIFI_API_TYPE=local and provide UNIFI_LOCAL_HOST; the local port defaults to 443. Cloud modes are available as cloud-ea and cloud-v1, and the default API type is cloud-ea. TLS verification is enabled by default for local connections, with support for a custom CA file.

Fleet mode requires the fleet extras and uses PostgreSQL and Redis. It is intended for deployments managing multiple controllers rather than a single console.

Tools and capabilities

  • Inspect sites, hosts, consoles, devices, clients, networks, SSIDs, VPN tunnels, and firewall rules.
  • Compare site uptime, latency, bandwidth, and health across locations.
  • Query internet and ISP metrics with optional filters.
  • Read SD-WAN configurations and deployment status.
  • Search for resources across multiple UniFi sites.
  • Work with Network, Protect, Site Manager, Mobility, InnerSpace, and Carrier Fabric APIs.
  • Use operational prompts for health checks, connectivity, Wi-Fi performance, device investigations, firewall reviews, change planning, Protect health, and fleet summaries.

Limitations and notes

Cloud API modes provide site and aggregate statistics, not per-device control or configuration. Zone-based firewall tools require UniFi Network 9.0 or newer, and endpoint availability can vary by firmware. UniFi Network 11 changes the statistics engine and resets historical data, so newly upgraded installations may return empty historical statistics.

The project targets current UniFi Network and UniFi OS documentation, while USG gateways and classic self-hosted Network Application Server deployments are removed platform targets. Keep the MCP process attached to standard input and output when using Docker; do not run the container detached for an MCP client connection.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Unifi MCP Server

unifi-mcp-server is an MCP server that connects AI agents to UniFi Network, UniFi Protect, and UniFi cloud APIs. Its main tools list sites and hosts, inspect inventory and health, compare site performance, query ISP and SD-WAN metrics, search across sites, and retrieve aggregate statistics.

Install it with `pip install unifi-mcp-server` or `uv tool install unifi-mcp-server`, then add an MCP server entry using `uvx unifi-mcp-server` or the installed command. A Docker image is also available, and the container must remain attached to standard input and output.

Set `UNIFI_API_TYPE=local`, provide `UNIFI_LOCAL_HOST`, and set `UNIFI_API_KEY` in the MCP client's environment. The local port defaults to `443`, and TLS certificate verification is enabled unless configured otherwise.

Yes, unifi-mcp-server works with Cursor through its MCP settings. Add the server under Cursor's `mcp.json` configuration, supplying the command and the required UniFi environment variables.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewUnifi MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/unifi-mcp-server?style=directory)](https://allmcps.com/mcp/unifi-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/unifi-mcp-server"><img src="https://allmcps.com/api/badge/unifi-mcp-server?style=directory" alt="Unifi MCP Server on AllMCPs" /></a>