Unifi MCP Server

MCP server for the UniFi Network API

Local serverstdioTypeScript

What is the Unifi MCP server?

If you already use Unifi, the unifi mcp server is the piece that lets your assistant work with it directly. MCP server for the UniFi Network API.

What the server does

An MCP (Model Context Protocol) server that exposes the UniFi Network Integration API as tools for Claude Code and other MCP clients. Provides 74 tools for managing sites, devices, clients, networks, WiFi, firewalls, ACLs, switching, DNS policies, hotspot vouchers, VPNs, and more.

Installation

The server ships on npm as pnpm, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Credentials and setup notes

Configuration is passed through the environment: UNIFI_NETWORK_HOST, UNIFI_NETWORK_API_KEY, UNIFI_NETWORK_VERIFY_SSL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js 22.13+ or 24 (see engines in package.json) - A UniFi Network console with the Integration API enabled - An API key generated from your UniFi Network console

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Unifi's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

How to install the Unifi MCP server

{
  "mcpServers": {
    "unifi-network": {
      "command": "npx",
      "args": ["-y", "@owine/unifi-network-mcp@latest"],
      "env": {
        "UNIFI_NETWORK_HOST": "192.168.1.1",
        "UNIFI_NETWORK_API_KEY": "your-api-key",
        "UNIFI_NETWORK_VERIFY_SSL": "false"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 22.13+ or 24 (see engines in package.json) - A UniFi Network console with the Integration API enabled - An API key generated from your UniFi Network console
VariableDescriptionRequired
UNIFI_NETWORK_HOSTEndpoint or connection string the server talks to.Optional
UNIFI_NETWORK_API_KEYCredential the server authenticates with.Yes
UNIFI_NETWORK_VERIFY_SSLConfiguration value read at startup.Optional

Frequently asked questions

It connects Unifi to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Unifi directly.