by sirkirby
MCP servers & Graph API for the UniFi suite of applications, Network, Protect, and Access
# Add to your Claude Code skills
git clone https://github.com/sirkirby/unifi-mcpLast scanned: 11/29/2026
{
"issues": [
{
"file": ".agents/skills/monorepo-release-pipeline/SKILL.md",
"line": 496,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
},
{
"file": "plugins/unifi-access/skills/unifi-access-setup/SKILL.md",
"line": 100,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T13:13:34.337Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}unifi-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sirkirby. MCP servers & Graph API for the UniFi suite of applications, Network, Protect, and Access. It has 1,150 GitHub stars.
Yes. unifi-mcp passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/sirkirby/unifi-mcp" and add it to your Claude Code skills directory (see the Installation section above).
unifi-mcp is primarily written in Python. It is open-source under sirkirby on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh unifi-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Leverage agents and agentic AI workflows to manage your UniFi deployment.
| Server | Status | Tools | Package |
|---|---|---|---|
| Network | Stable | 221 | unifi-network-mcp |
| Protect | Stable | 68 | unifi-protect-mcp |
| Access | Stable | 38 | unifi-access-mcp |
| Site Manager | Beta | 9 | unifi-sitemanager-mcp |
| InnerSpace | Beta | 24 | unifi-innerspace-mcp |
| Drive | Beta | 22 | unifi-drive-mcp |
Network, Protect, Access, InnerSpace and Drive each connect to a console you name on your network. Site Manager is different: it reads Ubiquiti's cloud Site Manager API at https://api.ui.com with one account-wide key, and has nine read-only tools. It counts its domain tools only, without the meta-tools every server registers.
InnerSpace reads the floor plans, walls and device placements of the UniFi InnerSpace application on a console, with a console login rather than an API key, and edits walls, attenuation objects and plan settings with confirmation. It has 24 domain tools (nine reads, 15 writes), counted the same way. It has no plugin yet; add it to your MCP client with uvx or Docker, as InnerSpace shows.
Drive reads and manages UniFi Drive, the storage application on a UniFi NAS (UNAS). The NAS is its own console, so Drive logs in to the NAS itself with a local account and never uses the gateway's UNIFI_HOST or login. It has 22 domain tools, counted the same way: eighteen reads (system, storage pools, pool usage, disks, shared drives, file services, NFS clients, system log, SMB Trash for personal drives, rsync, network throughput, fan mode, per-disk activity, snapshot settings, snapshots, users, user groups) and four preview-first writes that turn SMB, NFS or Time Machine on or off and add, change or remove NFS clients. None of them can erase a disk or delete a pool or shared drive. See Drive.
Install these from the Claude Code, Codex or OpenClaw marketplace; Quick Start shows how.
| Plugin | What you get |
|---|---|
unifi-network |
The Network MCP server, its agent skills and guided setup |
unifi-protect |
The Protect MCP server, its agent skills and guided setup |
unifi-access |
The Access MCP server, its agent skills and guided setup |
unifi-sitemanager |
The Site Manager MCP server for a whole UI account, its agent skills and guided key setup |
unifi-drive |
The Drive MCP server for a UniFi NAS, its agent skills and guided setup |
unifi-intelligence |
Cross-product investigations that use Network and Protect together, with every claim cited. Incident Investigation runs locally; Security Patrol and Visitor Audit need the cloud worker. It requires the Network and Protect plugins |
The Agent Skills table lists every skill each plugin ships.
| What you are building | Use | Why |
|---|---|---|
| An AI assistant or another existing MCP client | Network, Protect, or Access MCP server | Standard MCP discovery, tool calls, permissions, and confirmation flows |
| Floor plans, walls and placed devices from a console's InnerSpace application | InnerSpace MCP server | Reads, and confirmed layout writes, through a console login session; no API key path |
| Storage pools, disk health, shared drives and file services on a UniFi NAS | Drive MCP server | Reads plus preview-first file service and NFS client changes, through a local login on the NAS |
| An account-wide view of every console, site and device on a UI account | Site Manager MCP server | Read-only inventory, WAN health and SD-WAN status from Ubiquiti's cloud with one Site Manager API key |
| A custom application, automation service, code-execution runtime, or MCP adapter | unifi-api-server |
Your code controls call sequencing, data joins, resource limits, and approval flow |
| Remote access for an MCP client | Cloud Relay | Authenticated remote MCP routing without exposing the local servers directly |
An MCP adapter can expose a small set of tools while using unifi-api-server
as its backend. This keeps application-specific joins, branching, loops, and
code isolation out of the general-purpose MCP servers.
| Component | Status | Package |
|---|---|---|
| Relay Sidecar | Beta | unifi-mcp-relay |
| Worker Gateway | Beta | unifi-mcp-worker (CLI) |
Cloud Relay pairs the Cloudflare-hosted Worker gateway with the Relay sidecar on your LAN. The Worker provides the authenticated edge MCP endpoint, Durable Object broker, multi-location routing, token boundary, and deployment/management CLI. The Relay sidecar is a local MCP HTTP client and forwarder: it discovers configured local MCP servers over HTTP and maintains an outbound WebSocket to the Worker. Remote requests follow MCP client → Worker gateway → outbound WebSocket → Relay sidecar → local MCP servers over HTTP; the API server is not in this path. Read-only tools support annotation-based multi-location fan-out, while writes require explicit location targeting. Deploy the Worker with npm install -g unifi-mcp-worker && unifi-mcp-worker install, then see the Relay sidecar README to connect local servers.
| Component | Status | Package |
|---|---|---|
| API Server | Beta | unifi-api-server · GHCR image |
unifi-api-server is an independent HTTP service for custom applications,
automation, and adapters. It provides typed REST resources, read-only GraphQL
queries, SSE streams, scoped API keys and administration, plus a REST action
endpoint for supported controller operations. It shares unifi-core managers
with the MCP servers but does not proxy or require them.
The API server also serves the nine Site Manager reads once an administrator
adds one account-level cloud connection. Every API key with the read scope
can then read the whole cloud account; see
Site Manager cloud connection.
It serves the nine InnerSpace reads and the 15 InnerSpace write actions for a controller that declares the innerspace product with a username and password, and never returns plan image bytes; see InnerSpace console product.
It serves the eighteen Drive reads and the four preview-first Drive writes for a NAS controller that declares the drive product with a username and password; see UniFi Drive console product.
See apps/api/README.md for quick-start and deployment patterns.
UniFi MCP is a collection of Model Context Protocol servers that let AI assistants and automation tools interact with Ubiquiti UniFi controllers. Each server targets a specific UniFi application (Network, Protect, Access) and exposes its functionality as MCP tools — queryable, composable, and safe by default.
Those three servers are local-first: they talk directly to your console, and nothing leaves your network unless you add the optional Cloud Relay. The Site Manager server is the exception. Every request it makes goes to Ubiquiti's cloud at https://api.ui.com, even when your MCP client runs it locally over stdio. The destination is fixed, and its key reads every console on the account. The Cloud Relay does not include it unless you add it to UNIFI_RELAY_SERVERS; a relay token for that location could then read the whole account. See [Site Manager](apps/