The UniFi MCP Server is a Model Context Protocol server that exposes the UniFi Network Controller API, allowing AI agents and applications to interact with UniFi network infrastructure in a standardized manner.
From the registry: An MCP server that leverages official UniFi API
Please install the `unifi-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Python 3.10+** — Python 3.10 or later required. (https://python.org)
- **UniFi Account** — A UniFi account and API key from Settings > Control Plane > Integrations. (https://unifi.ui.com)
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["unifi-mcp-server"]
- required environment variables:
- `UNIFI_API_KEY`: UniFi API key from Settings > Control Plane > Integrations. (example: `<your-api-key>`)
- optional environment variables:
- `UNIFI_API_TYPE`: API mode: local (recommended, full features), cloud-ea, or cloud-v1. Defaults to local. (example: `local`)
- `UNIFI_LOCAL_HOST`: Gateway IP/hostname for local API mode. (example: `192.168.2.1`)
Note: 74+ tools covering device/network/client/WiFi management, firewall, QoS, backup, multi-site. Local API mode recommended for full functionality. Also available via pip install unifi-mcp-server or Docker.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.UNIFI_API_KEYrequiredAPI key for accessing the UniFi Cloud API.UNIFI_API_TYPErequiredSpecifies the API mode to use (local, cloud-ea, or cloud-v1).UNIFI_LOCAL_HOSTrequiredThe IP address of the UniFi gateway when using local API mode.Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.