Unifi MCP Server

An MCP server that leverages official UniFi API

Local serverstdioPython

What is the Unifi MCP server?

Unifi MCP server exists for a simple reason — assistants are far more useful when they can act on Unifi directly instead of describing what you should do. An MCP server that leverages official UniFi API.

What you get

A Model Context Protocol (MCP) server that exposes the UniFi Network Controller API today and is evolving into a production-grade multi-domain platform for Protect, Access, and enterprise-scale orchestration.

What the assistant can call

Once Unifi is connected, these are the calls the assistant has available:

  • Objective — Give operators a fast, safe reading order for understanding what the server does today, what it is becoming, and which docs govern rollout decisions
  • Prerequisites — The Prerequisites tool exposed by this server
  • Procedure — 1. Confirm the current stable release and current phase focus. 2. Read SPEC.md for architecture intent and DEVELOPMENT_PLAN.md for sequencing. 3. Use
  • Verification — The Verification tool exposed by this server
  • Rollback — The Rollback tool exposed by this server
  • Installation — The Installation tool exposed by this server
  • Publishing — The Publishing tool exposed by this server
  • Configuration — The Configuration tool exposed by this server

Configuration and credentials

You will need 6 environment variables: MCP_SERVER_TRANSPORT, MCP_SERVER_PORT, UNIFI_LOCAL_HOST, UNIFI_API_KEY, AGNOST_ORG_ID, UNIFI_HOST. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • You know which UniFi API mode the deployment uses: local, cloud-ea, or cloud-v1. - You know whether the runtime is stdio, HTTP, SSE, or streamable HTTP. - You have read the phase target in SPEC.md and the current work item in DEVELOPMENT_PLAN.md.

Setting it up

Installation goes through your MCP client rather than a global install: point it at unifi-mcp-server on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Unifi's toolset — Objective, Prerequisites, Procedure and 5 more — is a fair guide to whether it matches your workflow. It is maintained by enuno; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • 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.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the unifi mcp server does with a few real requests.

Available tools

ToolWhat it does
ObjectiveGive operators a fast, safe reading order for understanding what the server does today, what it is becoming, and which docs govern rollout decisions.
PrerequisitesThe Prerequisites tool exposed by this server.
Procedure1. Confirm the current stable release and current phase focus. 2. Read SPEC.md for architecture intent and DEVELOPMENT_PLAN.md for sequencing. 3. Use API.md and docs/UNIFI_API.md for implementation surface details. 4. Us
VerificationThe Verification tool exposed by this server.
RollbackThe Rollback tool exposed by this server.
InstallationThe Installation tool exposed by this server.
PublishingThe Publishing tool exposed by this server.
ConfigurationThe Configuration tool exposed by this server.

How to install the Unifi MCP server

{
  "mcpServers": {
    "unifi": {
      "url": "http://your-server-ip:3000/sse"
    }
  }
}

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

Configuration

  • You know which UniFi API mode the deployment uses: local, cloud-ea, or cloud-v1. - You know whether the runtime is stdio, HTTP, SSE, or streamable HTTP. - You have read the phase target in SPEC.md and the current work item in DEVELOPMENT_PLAN.md.
VariableDescriptionRequired
MCP_SERVER_TRANSPORTConfiguration value read at startup.Optional
MCP_SERVER_PORTConfiguration value read at startup.Optional
UNIFI_LOCAL_HOSTEndpoint or connection string the server talks to.Optional
UNIFI_API_KEYCredential the server authenticates with.Yes
AGNOST_ORG_IDConfiguration value read at startup.Optional
UNIFI_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Unifi to Objective.
  • Use Unifi to Prerequisites.
  • Use Unifi to Procedure.

Frequently asked questions

It connects Unifi to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (Objective, Prerequisites, Procedure, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Unifi directly.