Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyOther

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

NameWhat it isRequired
UNIFI_HOSTController IP/hostnameYes
UNIFI_USERNAMEAdmin usernameYes
UNIFI_PASSWORDAdmin passwordYes
UNIFI_API_KEYAPI key (optional, experimental)No
UNIFI_PORTController HTTPS portNo
UNIFI_VERIFY_SSLSSL certificate verificationNo

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_index meta-tool
  • Run a tool indirectly with *_execute or 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

You need a UniFi controller with Access and credentials for it. Install the unifi-access-mcp package from PyPI (Python 3), or use the Claude Code, Codex or OpenClaw plugin. Never paste passwords or keys into chat.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.