PluginBench
MCP Server

UniFi Protect MCP MCP Server

io.github.sirkirby/unifi-protect-mcp

What is the UniFi Protect MCP MCP server?

Manage UniFi Protect cameras, events, recordings, and smart detections via MCP.

How to install UniFi Protect MCP

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • 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

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "unifi-protect-mcp": {
      "command": "uvx",
      "args": [
        "unifi-protect-mcp"
      ],
      "env": {
        "UNIFI_HOST": "<YOUR_UNIFI_HOST>",
        "UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
        "UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_PORT": "<YOUR_UNIFI_PORT>",
        "UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "unifi-protect-mcp": {
      "command": "uvx",
      "args": [
        "unifi-protect-mcp"
      ],
      "env": {
        "UNIFI_HOST": "<YOUR_UNIFI_HOST>",
        "UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
        "UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_PORT": "<YOUR_UNIFI_PORT>",
        "UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "unifi-protect-mcp": {
      "command": "uvx",
      "args": [
        "unifi-protect-mcp"
      ],
      "env": {
        "UNIFI_HOST": "<YOUR_UNIFI_HOST>",
        "UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
        "UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_PORT": "<YOUR_UNIFI_PORT>",
        "UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "unifi-protect-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "unifi-protect-mcp"
      ],
      "env": {
        "UNIFI_HOST": "<YOUR_UNIFI_HOST>",
        "UNIFI_USERNAME": "<YOUR_UNIFI_USERNAME>",
        "UNIFI_PASSWORD": "<YOUR_UNIFI_PASSWORD>",
        "UNIFI_API_KEY": "<YOUR_UNIFI_API_KEY>",
        "UNIFI_PORT": "<YOUR_UNIFI_PORT>",
        "UNIFI_VERIFY_SSL": "<YOUR_UNIFI_VERIFY_SSL>"
      }
    }
  }
}
Claude Code
claude mcp add unifi-protect-mcp --env UNIFI_HOST=<YOUR_UNIFI_HOST> --env UNIFI_USERNAME=<YOUR_UNIFI_USERNAME> --env UNIFI_PASSWORD=<YOUR_UNIFI_PASSWORD> --env UNIFI_API_KEY=<YOUR_UNIFI_API_KEY> --env UNIFI_PORT=<YOUR_UNIFI_PORT> --env UNIFI_VERIFY_SSL=<YOUR_UNIFI_VERIFY_SSL> -- uvx unifi-protect-mcp

Related MCP servers

Manage UniFi Access doors, credentials, policies, visitors, and events via MCP.

View repository →

Manage UniFi Network devices, clients, firewall, VLANs, VPNs, and more via MCP.

View repository →