Skip to main content

UniFi

io.github.mattoddie/unifi-mcp

v0.9.1Updated Nov 17, 2026stdio · MCPBstdio · Docker

Manage a Ubiquiti UniFi network: devices, clients, WiFi, firewall and VPN. Read-only by default.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add unifi-mcp -e 'UNIFI_URL=<your-unifi-url>' -e UNIFI_SITE=default -e UNIFI_ALLOW_WRITES=false -e UNIFI_ALLOW_DELETES=false -e UNIFI_ALLOW_SECRETS=false -- docker run -i --rm -e UNIFI_URL -e UNIFI_SITE -e UNIFI_ALLOW_WRITES -e UNIFI_ALLOW_DELETES -e UNIFI_ALLOW_SECRETS ghcr.io/mattoddie/unifi-mcp:0.9.1

Configuration

14 settings.

  • UNIFI_URL
    Env var· required
    Address of your UniFi console. For a legacy self-hosted Network application, include the port.
  • UNIFI_API_KEY
    Env var· optional· secret
    API key from UniFi Network → Settings → Control Plane → Integrations. Or use a username and password.
  • UNIFI_PASSWORD
    Env var· optional· secret
    The local account's password, used with the username.
  • MCP_TRANSPORT
    Env var· optional
    The image serves HTTP by default; this runs it over stdio.
  • UNIFI_USERNAME
    Env var· optional
    A local (not Ubiquiti cloud) account, used instead of an API key. Required for legacy controllers.
  • UNIFI_TLS_FINGERPRINT
    Env var· optional
    Recommended for an https controller with a self-signed certificate: its SHA-256 fingerprint, to pin it.
Show 8 more
  • UNIFI_VERIFY_SSL
    Env var· optional
    Leave empty when you set a fingerprint. true: publicly trusted certificate. false: skip the check (insecure).
  • UNIFI_SITE
    Env var· optional
    The site's short name, used when a request doesn't name a site.Default: default
  • UNIFI_ALLOW_WRITES
    Env var· optional
    Allow changes: restart devices, block clients, edit WiFi, firewall and networks. Off means read-only.Default: false
  • UNIFI_ALLOW_DELETES
    Env var· optional
    Also allow deleting configuration and forgetting clients. Needs UNIFI_ALLOW_WRITES.Default: false
  • UNIFI_ALLOW_SECRETS
    Env var· optional
    Allow unredacted passwords and keys (include_secrets) and the WiFi QR tool. Off keeps all output redacted.Default: false
  • UNIFI_TOOLSETS
    Env var· optional
    Optional comma-separated list to expose fewer tools, e.g. overview,devices,clients. Empty means all except raw, which has to be listed by name.
  • UNIFI_RAW_ALLOWED_PATHS
    Env var· optional
    Optional comma-separated API path prefixes, e.g. /api/s/default/stat, that limit the raw API tool (toolset raw) to those paths. Empty allows any path.
  • UNIFI_AUDIT_LOG
    Env var· optional
    Set to stderr to log every change the assistant makes or previews as JSON lines. Off when empty.

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