Skip to content
MCP server

UniFi Fabric MCP Server

MCP server for managing UniFi networks and cameras through Ubiquiti's cloud API

UniFi Fabric MCP Server is an MCP server for cloud and infrastructure. It can run locally on your machine or as a hosted remote server.

Platforms
CLI, Self-hosted, API
Runs
Locally or Remotely
Access
Needs a secret key or token
Version
0.7.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add unifi-fabric-mcp-server --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- uvx unifi-fabric-mcp-server

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "unifi-fabric-mcp-server": {
      "command": "uvx",
      "args": [
        "unifi-fabric-mcp-server"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "unifi-fabric-mcp-server": {
      "command": "uvx",
      "args": [
        "unifi-fabric-mcp-server"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "unifi-fabric-mcp-server": {
      "command": "uvx",
      "args": [
        "unifi-fabric-mcp-server"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "unifi-fabric-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "unifi-fabric-mcp-server"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add unifi-fabric-mcp-server --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- uvx unifi-fabric-mcp-server

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.unifi-fabric-mcp-server]
command = "uvx"
args = ["unifi-fabric-mcp-server"]
env = { UNIFI_API_KEY = "<UNIFI_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "unifi-fabric-mcp-server": {
      "command": "uvx",
      "args": [
        "unifi-fabric-mcp-server"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e UNIFI_API_KEY='<UNIFI_API_KEY>' unifi-fabric-mcp-server uvx -- unifi-fabric-mcp-server

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "unifi-fabric-mcp-server": {
          "command": "uvx",
          "args": [
            "unifi-fabric-mcp-server"
          ],
          "env": {
            "UNIFI_API_KEY": "<UNIFI_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • UNIFI_API_KEYUniFi Site Manager API key (unifi.ui.com > API Keys).Required
  • UNIFI_WRITE_POLICYWrite control: allow (default) sends writes, dry-run previews every write without sending it, deny refuses every write.
  • UNIFI_TOOL_MODEDiscovery meta-tools by default; full retains the complete catalog (recommended for gateways); codemode is experimental and read-only.
  • UNIFI_API_KEYUniFi Site Manager API key (unifi.ui.com > API Keys).Required
  • MCP_AUTH_MODERecommended: bearer requires MCP_BEARER_TOKEN on every request. When unset, the server uses bearer if MCP_BEARER_TOKEN is set and none otherwise.
  • MCP_BEARER_TOKENShared bearer token; generate it with: openssl rand -hex 32Required
  • UNIFI_WRITE_POLICYWrite control: allow (default) sends writes, dry-run previews every write without sending it, deny refuses every write.
  • UNIFI_TOOL_MODEDiscovery meta-tools by default; full retains the complete catalog (recommended for gateways); codemode is experimental and read-only.

About UniFi Fabric MCP Server

UniFi Fabric MCP Server targets organizations that group sites under a UniFi fabric in Site Manager. One fabric API key covers every site in the organization, and because requests go through Ubiquiti's cloud, the server never has to reach a controller on your local network. The server itself runs on your own computer or server.

The README claims 798 tools covering Network, Protect, Site Manager and InnerSpace. By default it exposes a small discovery set that searches and calls the rest on demand, so the whole catalogue does not fill the model's context. Full catalogue and an experimental read-only code mode are also available. Protect events, summaries, camera indexes and JPEG snapshots are exposed as MCP resources.

Controls are aimed at shared and managed deployments. A write policy of allow, dry-run or deny applies globally, with per-family and per-tool exceptions. Optional secret redaction, a hash-chained audit log, OpenTelemetry trace export, bearer-token or OAuth authentication, and TLS up to mutual TLS are all settings. Several keys can manage multiple organizations from one server. It installs with uvx from PyPI or as a container image, runs over stdio or streamable HTTP, and also ships as a Claude Desktop extension and Gemini CLI extension.

What it does

Discovery tool mode
Exposes a small search-and-call toolset by default instead of the full 798-tool catalogue.
Write policy
Switch writes between allow, dry-run and deny, with per-family and per-tool exceptions.
Protect resources
Recent events, event summaries, camera indexes and JPEG snapshots are readable as MCP resources.
Multi-organization keys
Configure several API keys to manage many organizations from one server.
Audit and redaction
Mask credential fields in responses and log write attempts with an optional tamper-evident hash chain.
Remote deployment
Serve over HTTPS with bearer-token or OAuth authentication and optional mutual TLS.

Good for

  • Ask which UniFi devices are offline across all sites
  • Review recent Protect camera events and snapshots
  • Preview firewall or Wi-Fi changes with dry-run before applying them
  • Manage several client organizations as a managed service provider
  • Look up InnerSpace floor plans

UniFi Fabric MCP Server FAQ

What credential does UniFi Fabric MCP Server need?

A UniFi Site Manager API key from a fabric, with at least Site Manager and Network scopes, plus Protect for cameras.

Does UniFi Fabric MCP Server need access to my local controller?

No. Everything goes through Ubiquiti's cloud.

Can I stop UniFi Fabric MCP Server from changing settings?

Yes. Set the write policy to deny, or dry-run to preview each write without sending it.

Which clients are covered?

The README gives setup for Claude Code, Claude Desktop, Codex, Google Antigravity, Gemini CLI and VS Code.

How do I add UniFi Fabric MCP Server to Claude Code?

Run this command in your terminal: claude mcp add unifi-fabric-mcp-server --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- uvx unifi-fabric-mcp-server

What are the best alternatives to UniFi Fabric MCP Server?

The closest alternatives to UniFi Fabric MCP Server are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers