Unifi

Productivity and workflow

An MCP server that leverages official UniFi API.

Your AI app calls the Unifi MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Unifi

Unifi is a community MCP server from enuno, filed in our directory under productivity and workflow. An MCP server that leverages official UniFi API.

Unifi runs on your own machine: your AI app starts it with the command npx -y unifi-mcp-server@0.2.0 and talks to it over standard input and output. It needs UNIFI_HOST, UNIFI_USERNAME and UNIFI_PASSWORD set before Unifi starts.

Unifi is listed in the official MCP registry as io.github.enuno/unifi-mcp-server, version 0.2.0.

At a glance

Publisher
enuno (community)
Runs
Locally on your machine
Install from
Node.js package on npm: unifi-mcp-server
Written in
Python
License
Apache-2.0
GitHub stars
402
Official MCP registry
io.github.enuno/unifi-mcp-server

How to set up Unifi

  1. Install Node.js on the machine that runs your AI app, because Unifi starts with npx and downloads its package on first run.
  2. Create UNIFI_HOST, UNIFI_USERNAME and UNIFI_PASSWORD for Unifi in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Unifi to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Unifi tools to confirm the connection.
  5. Run one read-only task with Unifi first, and keep your app asking before each tool call until the results look right.

Unifi compared with similar servers

  • MCprep by Moo-Ack-Productions has fewer GitHub stars than Unifi (393 against 402); both are community servers, and both run locally.
  • Studio by decocms has more GitHub stars than Unifi (419 against 402); both are community servers, and both run locally.
  • Todoist (abhiz123) by abhiz123 has fewer GitHub stars than Unifi (392 against 402); both are community servers, and both run locally.

Before you connect Unifi

  • Give Unifi its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Unifi tool call until you trust what it does with them.
  • Treat text that Unifi fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Unifi on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Unifi

How marketing and sales teams put Unifi to work, by company size. Pick the size closest to yours and start Unifi on one use case.

Small business

  • A busy owner can use Unifi to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Unifi what slipped last week and which campaign tasks have no owner yet.
  • Unifi runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Unifi to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Unifi to see where work piles up across projects and move it before deadlines slip.
  • Start Unifi on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use Unifi to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Unifi scoped access per workspace, so an agent helps one department without reading another's plans.
  • Unifi is a community server, so have security review the code and pin a version before Unifi touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Unifi README

From enuno/unifi-mcp-server on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

UniFi MCP Server

AI-native control of UniFi networks through the Model Context Protocol

An MCP server that exposes UniFi Network, UniFi Protect and the UniFi cloud APIs (Site Manager, Mobility, InnerSpace, Carrier Fabric) as MCP tools, so AI agents can read and change UniFi infrastructure through one standard interface. It runs against one controller or, in fleet mode, many.

Current release: 0.13.0. See CHANGELOG.md for what changed.

Contents

  • Features
  • API modes
  • Quick start
  • Agent skills
  • Tool profiles and safety controls
  • Network transports and deployment
  • Calling the server from code
  • Native MCP prompts
  • Documentation
  • Development

Features

366 tools in local mode, from 65 modules.

  • Network: clients (search, block, reconnect), networks and VLANs, WiFi SSIDs, DHCP reservations, DNS, WAN, guest vouchers, QoS profiles and traffic routes, DPI statistics, traffic flows (including lookup by flow ID), client-connection events and bulk client editing, and Matter/Thread inventory on Network 11.
  • Devices: inventory, adoption, restart, locate, upgrade, radio settings, port profiles and per-port overrides, switching and stacks, topology export (JSON, GraphML, DOT), diagnostics, WiFi channel planning.
  • Security: legacy firewall rules and groups, zone-based firewall (zones, policies, zone matrix), ACL rules, traffic matching lists, port forwarding, VPN and site-to-site VPN, content filtering, RADIUS and the guest portal.
  • Protect: cameras, NVRs, views, events, sensors, lights, chimes, sirens, relays, speakers, alarm hubs and the alarm manager.
  • Cloud: Site Manager (hosts, sites, cross-site statistics), the connector proxy, Mobility workspaces and devices, InnerSpace floor plans and inventory, Carrier Fabric subscribers and service plans.
  • Operations: sites, backups (create, schedule, download, restore), events, multi-site aggregation, device migration between sites, console NetFlow export configuration, and gateway packet capture.
  • Fleet mode (optional, with Postgres and Redis): many controllers behind one server, a controller registry with encrypted credentials, server-issued tokens with roles, a shared read cache, several replicas and background workers, and fleet_* tools that read across controllers. See MULTI_CONTROLLER.md and docs/FLEET_SCALING_PLAN.md.
  • Native prompts: eight parameterised UniFi operational workflows (health check, client connectivity, WiFi performance, device investigation, firewall review, change planning, Protect health, fleet summary) exposed through the standard prompts/list and prompts/get operations. See docs/PROMPTS.md.
  • Safety: every mutating tool needs confirm=True and supports dry_run=True, plus read-only and dry-run server modes, role-based access over risk tiers, and a hash-chained audit log (see below).
  • A2A discovery and delegation: an agent card built from the live tool registry, served at /a2a/agent-card and /.well-known/agent-card.json, plus a capability manifest and a delegation endpoint that runs a registered tool under the server's own role, confirmation and audit controls. See A2A.md.
  • Observability: Prometheus /metrics, /healthz, SIEM export of audit records, optional Redis caching, webhooks with HMAC verification.

API modes

Set UNIFI_API_TYPE to choose how the server reaches UniFi.

Mode What it reaches Use it for
local (recommended) Your UniFi console or gateway on the LAN (UNIFI_LOCAL_HOST) Everything: device and client control, configuration, firewall, Protect
cloud-ea UniFi's Early Access cloud API Sites and aggregate statistics; no per-device control or configuration
cloud-v1 UniFi's stable v1 cloud API Sites and aggregate statistics; no per-device control or configuration

The cloud tools (Site Manager, Mobility, InnerSpace, Carrier Fabric) call api.ui.com and are registered in every mode. Set UNIFI_SITE_MANAGER_ENABLED=true to use Site Manager tools; actual exposure also depends on the selected profile. The existing Site Manager SD-WAN config list/detail/status reads use the official v1.0.0 /v1/sd-wan-configs paths after the 2026-11-08 reconciliation; this does not implement typed destination/performance steering policies, policy writes, or prove live account interoperability (see API.md and the gap reconciliation).

Site Manager health summaries use the documented /v1/sites statistics and /v1/isp-metrics/5m records. These report available values without running a speed test. The statistics fields can differ by UniFi Network version; unavailable values appear as null or unknown. The inferred site status describes device availability; reported internet issue entries appear separately because they do not by themselves prove a current fault (see API.md). That data mapping has been checked read-only against one Site Manager account; the added edge cases use mocked responses, and version-wide live compatibility has not been verified.

Zone-based firewall tools need UniFi Network 9.0 or later. Some documented UniFi endpoints do not exist on every firmware version; see docs/UNIFI_API.md.

The Matter and Thread reads need UniFi Network 11 or later. No published UniFi contract exposes a Matter or Thread path, so these tools are built against routes derived from the vendor's own Network 11.0.97 application package and verified only as far as a Network 10.6 controller allows: both routes answer 404 there, while a control route in the same API family answers 200 with the same API key, which establishes route absence rather than an auth refusal. A successful Matter or Thread read has not been observed, so the tools are implemented-needs-verification and report supported: false on a controller without the routes. A node's Matter pairing code is never returned. See the discovery record.

UniFi Network 11 / UniFi OS 6: compatible per released documentation, with four items pending live-controller verification, not yet a claim of full support. USG gateways and the classic, self-hosted Network Application Server are removed platform targets; fleet_health automatically flags any registered controller with a USG in its device inventory, but there is no API signal to auto-detect a classic Network Application Server, so label that controller instead (e.g. deployment=classic-server) and filter on it. Network 11 replaces the statistics engine and resets historical data, so the statistics tools (get_historical_stats, get_speed_test_history, get_dpi_statistics, list_top_applications, get_client_dpi) attach a statistics_note to every empty response, an empty history right after the upgrade is expected, not an outage. get_historical_stats can read site-level series from the new MODERN engine with source="auto" or source="modern" (the legacy archive stays the default); that path is mock-tested only and has not been observed on a Network 11 controller. See docs/NETWORK_11_COMPATIBILITY.md for the full compatibility matrix.

Quick start

1. Get an API key
  1. Sign in to UniFi Site Manager.
  2. Go to Settings → Control Plane → Integrations and choose Create API Key.
  3. Copy the key. It is shown only once.
2. Install
pip install unifi-mcp-server          # or: uv tool install unifi-mcp-server
# Fleet mode extras (Postgres, Redis):
pip install 'unifi-mcp-server[fleet]'

Or use the container image (amd64, arm64 and arm/v7; the -fleet variant for amd64 and arm64):

docker pull ghcr.io/enuno/unifi-mcp-server:latest
3. Add it to your MCP client

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows), Cursor (mcp.json, from View: Open MCP Settings) and most other MCP clients take the same mcpServers block:

{
  "mcpServers": {
    "unifi": {
      "command": "uvx",
      "args": ["unifi-mcp-server"],
      "env": {
        "UNIFI_API_KEY": "<your-api-key>",
        "UNIFI_API_TYPE": "local",
        "UNIFI_LOCAL_HOST": "192.168.2.1"
      }
    }
  }
}

If you installed with pip, use "command": "unifi-mcp-server" and drop args. To run the container instead:

{
  "mcpServers": {
    "unifi": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "UNIFI_API_KEY=your-api-key-here",
        "-e", "UNIFI_API_TYPE=local",
        "-e", "UNIFI_LOCAL_HOST=192.168.2.1",
        "ghcr.io/enuno/unifi-mcp-server:latest"
      ]
    }
  }
}

Keep -i and do not add -d: the client talks to the server over the container's stdin and stdout.

4. Main settings
Variable Purpose Default
UNIFI_API_KEY UniFi API key (required) ,
UNIFI_API_TYPE local, cloud-ea or cloud-v1 cloud-ea
UNIFI_LOCAL_HOST / UNIFI_LOCAL_PORT Console address in local mode. The port depends on the deployment: 443 for a UniFi OS appliance, 11443 for UniFi OS Server 5.1.15+, 8443 for a legacy Network Application Server (whose support is unverified, see API.md, "Which console port to point at") , / 443
UNIFI_LOCAL_VERIFY_SSL Verify the console's TLS certificate. false logs a warning at startup true
UNIFI_LOCAL_CA_FILE CA certificate (PEM) for a self-signed console, instead of turning verification off. Can be the console's own certificate ,
UNIFI_LOCAL_TLS_SERVER_NAME Name the console's certificate is checked against, when it is not UNIFI_LOCAL_HOST: unifi.local for UniFi OS's own certificate ,
UNIFI_DEFAULT_SITE Site used when a tool call names none default
UNIFI_SITE_MANAGER_ENABLED Enable the cloud tools (Site Manager, Mobility, InnerSpace, Carrier) false
UNIFI_PROFILE Register only one group of tools (profiles) all
UNIFI_READ_ONLY / UNIFI_DRY_RUN Read-only or preview-only server false
DEBUG Registers debug_api_request (raw GET/DELETE, destructive tier, removed by read-only). Leave unset in production unset
MCP_SERVER_TRANSPORT stdio, streamable_http, http or sse stdio
MCP_AUTH_TOKEN Bearer token, required on network transports; viewer:<token> (or operator:, admin:) limits a token's role ,
REDIS_URL Optional response cache ,
WEBHOOK_SECRET HMAC secret for incoming UniFi webhooks ,
DATABASE_URL Turns on fleet mode (Postgres) ,

.env.example lists every setting with comments, including audit logging, SIEM export, metrics, Supermemory and agnost.ai.

Plugins

The repository is a Claude Code plugin and a self-hosted Claude marketplace. The plugin ships the MCP server over stdio and the operator skills.

/plugin marketplace add enuno/unifi-mcp-server
/plugin install unifi-mcp-server --marketplace enuno/unifi-mcp-server

The plugin starts the server read-only and with a small tool profile. Set UNIFI_API_KEY in your environment before installing; the plugin never stores a credential. To let the agent change controller state, set UNIFI_READ_ONLY=false and widen UNIFI_PROFILE.

UNIFI_PROFILE defaults to minimal, which registers the site, client and device tools. An unset variable does not select every tool; set UNIFI_PROFILE=all for the full surface.

ChatGPT and Codex get a skills-only package, because the skills are the portable part and this project has no hosted MCP endpoint to point ChatGPT at. See docs/PLUGINS.md for the full install and publish steps, docs/CHATGPT_CONNECTOR.md for the ChatGPT connector, and docs/GROK.md for the Grok connector.

Agent skills

The skills/ directory contains 16 installable agent skills. Each is a Markdown SKILL.md that an AI agent loads when relevant: operator skills guide safe use of a running server; developer skills give repository-specific implementation procedures. The summaries below describe when to use each skill and its main workflow. Follow the linked SKILL.md for complete tool references, prerequisites, examples, safety gates, and troubleshooting guidance.

Using the server (operator skills)

Skill When to use it and what it covers
unifi-network Inspect and manage connected clients, networks/VLANs, WiFi/SSIDs, DHCP reservations, DNS filters, WAN connections, and guest vouchers.
unifi-devices Inventory, adopt, diagnose, restart, or upgrade UniFi hardware; configure radios, port profiles, switching, stacks, and topology.
unifi-security Review or manage firewall rules/groups, zone-based firewall, ACLs, port forwarding, VPNs, and content filtering; observe local-mode and firmware requirements.
unifi-system Administer sites and backups; investigate QoS/routes, traffic flows, DPI, RADIUS, guest portal, and traffic matching lists.
unifi-protect Work with cameras, NVRs, alarms, sensors, chimes, sirens, lights, viewers, events, and Protect configuration, with privacy and safety considerations.
unifi-fleet-operations Operate multiple controllers through one server: select the target controller, route calls, inspect fleet health, manage registry entries, and understand fan-out limits.
unifi-channel-planning Turn AP and neighbor observations into a low-interference channel plan, including planning constraints, scoring, validation, and safe rollout.
unifi-discovery Check what a server exposes, its health and profile, then choose the appropriate local, cloud, or fleet backend before using tools.
unifi-safe-changes Gate state changes with confirm, dry_run, read-only mode, risk awareness, rollback planning, and audit checks. Use when a mutation is proposed or a call is refused.
unifi-mcp-setup Set up or configure the server: installation, environment variables, API-mode capability matrix, profiles, and example prompts.

Changing this codebase (developer skills)

Skill When to use it and what it covers
unifi-mcp-tool-builder Add an MCP tool end to end: research the API, design models and function behavior, register it, write tests, and update documentation.
unifi-network-config-tools Implement or test Network configuration tools, including endpoint URL spaces, site-ID translation, read-modify-write behavior, caching, and firmware-specific cases.
unifi-security-tools Implement or test security tools across firewall, ZBF, ACL, port forwarding, traffic matching, RADIUS, and related areas; covers endpoint/ID mapping and risk tiers.
unifi-protect-tools Implement or test Protect modules, HTTP/WebSocket paths, v7 models, response shapes, and the confirmed/dry-run write pattern.
unifi-cloud-fleet-tools Implement or test Site Manager, connector, integration API, Mobility, InnerSpace, Carrier Fabric, and fleet routing/authentication.
unifi-docs-sync Keep the live tool registry, A2A card, native prompt catalog, API reference, skills, and generated artifacts aligned; includes the drift-test workflow.
Install

Claude Code loads skills from ~/.claude/skills/<name>/SKILL.md (every session) or <project>/.claude/skills/<name>/SKILL.md (one project). Copy the folders you want:

git clone https://github.com/enuno/unifi-mcp-server.git
cd unifi-mcp-server
mkdir -p ~/.claude/skills

# All operator skills
cp -r skills/unifi-network skills/unifi-devices skills/unifi-security \
      skills/unifi-system skills/unifi-protect skills/unifi-fleet-operations \
      skills/unifi-channel-planning skills/unifi-discovery \
      skills/unifi-safe-changes skills/unifi-mcp-setup ~/.claude/skills/

# Or one skill
cp -r skills/unifi-security ~/.claude/skills/

# The one-file overview of the whole server
cp -r skills/unifi-mcp-setup ~/.claude/skills/

Note: npx skills (and similar package-skill installers) only install a SKILL.md at the repository root, not the folders under skills/. Install individual skills with the cp -r skills/<name> commands above instead of relying on a root-level skill file.

Other agents that read the same SKILL.md format take the same folders; copy them into that agent's skills directory (Codex, for example, reads .agents/skills/). To update, pull and copy again. Inside this repository the developer skills are already installed for Claude Code (.claude/skills/) and Codex (.agents/skills/).

Use

You don't invoke a skill yourself. The agent reads each skill's description and loads the one that matches your request, then calls the MCP tools it describes, so the MCP server must also be configured in the same client. For example:

  • "Which clients are on the guest VLAN right now?" loads unifi-network.
  • "Audit the zone-based firewall for anything that allows WAN to LAN." loads unifi-security.
  • "Which APs share a 5 GHz channel with a neighbor? Propose a channel plan." loads unifi-channel-planning.
  • "Which controller should I target, and what tools does this server expose?" loads unifi-discovery.
  • "Plan maintenance across APs managed by two controllers." loads unifi-fleet-operations.
  • "Preview a VLAN change and explain how to roll it back." loads unifi-safe-changes.

If the agent doesn't pick a skill up, name it ("use the unifi-security skill"). Pair a skill with the matching UNIFI_PROFILE to keep the tool list small too. docs/SKILLS.md has additional guidance on skill installation and profiles.

Tool profiles and safety controls

Profiles. UNIFI_PROFILE registers only one group of modules, so the client sees fewer tool definitions:

Profile Tools Covers
network 48 Clients, networks, WiFi, DHCP, DNS, WAN, vouchers, channel planning
devices 53 Devices, control, migration, ports, switching, topology, diagnostics
security 47 Firewall, ZBF, ACLs, port forwarding, VPN, content filtering
system 182 Sites, backups, events, DPI, QoS, RADIUS, traffic flows, Protect, cloud
protect 75 The Protect modules
mobility / innerspace / carrier 12 / 10 / 15 One cloud API each
minimal 19 Sites, clients, devices

Counts include the four fleet tools every profile gets. An unknown profile logs a warning and loads everything.

Safety controls.

  • Every mutating tool requires confirm=True, and dry_run=True returns the change it would make without making it.
  • UNIFI_READ_ONLY=true leaves mutating tools out of the tool list entirely. UNIFI_DRY_RUN=true forces every mutating call into preview mode.
  • DEBUG=true adds debug_api_request, a raw GET or DELETE to any controller endpoint. It is a destructive-tier tool, a DELETE needs confirm=True, and read-only mode removes it. Leave DEBUG unset in production.
  • With tokens, each tool has a risk tier (read, write, destructive) and each role a set of tiers: viewer reads, operator writes, and admin can also run destructive tools, including deletes, restores, restarts, client blocking and firewall policy changes. See API.md.
  • Mutations are written to a hash-chained JSON-lines audit log (Postgres in fleet mode), with optional field encryption and SIEM export. See SECURITY.md.
  • Inputs are validated with Pydantic, and credentials are redacted from logs.

Network transports and deployment

stdio is the default and needs no port. To serve MCP over the network, use Streamable HTTP:

export MCP_SERVER_TRANSPORT=streamable_http
export MCP_SERVER_PORT=3000
export MCP_AUTH_TOKEN=$(openssl rand -hex 32)   # required on every network transport
unifi-mcp-server
# Listening on 127.0.0.1:3000; clients send Authorization: Bearer $MCP_AUTH_TOKEN

Clients and MCP gateways then connect to http://<host>:3000/mcp. The server binds to 127.0.0.1 unless you set MCP_SERVER_HOST; put an authenticating TLS proxy in front before exposing it further. http also works. sse is deprecated: client proxies such as mcp-remote can race its initialize handshake (#96).

Container, with the published port on loopback:

services:
  unifi-mcp:
    image: ghcr.io/enuno/unifi-mcp-server:latest
    environment:
      UNIFI_API_KEY: your-api-key
      UNIFI_API_TYPE: local
      UNIFI_LOCAL_HOST: 192.168.2.1
      MCP_SERVER_TRANSPORT: streamable_http
      MCP_SERVER_PORT: 3000
      MCP_SERVER_HOST: 0.0.0.0          # inside the container only
      MCP_AUTH_TOKEN: ${MCP_AUTH_TOKEN}
    ports:
      - "127.0.0.1:3000:3000"

The repository's docker-compose.yml adds Redis and the MCP Toolbox dashboard (MCP_TOOLBOX.md); copy .env.docker.example to .env and run make compose-up. That example starts read-only (UNIFI_READ_ONLY=true) with a viewer stdio caller (UNIFI_STDIO_ROLE=viewer); to allow changes, set UNIFI_READ_ONLY=false and raise UNIFI_STDIO_ROLE to operator, or admin for destructive changes.

  • Ansible: deploy/ansible/ deploys the server alone, a single-host fleet (server, worker, Redis, Postgres), or replicas behind nginx on several hosts. To have an AI agent run the deployment, start from a prompt in docs/deploy-prompts/.
  • Kubernetes: deploy/helm/unifi-mcp/ is a Helm chart for the server alone or in fleet mode with workers, taking every credential from an existing Secret.
  • Local dev deployment (either method): make helm-deploy-local or make ansible-dev-deploy build the current working tree, including uncommitted changes, tag it local-<short-sha>[-dirty], and deploy it for real, instead of pulling or building from a published release. See the "Deploying from a local checkout" / "Local dev deployment" sections in the two overview docs above.

Calling the server from code

Any MCP client library works. With the FastMCP client:

import asyncio

from fastmcp import Client

config = {
    "mcpServers": {
        "unifi": {
            "command": "unifi-mcp-server",
            "env": {
                "UNIFI_API_KEY": "<your-api-key>",
                "UNIFI_API_TYPE": "local",
                "UNIFI_LOCAL_HOST": "192.168.2.1",
            },
        }
    }
}


async def main() -> None:
    async with Client(config) as client:
        sites = await client.call_tool("list_sites", {})
        print(sites.data)

        clients = await client.call_tool("list_active_clients", {"site_id": "default"})
        print(clients.data)

        # Mutations need confirm=True; dry_run=True previews the change.
        preview = await client.call_tool(
            "create_firewall_zone",
            {"site_id": "default", "name": "IoT", "confirm": True, "dry_run": True},
        )
        print(preview.data)


asyncio.run(main())

bin/unifi-cli runs a single tool from a shell (unifi-cli list-clients --site default); see docs/SKILLS.md.

Native MCP prompts

Besides the tools, the server exposes eight parameterised UniFi operational workflows through the standard MCP prompts interface. A client discovers them with prompts/list and retrieves a rendered workflow brief with prompts/get.

import asyncio

from fastmcp import Client

config = {
    "mcpServers": {
        "unifi": {
            "command": "unifi-mcp-server",
            "env": {
                "UNIFI_API_KEY": "<your-api-key>",
                "UNIFI_API_TYPE": "local",
                "UNIFI_LOCAL_HOST": "192.168.2.1",
            },
        }
    }
}


async def main() -> None:
    async with Client(config) as client:
        for prompt in await client.list_prompts():
            print(prompt.name, prompt.description)

        result = await client.get_prompt(
            "network_health_check",
            {"site_id": "default", "focus": "wan"},
        )
        for message in result.messages:
            print(message.content.text)


asyncio.run(main())

The prompts are network_health_check, troubleshoot_client_connectivity, troubleshoot_wifi_performance, investigate_device, review_firewall_policy, plan_network_change, protect_health_check and fleet_health_summary. A workflow is advertised only when the tools it needs are registered on this server, so the prompt list follows the API mode, the profile and the read-only and dry-run settings.

Retrieving a prompt does not run the workflow and grants no approval. The rendered text tells an agent which read tools to call and what to report; the agent calls the tools itself, and the server's role checks, confirm gate and audit trail still apply.

Use make inspect to open the MCP Inspector and browse the prompts, or the MCPJungle CLI to check what the gateway forwards:

mcpjungle list prompts --server unifi
mcpjungle get prompt unifi__network_health_check --arg site_id=default

A tools-only client will not display the prompts; that is a client limitation. There is no prompts-as-tools shim.

See docs/PROMPTS.md for the full catalog, the availability matrix, the validation rules and the manual acceptance steps.

Documentation

Document Contents
API.md Every MCP tool and resource, with parameters and examples
docs/PROMPTS.md The native MCP prompt catalog, with arguments and availability rules
A2A.md The agent card, the capability manifest and the delegation endpoint
docs/AUDIT_A2A_SKILLS.md The A2A and skills audit: what was implemented, what was not, and why
docs/SKILLS.md Agent skills, profiles and the CLI wrapper
docs/UNIFI_API.md The UniFi endpoints behind the tools
MULTI_CONTROLLER.md Fleet mode: controllers, tokens and roles
METRICS.md, WEBHOOK_SETUP.md, A2A.md Metrics, webhooks, the A2A agent endpoints
NETWORK_PLAYBOOK.md, HARBOR_SETUP.md Operating runbooks
SECURITY.md Reporting vulnerabilities, audit logging and hardening
SPEC.md, DEVELOPMENT_PLAN.md, ROADMAP.md Architecture target and roadmap
docs/research/ Endpoint discovery records and negative findings: what was probed, what was observed live, and what remains unverified
CHANGELOG.md, docs/RELEASE_PROCESS.md Release history and how releases are cut and published

Development

git clone https://github.com/enuno/unifi-mcp-server.git
cd unifi-mcp-server
make install    # uv sync from uv.lock with the dev extra (no activation needed)
make hooks      # pre-commit and commit-msg hooks
cp .env.example .env   # then set UNIFI_API_KEY and, for local mode, UNIFI_LOCAL_HOST

make test       # unit tests
make ci         # every blocking CI check: lint, typecheck, security, docs coverage, tests with the 80% gate
make inspect    # open the server in the MCP Inspector (needs Node.js)
make help       # list every target

Without make, the same commands run through uv run --locked, for example uv run --locked pytest tests/unit/ -m "not integration". Integration tests (-m integration) need real UniFi hardware.

Layout: src/main.py builds the server, src/tools/ holds the tool modules, src/api/ the UniFi clients, src/models/ the Pydantic models, src/fleet/ the fleet stack, and tests/unit/ the unit tests. AGENTS.md and CLAUDE.md describe the conventions in detail, and commands.md lists the development commands.

Contributing

Contributions from people and AI coding agents are welcome. See CONTRIBUTING.md and AGENTS.md.

  1. Fork the repository and create a branch.
  2. Write tests first, keep new code at 80% coverage or better, and run make ci.
  3. Use conventional commit messages (feat: ..., fix: ...) and open a pull request.

Issues with [Bug] in the title opened by a maintainer or collaborator get an automated first analysis; other reports are triaged by hand (github.com/enuno/unifi-mcp-server/blob/main).

Read the rest of the Unifi README on GitHub

Questions about Unifi

What is the Unifi MCP server?

An MCP server that leverages official UniFi API. Unifi is maintained by enuno on GitHub at enuno/unifi-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Unifi MCP server?

Add Unifi to your AI app's MCP config with the command npx -y unifi-mcp-server@0.2.0. In Claude Code, run claude mcp add --transport stdio unifi -- npx -y unifi-mcp-server@0.2.0. To run Unifi this way you need Node.js installed.

Does Unifi need an API key?

Yes. Unifi expects UNIFI_HOST, UNIFI_USERNAME and UNIFI_PASSWORD to be set. Create the key for Unifi in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Unifi an official MCP server?

No. Unifi is a community server maintained by enuno. Community servers can be excellent; read the code and the open issues before you give Unifi access to company data.

What license is Unifi under?

Unifi is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Unifi; the service it connects to has its own terms.