UniFi MCP server

An MCP server connects agents to UniFi infrastructure for device diagnostics, configuration reviews and approved changes

  • 340 ★ on the repository
  • Last commit
  • Apache-2.0
MCP server

Broad access

Why this level

  • Network rule changes or device restarts can interrupt users’ connectivity.
  • The server can access client and device information for selected UniFi sites.
All reasons and checks

enuno/unifi-mcp-server

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/unifi-mcp-server

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • Network rule changes or device restarts can interrupt users’ connectivity.
  • The server can access client and device information for selected UniFi sites.

This is third-party code. Review the repository files before installing.

What it does

UniFi MCP server connects an MCP client to UniFi Network, Protect and cloud APIs. Agents can inspect clients, devices and network health. The interface also covers Wi-Fi configuration, firewall rules and backup operations. Mutations require a confirmation parameter and support previews. Profiles and a read-only mode can restrict available tools. An optional fleet setup manages multiple controllers through a shared registry and access roles.

Who it is for. For administrators of their own UniFi infrastructure who want diagnostics through an MCP client.

Good fit when

  • Investigate a client losing connectivity
  • Review Wi-Fi settings and channels
  • Compare health across multiple controllers
  • Prepare a network change with a preview

Not a fit when

  • You use another vendor’s hardware
  • You lack permission to administer the network
  • You need a tool without a key or controller access

Example request

In read-only mode, inspect UniFi network health and explain possible causes of this client’s disconnects.

MCP

Transport
stdio, http, sse
Authentication
API key

Environment variables

UNIFI_API_KEY required, secret
UniFi API key for the selected sites.
UNIFI_LOCAL_HOST
Controller address in local mode.

Limitations

Python 3.11 or newer and a UniFi API key with access to the selected sites are required. The `cloud-ea` and `cloud-v1` modes do not configure individual devices; controller configuration needs `local` mode. Some operations depend on controller firmware, and zone-based firewall tools require UniFi Network 9.0 or later. Network transports require a separate MCP token, so configure authentication before connecting a remote client.

How to disable. Remove the server from the MCP client and revoke its UniFi API key when no longer needed.

FAQ

Is there a read-only mode?

Yes. Set `UNIFI_READ_ONLY=true` to remove mutating tools.

How do confirmation and preview work?

A call needs `confirm=True`; `dry_run=True` previews it. These are tool parameters; human approval must be arranged in the MCP client.

Is this an official Ubiquiti server?

No. It is a community server by enuno using UniFi APIs.

What does multi-controller mode require?

The optional fleet mode uses Postgres and Redis and is installed separately.

Why are operational prompts missing?

A tools-only client may not expose them. Prompts require the MCP prompt operations.

Discussion

No questions or reviews yet.

A set of MCP servers for UniFi: the agent works with Ubiquiti Network, Protect and Access controllers

MCP serverBroad access1KRepository stars

The MCP server exposes Zabbix API calls, documentation and method discovery with read-only and method-filter controls.

MCP serverBroad access260Repository stars

An MCP server for MikroTik routers: the agent reads and changes RouterOS configuration over SSH on a chat request

MCP serverBroad access321Repository stars

Zabbix MCP Server

zabbix-mcp-server

An MCP server for the whole Zabbix API: 237 tools, several Zabbix servers, scoped tokens and a read-only mode

MCP serverBroad access247Repository stars
Official

Official Cloudflare MCP server: the agent drives the whole Cloudflare API by searching the spec and running code

MCP serverBroad access1.1KRepository stars

A self-hosted gateway that merges several MCP servers into one endpoint with auth and tool selection

MCP serverBroad access2.8KRepository stars

README in short

The server exposes operational prompts for health checks and change planning. Deployment options include containers, Ansible and Helm.

README badge

Report a problem

Foxx AIUniFi MCP server
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.