# unifi-mcp-server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/enuno/unifi-mcp-server  
**GitHub Stars:** 372  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/unifi-mcp-server

## Description
An MCP server that leverages official UniFi API

## Tools
Capabilities this server exposes over MCP:

- **get_site_details** — Get detailed site information.
- **list_sites** — List all accessible sites.
- **compare_site_performance** — Compare performance metrics across all sites.

Analyzes uptime, latency, bandwidth, and health status to identify
best and worst performing sites.
- **get_cross_site_statistics** — Get aggregate statistics across multiple sites.
- **get_host** — Get host details by ID.
- **get_internet_health** — Get internet health metrics across sites.
- **get_isp_metrics** — Get ISP metrics for a specific site.
- **get_sdwan_config** — Get SD-WAN configuration by ID.
- **get_sdwan_config_status** — Get SD-WAN configuration deployment status.
- **get_site_health_summary** — Get health summary for all sites or a specific site.
- **get_site_inventory** — Get comprehensive inventory for a site or all sites.

Provides detailed breakdown of resources including devices, clients,
networks, SSIDs, VPN tunnels, and firewall rules.
- **get_version_control** — Get API version control information.
- **list_all_sites_aggregated** — List all sites with aggregated stats from Site Manager API.
- **list_hosts** — List all managed hosts/consoles.
- **list_sdwan_configs** — List all SD-WAN configurations.
- **list_vantage_points** — List all Vantage Points.
- **query_isp_metrics** — Query ISP metrics with optional filters.
- **search_across_sites** — Search for resources across all sites.

Search for devices, clients, or networks across all managed sites.
Useful for locating resources in multi-site deployments.
- **connector_network_delete** — Proxy a DELETE request to the Network Application via Cloud Connector.
- **connector_network_get** — Proxy a GET request to the Network Application via Cloud Connector.

Forwards the request to
``https://api.ui.com/v1/connector/consoles/{console_id}/proxy/network/{path}``
and returns the raw response.
- **connector_network_patch** — Proxy a PATCH request to the Network Application via Cloud Connector.
- **connector_network_post** — Proxy a POST request to the Network Application via Cloud Connector.
- **connector_network_put** — Proxy a PUT request to the Network Application via Cloud Connector.
- **connector_protect_delete** — Proxy a DELETE request to the Protect Application via Cloud Connector.
- **connector_protect_get** — Proxy a GET request to the Protect Application via Cloud Connector.

Forwards the request to
``https://api.ui.com/v1/connector/consoles/{console_id}/proxy/protect/{path}``
and returns the raw response.
- **connector_protect_patch** — Proxy a PATCH request to the Protect Application via Cloud Connector.
- **connector_protect_post** — Proxy a POST request to the Protect Application via Cloud Connector.
- **connector_protect_put** — Proxy a PUT request to the Protect Application via Cloud Connector.
- **get_integration_client** — Get a single connected client via the integration API.
- **get_integration_device** — Get a single adopted device via the integration API.
- **get_integration_dns_policy** — Get a single DNS policy via the integration API.
- **get_integration_wifi_broadcast** — Get a single WiFi broadcast via the integration API.
- **list_dpi_application_categories** — List DPI application categories via the integration API.

This endpoint is global (not site-scoped) and returns the canonical
list of application categories used by DPI and traffic-routing features.
- **list_integration_clients** — List connected clients via the integration API.
- **list_integration_device_tags** — List device tags via the integration API.
- **list_integration_devices** — List adopted devices via the integration API.
- **list_integration_dns_policies** — List DNS policies via the integration API.
- **list_integration_networks** — List networks via the integration API.
- **list_integration_sites** — List sites via the integration API.

Returns UUID-based site identifiers suitable for use with other
integration API tools in this module.
- **list_integration_vpn_servers** — List VPN servers via the integration API.
- **list_integration_wans** — List WAN connections via the integration API.
- **list_integration_wifi_broadcasts** — List WiFi broadcasts (SSIDs) via the integration API.
- **assign_carrier_subscriber_plan** — Assign a service plan to a UniFi Carrier Fabric subscriber.
- **attach_carrier_subscriber_host** — Attach a gateway host to a UniFi Carrier Fabric subscriber.
- **create_carrier_subscriber** — Create a UniFi Carrier Fabric subscriber.
- **detach_carrier_subscriber_host** — Detach the gateway host from a UniFi Carrier Fabric subscriber.
- **get_carrier_service_plan** — Get a UniFi Carrier Fabric service plan by ID.
- **get_carrier_subscriber** — Get a UniFi Carrier Fabric subscriber by ID.
- **list_carrier_service_plans** — List UniFi Carrier Fabric service plans.
- **list_carrier_subscribers** — List UniFi Carrier Fabric subscribers.
- **resume_carrier_subscriber** — Resume a suspended UniFi Carrier Fabric subscriber.
- **suspend_carrier_subscriber** — Suspend a UniFi Carrier Fabric subscriber.
- **update_carrier_subscriber** — Update a UniFi Carrier Fabric subscriber.

Only provided fields are sent to the API. Spec semantics: an absent field
leaves it unchanged, while an explicit null clears the field. This tool
only sends provided fields, so use plan_id="" style clearing via direct
API if ever needed.
- **download_innerspace_asset** — Download an asset (e.g. floor plan image) from InnerSpace.
- **get_innerspace_project** — Get the InnerSpace project data for the integration on a console.
- **list_innerspace_access_points** — List access points known to InnerSpace on a console.
- **list_innerspace_floor_plans** — List InnerSpace floor plans on a console.
- **list_innerspace_inventory** — List unplaced devices in InnerSpace inventory on a console.
- **list_innerspace_switches** — List switches placed on InnerSpace floor plans on a console.
- **get_mobility_device** — Get detail for a UniFi Mobility device.
- **list_mobility_device_clients** — List clients attached to a UniFi Mobility device.
- **list_mobility_devices** — List devices in a UniFi Mobility workspace.
- **list_mobility_workspace_admins** — List admins of a UniFi Mobility workspace.
- **list_mobility_workspaces** — List UniFi Mobility workspaces.
- **update_mobility_device** — Rename a UniFi Mobility device.
- **update_mobility_device_network** — Update LAN / DHCP settings on a UniFi Mobility device.
- **update_mobility_device_wireless** — Update WiFi settings on a UniFi Mobility device.
- **list_controllers** — List the UniFi controllers this server can reach.

Every controller-bound tool accepts a ``controller`` argument naming one
of these; without it, calls go to the controller chosen with
select_controller, then to the default.

Returns:
    Controllers (name, API type, host, default site, labels), the
    default controller, and this session's selection
- **select_controller** — Choose the controller this session's later tool calls target.

A tool call's own ``controller`` argument still takes precedence.
- **get_active_controller** — Show which controller a tool call without ``controller`` would target.

Returns:
    The controller name and where it came from: ``session``
    (select_controller) or ``default``; both are None when neither is set
- **health_check** — Health check endpoint to verify server is running.

Returns:
    Status information

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "unifi-mcp-server": {
    "command": "uvx",
    "args": ["unifi-mcp-server"],
    "env": {
      "UNIFI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `UNIFI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/unifi-mcp-server/readme_

