UniFi Site Manager and Network (unofficial)
Unofficial UniFi Site Manager and Network cloud API server with a write guard
UniFi Site Manager and Network (unofficial) is an open-source MCP server for cloud and infrastructure. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.4.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add the-real-unifi-mcp --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- npx -y the-real-unifi-mcpAdd --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": {
"the-real-unifi-mcp": {
"command": "npx",
"args": [
"-y",
"the-real-unifi-mcp"
],
"env": {
"UNIFI_API_KEY": "<UNIFI_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add the-real-unifi-mcp --env UNIFI_API_KEY='<UNIFI_API_KEY>' -- npx -y the-real-unifi-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.the-real-unifi-mcp]
command = "npx"
args = ["-y", "the-real-unifi-mcp"]
env = { UNIFI_API_KEY = "<UNIFI_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"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
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
UNIFI_API_KEYUniFi Site Manager API key with Network scope (unifi.ui.com, Settings > API). It controls your whole network: treat it like an admin password.RequiredUNIFI_CONFIRM_WRITESWrite confirmation: destructive tools return a preview and run only when called again with confirm "YES". Only false, 0, no or off turn it off.UNIFI_API_BASEAPI base URL; this host receives the API key. https origin only (http only for loopback test stubs). Keep the default.UNIFI_TIMEOUT_MSPer-request timeout in milliseconds, covering response headers and body.UNIFI_LOG_LEVELLog level on stderr: debug, info, warn or error.UNIFI_CONSOLE_IDPins the UniFi console instead of discovering it (needed when the account has several consoles).UNIFI_NETWORK_SITE_IDPins the Network site instead of discovering it.UNIFI_SITE_MANAGER_SITE_IDPins the Site Manager site instead of discovering it.UNIFI_READ_ONLYRead-only mode: every write tool returns an error and sends no request; reads still work. Off by default.UNIFI_REDACT_SECRETSMasks passwords, WiFi passphrases, pre-shared keys and other secret fields in every tool result with (redacted); write tools refuse a body that contains that placeholder. Off by default.UNIFI_MAX_RESULT_BYTESCuts tool results longer than this many bytes and marks them as truncated. Unset or empty: 100000. 0, off or none: no cap.
About UniFi Site Manager and Network (unofficial)
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.
Tools this server provides (5)
Taken from the project documentation; the running server may differ.
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_hostsName suggests: reads
- Lists all UniFi consoles on the account
- unifi_sm_get_hostName suggests: reads
- Details for a single console
- unifi_sm_list_sitesName suggests: reads
- Lists account-level sites
- unifi_sm_list_devicesName suggests: reads
- Lists account-level devices
- unifi_raw_request
- Escape hatch for any API request
What it does
- 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
Pricing
Open source
MIT licence
UniFi Site Manager and Network (unofficial) 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.
