Skip to main content

UniFi Network

io.github.Graf3x/unifi-mcp

v0.12.0Updated Nov 28, 2026local · Docker

Diagnostics and owner-approved changes for one UniFi Network console, over its local API.

Install

Needs 2 secrets. Replace 3 placeholders with your own values.

Run in your terminal. Replace 3 placeholders.

claude mcp add unifi-mcp -e 'UNIFI_URL=<your-unifi-url>' -e 'UNIFI_API_KEY=<your-unifi-api-key>' -e 'MCP_LAN_ACCESS_TOKEN=<your-mcp-lan-access-token>' -- docker run -i --rm -e UNIFI_URL -e UNIFI_API_KEY -e MCP_LAN_ACCESS_TOKEN ghcr.io/graf3x/unifi-mcp:0.12.0

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

6 settings, 2 required secrets. Snippets use placeholders; keep real values out of shared config.

  • UNIFI_API_KEY
    Env var· required· secret
    An API key from UniFi Network, Settings, Control Plane, Integrations. It is console-wide.
  • MCP_LAN_ACCESS_TOKEN
    Env var· required· secret
    The listener's token, at least 32 characters, e.g. from openssl rand -hex 32.
  • UNIFI_URL
    Env var· required
    The console's address as the container reaches it, e.g. https://192.168.1.1.
  • UNIFI_CERT_SHA256
    Env var· optional
    The console's public key SHA-256: empty at first, then the value the README's Before you start shows how to confirm.
  • MCP_LAN_LISTEN
    Env var· optional
    The token-only listener inside the container. The -p argument decides who reaches it.
  • -p
    Argument· optional
    Publishes the token-only listener on this machine's loopback address only.

Listed in the official MCP Registry since Nov 28, 2026. Mirrored daily; last checked Nov 29, 2026.