unifi-local-mcp
Provides controlled access to the official local APIs of UniFi applications, including Network, Protect, and Access, with read-only defaults, least-privilege permissions, and approval-gated high-impact changes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
unifi-local-mcp
A self-hosted Model Context Protocol server that gives MCP clients such as Claude Code and Codex controlled access to the official local APIs of UniFi applications (Network, Protect, Access). AI clients connect to this server, never to UniFi. UniFi credentials never leave the server.
Status: Phase 1 (secure platform core), Phase 2 (UniFi Network) and Phase 3 (UniFi Protect) are complete; Phase 4 (UniFi Access) is implemented with its gate open; Phase 5 (release hardening) is in progress. The service serves MCP over Streamable HTTP and, through the stdio bridge, over stdio, is administered with the host-only
unifi-mcpCLI, and implements all 73 documented UniFi Network operations (docs/applications-network.md), 73 of the 74 UniFi Protect 7.3.74 operations, including its event subscriptions (docs/applications-protect.md, docs/events.md), and 98 of the 107 UniFi Access operations (docs/applications-access.md). All are tested against synthetic consoles; Network and Protect reads were also checked on a real console (Network 11.0.99, Protect 7.3.74). Access has not run on a real console. See docs/phase-checklist.md, docs/installation.md and docs/administration.md.
Design principles
Secure by default: read-only, least privilege, deny by default. An immutable
UNIFI_MCP_FORCE_READ_ONLYdeployment lock is available.Official local APIs only: no cloud or Site Manager access, no undocumented endpoints, no raw HTTP proxy tools.
Independent human approval for high-impact changes, via the admin UI or local CLI. An AI can never approve.
Per-client identity: one revocable token per MCP client, with permission-filtered tool lists.
Streamable HTTP and an authenticated stdio bridge; MCP 2026-07-28 and 2025-era clients.
Related MCP server: unifi-safe-mcp
Repository map
Path | Contents |
The design specification (source of truth) | |
Manual, ADRs, threat model, API coverage | |
Vendor contract provenance and operation inventories | |
| Workspace packages: the service, CLI, bridge and the three adapters |
| Compose examples (one host, HTTPS, two networks), bootstrap file |
| Contract tooling, schema generation, secret scan, release checks |
| Unit, contract, security, mock integration, performance, container and opt-in live tests |
Development
Requires Node.js 26.13.0+ (26.x LTS) and npm 11.
npm ci
npm run check # format check, lint, typecheck, tests
npm run api:fetch-specs # download and verify vendor API artefacts (internet needed)
npm run api:reconcile # check the inventories against the vendor contracts
npm run unifi-mcp -- --help # the host administration CLI from a source checkoutNever run npx unifi-mcp: that name on the public npm registry belongs to an unrelated
package, which npx would download and run.
The contributor guide, including how to add an operation to an adapter, is docs/development.md.
Licence
Apache License 2.0. See LICENSE and NOTICE. UniFi is a trademark of Ubiquiti Inc.; this project is independent and not affiliated with Ubiquiti.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage UniFi Network, Protect, and Access infrastructure through MCP tools, with support for local controllers and cloud relay.MIT
- AlicenseDqualityDmaintenanceEnables read-only, bounded access to UniFi Network appliance health, devices, and active clients through three safe MCP tools with TLS verification and redirect rejection.3MIT
- AlicenseAqualityDmaintenanceEnables local UniFi Network inspection and management through MCP, providing typed read-only inventory of sites, devices, clients, and networks, with preview-first, explicitly confirmed device rename and LED locate operations.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and applications to interact with UniFi network infrastructure through the UniFi Network Controller API, supporting device, client, network, firewall, QoS, backup, multi-site, and topology management.Apache 2.0