# UniFi Fabric MCP Server

> UniFi Fabric MCP Server is an MCP server for cloud and infrastructure. MCP server for managing UniFi networks and cameras through Ubiquiti's cloud API. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, API, Linux, macOS, Windows
- **Repository:** https://github.com/swkstudios/unifi-fabric-mcp-server
- **MCP Registry name:** io.github.swkstudios/unifi-fabric-mcp-server
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/unifi-fabric-mcp-server
