UniFi Protect MCP
Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
unifi-protect-mcpclaude mcp add unifi-protect-mcp -e 'UNIFI_HOST=<UNIFI_HOST>' -e 'UNIFI_USERNAME=<your unifi_username>' -e 'UNIFI_PASSWORD=<your unifi_password>' -e 'UNIFI_API_KEY=<your unifi_api_key>' -e 'UNIFI_PORT=443' -e 'UNIFI_VERIFY_SSL=false' -- uvx unifi-protect-mcp==0.1.6
{
"mcpServers": {
"unifi-protect-mcp": {
"command": "uvx",
"args": [
"unifi-protect-mcp==0.1.6"
],
"env": {
"UNIFI_HOST": "<UNIFI_HOST>",
"UNIFI_USERNAME": "<your unifi_username>",
"UNIFI_PASSWORD": "<your unifi_password>",
"UNIFI_API_KEY": "<your unifi_api_key>",
"UNIFI_PORT": "443",
"UNIFI_VERIFY_SSL": "false"
}
}
}
}
Environment variables
UNIFI_HOSTrequired Controller IP/hostnameUNIFI_USERNAMErequired secret Admin usernameUNIFI_PASSWORDrequired secret Admin passwordUNIFI_API_KEYsecret API key (optional, experimental)UNIFI_PORTController HTTPS portUNIFI_VERIFY_SSLSSL certificate verification
Frequently asked questions
What is UniFi Protect MCP?
Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.
How do I install UniFi Protect MCP?
It runs on your machine. In Claude Code: claude mcp add unifi-protect-mcp -e 'UNIFI_HOST=<UNIFI_HOST>' -e 'UNIFI_USERNAME=<your unifi_username>' -e 'UNIFI_PASSWORD=<your unifi_password>' -e 'UNIFI_API_KEY=<your unifi_api_key>' -e 'UNIFI_PORT=443' -e 'UNIFI_VERIFY_SSL=false' -- uvx unifi-protect-mcp==0.1.6. For other clients, paste the JSON configuration from this page into their MCP settings.
Does UniFi Protect MCP need an API key?
Yes. It expects UNIFI_HOST, UNIFI_USERNAME, UNIFI_PASSWORD, UNIFI_API_KEY, which you set in its configuration.
Is UniFi Protect MCP open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains UniFi Protect MCP?
It is published by sirkirby. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.