UniFi Protect MCP
local MCP serverUniFi Protect MCP is a local MCP server: Manage UniFi Protect cameras, events, recordings, and smart detections via MCP. Install it from pypi as unifi-protect-mcp.
Installation
Terminal
claude mcp add unifi-protect-mcp -e UNIFI_HOST=... -e UNIFI_USERNAME=... -e UNIFI_PASSWORD=... -e UNIFI_API_KEY=... -e UNIFI_PORT=... -e UNIFI_VERIFY_SSL=... -- uvx unifi-protect-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"unifi-protect-mcp": {
"command": "uvx",
"args": [
"unifi-protect-mcp"
],
"env": {
"UNIFI_HOST": "...",
"UNIFI_USERNAME": "...",
"UNIFI_PASSWORD": "...",
"UNIFI_API_KEY": "...",
"UNIFI_PORT": "...",
"UNIFI_VERIFY_SSL": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Python with uv (runs with uvx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
UNIFI_HOST,UNIFI_USERNAME,UNIFI_PASSWORD,UNIFI_API_KEY,UNIFI_PORT,UNIFI_VERIFY_SSL
Summary
Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.
UniFi Protect MCP vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| UniFi Protect MCP | 853 | Local | Yes | pypi |
| UniFi Access MCP | 853 | Local | Yes | pypi |
| Agent-Native Calendar | 6,874 | Hosted | No | None |
| Jitsu | 5,094 | Hosted | No | None |
| UniFi Network MCP | 853 | Local | Yes | pypi |
Questions
It reads 6 environment variables: UNIFI_HOST, UNIFI_USERNAME, UNIFI_PASSWORD, UNIFI_API_KEY, UNIFI_PORT, UNIFI_VERIFY_SSL. Set them in your MCP config before starting the server.
Python with uv (runs with uvx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
UniFi Protect MCP is a local MCP server distributed as the pypi package unifi-protect-mcp.
Run: claude mcp add unifi-protect-mcp -e UNIFI_HOST=... -e UNIFI_USERNAME=... -e UNIFI_PASSWORD=... -e UNIFI_API_KEY=... -e UNIFI_PORT=... -e UNIFI_VERIFY_SSL=... -- uvx unifi-protect-mcp
Run: codex mcp add unifi-protect-mcp --env UNIFI_HOST=... --env UNIFI_USERNAME=... --env UNIFI_PASSWORD=... --env UNIFI_API_KEY=... --env UNIFI_PORT=... --env UNIFI_VERIFY_SSL=... -- uvx unifi-protect-mcp
Similar MCP servers
NameStars
- UniFi Access MCPio.github.sirkirby/unifi-access-mcp853
- Agent-Native Calendario.github.BuilderIO/agent-native-calendar6,874
- Jitsucom.jitsu/mcp5,094
- UniFi Network MCPio.github.sirkirby/unifi-network-mcp853
- mcp-servercom.puter/mcp-server44K
- GitHubio.github.github/github-mcp-server33K
- screenpipeio.github.screenpipe/screenpipe-mcp22K
- Coderio.github.coder/coder17K