UniFi Protect MCP
MCP server by sirkirby Community
Manage UniFi Protect cameras, events, recordings and smart detections from an AI assistant. It connects to a Protect console on your local network and is aimed at UniFi Protect owners.
Install UniFi Protect MCP
Built from the published package, never by AI.
claude mcp add unifi-protect-mcp -e UNIFI_HOST=YOUR_UNIFI_HOST -e UNIFI_USERNAME=YOUR_UNIFI_USERNAME -e UNIFI_PASSWORD=YOUR_UNIFI_PASSWORD -- uvx unifi-protect-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"unifi-protect-mcp": {
"env": {
"UNIFI_HOST": "YOUR_UNIFI_HOST",
"UNIFI_PASSWORD": "YOUR_UNIFI_PASSWORD",
"UNIFI_USERNAME": "YOUR_UNIFI_USERNAME"
},
"args": [
"unifi-protect-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"unifi-protect-mcp": {
"env": {
"UNIFI_HOST": "YOUR_UNIFI_HOST",
"UNIFI_PASSWORD": "YOUR_UNIFI_PASSWORD",
"UNIFI_USERNAME": "YOUR_UNIFI_USERNAME"
},
"args": [
"unifi-protect-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"unifi-protect-mcp": {
"env": {
"UNIFI_HOST": "YOUR_UNIFI_HOST",
"UNIFI_PASSWORD": "YOUR_UNIFI_PASSWORD",
"UNIFI_USERNAME": "YOUR_UNIFI_USERNAME"
},
"args": [
"unifi-protect-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add unifi-protect-mcp --env UNIFI_HOST=YOUR_UNIFI_HOST --env UNIFI_USERNAME=YOUR_UNIFI_USERNAME --env UNIFI_PASSWORD=YOUR_UNIFI_PASSWORD -- uvx unifi-protect-mcp{
"mcpServers": {
"unifi-protect-mcp": {
"env": {
"UNIFI_HOST": "YOUR_UNIFI_HOST",
"UNIFI_PASSWORD": "YOUR_UNIFI_PASSWORD",
"UNIFI_USERNAME": "YOUR_UNIFI_USERNAME"
},
"args": [
"unifi-protect-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add unifi-protect-mcp uvx unifi-protect-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the unifi-protect-mcp block.
About
UniFi Protect MCP is the Protect server from the UniFi MCP project, published by sirkirby. It is an MCP server that lets AI assistants and automation tools interact with a UniFi Protect console. The source lists 68 tools for the Protect server and marks it as stable. The declared description covers cameras, events, recordings and smart detections.
The server talks directly to the Protect console you name on your network, so it is local-first. Nothing leaves your network unless you add the optional Cloud Relay. It can be run from the PyPI package unifi-protect-mcp, with uvx or Docker, and a Protect plugin is available from the Claude Code, Codex and OpenClaw marketplaces.
It suits people who run UniFi Protect and want an AI assistant to query and manage their cameras and recordings. The source does not list the individual Protect tool names in the text reviewed.
Written from the project's README and checked against it.
What you need
- A UniFi Protect console on your local network
- Python, to run the unifi-protect-mcp PyPI package
- uvx or Docker, as alternative ways to run the server
| Setting | Needed | What it is |
|---|---|---|
UNIFI_Environment variable | Required | Controller IP/hostname |
UNIFI_Environment variable, secret | Required | Admin username |
UNIFI_Environment variable, secret | Required | Admin password |
UNIFI_Environment variable, secret | Optional | API key (optional, experimental) |
UNIFI_Environment variable | Optional | Controller HTTPS port Default: 443 |
UNIFI_Environment variable | Optional | SSL certificate verification Default: false |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List the cameras on my UniFi Protect console
- Show recent events from my Protect cameras
- Find smart detections from the last 24 hours
Good to know
- MCP HTTP is unauthenticated by default and meant for trusted local clients
- Remote access requires an authenticated proxy or the optional Cloud Relay
- The Cloud Relay is in beta
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Reviewing camera events
- Checking Protect recordings
- Managing cameras on a UniFi Protect console
Alternatives to UniFi Protect MCP
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
UniFi Protect MCP: common questions
Does UniFi Protect MCP work with a local console?
Yes. The source says the Protect server connects to a console you name on your network. Nothing leaves your network unless you add the optional Cloud Relay.
How many tools does the Protect server provide?
The source lists 68 tools for the Protect server, and marks it as stable.
Is the HTTP transport secured?
MCP HTTP is unauthenticated by default and meant for trusted local clients. Setting UNIFI_MCP_HTTP_AUTH_TOKEN requires a bearer token on every HTTP request.
How do I install UniFi Protect MCP?
In Claude Code run claude mcp add unifi-protect-mcp -e UNIFI_HOST=YOUR_UNIFI_HOST -e UNIFI_USERNAME=YOUR_UNIFI_USERNAME -e UNIFI_PASSWORD=YOUR_UNIFI_PASSWORD -- uvx unifi-protect-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is UniFi Protect MCP the official server?
UniFi Protect MCP is a community project by sirkirby, not verified by a company domain.
Is UniFi Protect MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is UniFi Protect MCP safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to UniFi Protect MCP?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does UniFi Protect MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
