# UniFi Site Manager and Network (unofficial)

> UniFi Site Manager and Network (unofficial) is an open-source MCP server for cloud and infrastructure. Unofficial UniFi Site Manager and Network cloud API server with a write guard. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/mguttmann/the-real-unifi-mcp
- **MCP Registry name:** io.github.mguttmann/the-real-unifi-mcp
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-23

## About

A single Site Manager API key with Network scope lets an assistant list consoles, inspect devices and clients, and change networks, WiFi and firewall policies. The README counts 169 tools: 86 hand-wrappers (10 for Site Manager, 76 for Network), 82 generated one per documented endpoint, and a raw-request escape hatch.

It talks only to Ubiquiti's cloud endpoint, api.ui.com, so it is cloud-only, and the console needs firmware 5.0.3 or later. Console and site IDs are discovered lazily or pinned with environment variables. Destructive tools preview first and run when called again with confirm YES, which the README calls a speed bump, not human approval. UNIFI_READ_ONLY blocks all writes and UNIFI_REDACT_SECRETS hides passwords and keys in results.

The API key controls your whole network, so treat it like an admin password. It is unofficial, MIT licensed, and also packaged as an MCPB bundle for Claude Desktop.

## Features

- **169 tools:** Site Manager and Network operations, read and write.
- **Write guard:** Destructive tools preview before confirmation.
- **Read-only mode:** UNIFI_READ_ONLY blocks every write.
- **Secret redaction:** Hides passwords and keys in results when enabled.
- **Lazy ID discovery:** Finds console and site IDs automatically or lets you pin them.
- **MCPB bundle:** A packaged build for Claude Desktop.

## Good for

- List consoles and devices on an account
- Review firewall policies
- Inspect connected clients
- Change WiFi settings with a preview first

## Install

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

```sh
claude mcp add the-real-unifi-mcp --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- npx -y the-real-unifi-mcp
```

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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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 the-real-unifi-mcp --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- npx -y the-real-unifi-mcp
```

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

```toml
[mcp_servers.the-real-unifi-mcp]
command = "npx"
args = ["-y", "the-real-unifi-mcp"]
env = { UNIFI_API_KEY = "<UNIFI_API_KEY>" }
```

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

```json
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e UNIFI_API_KEY='<UNIFI_API_KEY>' the-real-unifi-mcp npx -- -y the-real-unifi-mcp

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

```json
{
  "mcpServers": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "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": {
    "the-real-unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "the-real-unifi-mcp"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 5 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `unifi_sm_list_hosts` (name suggests: reads): Lists all UniFi consoles on the account
- `unifi_sm_get_host` (name suggests: reads): Details for a single console
- `unifi_sm_list_sites` (name suggests: reads): Lists account-level sites
- `unifi_sm_list_devices` (name suggests: reads): Lists account-level devices
- `unifi_raw_request`: Escape hatch for any API request

## FAQ

### Is UniFi Site Manager and Network (unofficial) official?

No. It is not affiliated with or endorsed by Ubiquiti.

### Does UniFi Site Manager and Network (unofficial) work on a local network?

It is cloud-only and uses api.ui.com.

### What key does UniFi Site Manager and Network (unofficial) need?

A Site Manager API key with Network scope.

### Can I make UniFi Site Manager and Network (unofficial) read-only?

Yes, with UNIFI_READ_ONLY.

### Is UniFi Site Manager and Network (unofficial) free?

Yes. UniFi Site Manager and Network (unofficial) is open source, so you can use and self-host it for free.

### How do I add UniFi Site Manager and Network (unofficial) to Claude Code?

Run this command in your terminal: claude mcp add the-real-unifi-mcp --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- npx -y the-real-unifi-mcp

### What are the best alternatives to UniFi Site Manager and Network (unofficial)?

The closest alternatives to UniFi Site Manager and Network (unofficial) are awslabs, kubeshark, Azure MCP Server, Pitot and Lightweight Agentic CMS on Cloudflare.

## Where this comes from

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

## Alternatives

- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [kubeshark](https://ai-powered.com/mcp/kubeshark): kubeshark is an open-source MCP server for cloud and infrastructure.
- [Azure MCP Server](https://ai-powered.com/mcp/azure-mcp-server): Azure MCP Server is an open-source MCP server for cloud and infrastructure.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [Lightweight Agentic CMS on Cloudflare](https://ai-powered.com/mcp/lightweight-agentic-cms-on-cloudflare): Lightweight Agentic CMS on Cloudflare is an open-source MCP server for cloud and infrastructure.
- [Runeward](https://ai-powered.com/mcp/runeward): Runeward is an open-source MCP server for developer tools.
- [Proxmox VE](https://ai-powered.com/mcp/proxmox-ve-2): Proxmox VE is an open-source MCP server for cloud and infrastructure.
- [KubeStellar MCP](https://ai-powered.com/mcp/kubestellar-mcp): KubeStellar MCP is an MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/unifi-site-manager-and-network-unofficial
