UniFi Access MCP
Lets your AI agent manage UniFi Access doors, credentials, policies, visitors and events.
1.0k stars on GitHubby sirkirbyLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add unifi-access -e UNIFI_HOST="<your value>" -e UNIFI_USERNAME="<your value>" -e UNIFI_PASSWORD="<your value>" -- uvx unifi-access-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
UNIFI_HOST | Controller IP/hostname | Yes |
UNIFI_USERNAME | Admin username | Yes |
UNIFI_PASSWORD | Admin password | Yes |
UNIFI_API_KEY | API key (optional, experimental) | No |
UNIFI_PORT | Controller HTTPS port | No |
UNIFI_VERIFY_SSL | SSL certificate verification | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
List the doors in my UniFi Access system.
Show me the door events from this morning.
What it is
UniFi MCP is a set of MCP servers for Ubiquiti UniFi controllers, with separate servers for Network, Protect and Access. The Access server has 37 tools for door access. By default, tools are loaded lazily with meta-tools to keep the starting context small.
What it can do
- Manage doors, credentials, policies and visitors
- Read access events
- Find tools with the
*_tool_indexmeta-tool - Run a tool indirectly with
*_executeor several with*_batch - Load tools directly with the lazy-only
*_load_tools - Keep create, update and delete in confirm mode
When to use
- βΊWhen you want to review who entered a door and when
- βΊWhen you want to add a visitor or change a door policy by asking in chat
- βΊWhen you want an agent to inspect your UniFi setup with write actions that need confirmation
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
offensive-z-waveHelps your agent review Z-Wave smart home devices, such as door locks and sensors, for weak network keys and older security modes during approved tests.cli-policy-auditReviews audit logs, access policies, telemetry and request history from the command line, filtered by event, user or time range.unified-notifications-opsHas your agent manage notifications in a unified way across multiple platforms. Useful for organizing alerts and avoiding information overload.Frequently asked questions
Is it official from Ubiquiti?
The readme does not say so. It is published by sirkirby for UniFi controllers.
Is it open source?
Yes. The readme shows a LICENSE file and PyPI packages.
Is HTTP access protected?
HTTP is disabled by default and binds to loopback when on. Set UNIFI_MCP_HTTP_AUTH_TOKEN to require a bearer token of at least 32 characters.
Can I reach it from outside my network?
The readme describes a Cloud Relay, in beta, that pairs a Cloudflare-hosted Worker with a sidecar on your LAN.
Are there other UniFi servers?
Yes. Network has 210 tools and Protect has 63, plus a separate REST and GraphQL API server in beta.
Can it change things without asking?
The install prompt tells the agent to keep mutation permissions in confirm mode and to deny create, update and delete unless you opt in.
If it does not work
- βΊRun the plugin's setup command, such as /unifi-access:unifi-access-setup in Claude Code, to connect to your controller.
- βΊIf your client only reads content, set UNIFI_MCP_CONTENT_MODE=compat to get the full result in content.
- βΊReload your client after setup and run one read-only check to confirm the connection.
5 new skills a week. 1 minute to read.