Skip to content
MCP server

Unifi MCP

MCP server for Ubiquiti UniFi Network and Protect. 63 tools, 16 agent skills.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.8.2
Listing updated
5 days ago

About Unifi MCP

Unifi MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add unifi-mcp --env UNIFI_DEVICES='<UNIFI_DEVICES>' --env UNIFI_PASSWORD='<UNIFI_PASSWORD>' -- uvx mcp-unifi

Add to claude_desktop_config.json

{
  "mcpServers": {
    "unifi-mcp": {
      "command": "uvx",
      "args": [
        "mcp-unifi"
      ],
      "env": {
        "UNIFI_DEVICES": "<UNIFI_DEVICES>",
        "UNIFI_PASSWORD": "<UNIFI_PASSWORD>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "unifi-mcp": {
      "command": "uvx",
      "args": [
        "mcp-unifi"
      ],
      "env": {
        "UNIFI_DEVICES": "<UNIFI_DEVICES>",
        "UNIFI_PASSWORD": "<UNIFI_PASSWORD>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "unifi-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-unifi"
      ],
      "env": {
        "UNIFI_DEVICES": "<UNIFI_DEVICES>",
        "UNIFI_PASSWORD": "<UNIFI_PASSWORD>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "unifi-mcp": {
      "command": "uvx",
      "args": [
        "mcp-unifi"
      ],
      "env": {
        "UNIFI_DEVICES": "<UNIFI_DEVICES>",
        "UNIFI_PASSWORD": "<UNIFI_PASSWORD>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "unifi-mcp": {
      "command": "uvx",
      "args": [
        "mcp-unifi"
      ],
      "env": {
        "UNIFI_DEVICES": "<UNIFI_DEVICES>",
        "UNIFI_PASSWORD": "<UNIFI_PASSWORD>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • UNIFI_DEVICESJSON array of UniFi device configs (name, url, api_key, services, site)Required
  • UNIFI_MODEAuth mode: local (session), local_api_key (Integration API), or cloud
  • UNIFI_USERNAMEController username for session auth (UNIFI_MODE=local)
  • UNIFI_PASSWORDController password for session auth (UNIFI_MODE=local)
  • UNIFI_VERIFY_SSLVerify SSL certificates (false for self-signed)

Pricing

Open source

Unifi MCP FAQ

Is Unifi MCP free?

Yes. Unifi MCP is open source, so you can use and self-host it for free.

How do I add Unifi MCP to Claude Code?

Run this command in your terminal: claude mcp add unifi-mcp --env UNIFI_DEVICES='<UNIFI_DEVICES>' --env UNIFI_PASSWORD='<UNIFI_PASSWORD>' -- uvx mcp-unifi

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers