UniFi Protect MCP

Official registry Other

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).

PYPI package unifi-protect-mcp
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
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "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_HOST required Controller IP/hostname
  • UNIFI_USERNAME required secret Admin username
  • UNIFI_PASSWORD required secret Admin password
  • UNIFI_API_KEY secret API key (optional, experimental)
  • UNIFI_PORT Controller HTTPS port
  • UNIFI_VERIFY_SSL SSL 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.