NestDaddy

UniFi Gateway

io.github.mmoonport-labs/unifi-mcp · v0.2.0

UniFi Network and Protect through search, describe and call, with dry-run-first changes. Unofficial.

Is this your server? Claim it to get a Verified maintainer mark, your own note here, and an email when it goes down or its tools change. Free.

MCP Score How we grade

This server runs on your own machine, so there is no public endpoint to check and grade.

Connect Runs on your machine

Terminal
claude mcp add unifi-mcp -e UNIFI_URL=<UNIFI_URL> -e UNIFI_API_KEY=<UNIFI_API_KEY> -e UNIFI_CERT_SHA256=<UNIFI_CERT_SHA256> -e UNIFI_READ_ONLY=<UNIFI_READ_ONLY> -- npx -y @mmoonport-labs/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mmoonport-labs/[email protected]"
      ],
      "env": {
        "UNIFI_URL": "<UNIFI_URL>",
        "UNIFI_API_KEY": "<UNIFI_API_KEY>",
        "UNIFI_CERT_SHA256": "<UNIFI_CERT_SHA256>",
        "UNIFI_READ_ONLY": "<UNIFI_READ_ONLY>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "unifi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mmoonport-labs/[email protected]"
      ],
      "env": {
        "UNIFI_URL": "<UNIFI_URL>",
        "UNIFI_API_KEY": "<UNIFI_API_KEY>",
        "UNIFI_CERT_SHA256": "<UNIFI_CERT_SHA256>",
        "UNIFI_READ_ONLY": "<UNIFI_READ_ONLY>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "unifi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mmoonport-labs/[email protected]"
      ],
      "env": {
        "UNIFI_URL": "<UNIFI_URL>",
        "UNIFI_API_KEY": "<UNIFI_API_KEY>",
        "UNIFI_CERT_SHA256": "<UNIFI_CERT_SHA256>",
        "UNIFI_READ_ONLY": "<UNIFI_READ_ONLY>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
UNIFI_URL
Optional
Gateway address, e.g. https://192.168.1.1. Not needed after running `unifi-mcp setup` once.
UNIFI_API_KEY
Optional, secret
UniFi API key (Settings > Control Plane > Integrations). Not needed after `unifi-mcp setup`.
UNIFI_CERT_SHA256
Optional
SHA-256 fingerprint of the gateway's certificate, to pin it. `unifi-mcp setup` sets this for you.
UNIFI_READ_ONLY
Optional
Set to 1 to refuse every change to the gateway.

Details

Package@mmoonport-labs/[email protected] (NPM, stdio)
First published20 Nov 2026
Last updated20 Nov 2026
Registry nameio.github.mmoonport-labs/unifi-mcp

More search and web servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.