U

Unifi MCP

by mattoddie · io.github.mattoddie/unifi-mcp

MCP server for Ubiquiti UniFi Network: monitor and manage your network from Claude and other AI assistants. Runs in Docker.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-mattoddie-unifi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "UNIFI_URL=<YOUR_VALUE>",
        "-e",
        "UNIFI_API_KEY=<YOUR_VALUE>",
        "-e",
        "UNIFI_USERNAME=<YOUR_VALUE>",
        "-e",
        "UNIFI_PASSWORD=<YOUR_VALUE>",
        "-e",
        "UNIFI_TLS_FINGERPRINT=<YOUR_VALUE>",
        "-e",
        "UNIFI_VERIFY_SSL=<YOUR_VALUE>",
        "-e",
        "UNIFI_SITE=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_DELETES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_SECRETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_RAW_ALLOWED_PATHS=<YOUR_VALUE>",
        "-e",
        "UNIFI_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/unifi-mcp:0.9.1"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-mattoddie-unifi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "UNIFI_URL=<YOUR_VALUE>",
        "-e",
        "UNIFI_API_KEY=<YOUR_VALUE>",
        "-e",
        "UNIFI_USERNAME=<YOUR_VALUE>",
        "-e",
        "UNIFI_PASSWORD=<YOUR_VALUE>",
        "-e",
        "UNIFI_TLS_FINGERPRINT=<YOUR_VALUE>",
        "-e",
        "UNIFI_VERIFY_SSL=<YOUR_VALUE>",
        "-e",
        "UNIFI_SITE=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_DELETES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_SECRETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_RAW_ALLOWED_PATHS=<YOUR_VALUE>",
        "-e",
        "UNIFI_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/unifi-mcp:0.9.1"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-mattoddie-unifi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "UNIFI_URL=<YOUR_VALUE>",
        "-e",
        "UNIFI_API_KEY=<YOUR_VALUE>",
        "-e",
        "UNIFI_USERNAME=<YOUR_VALUE>",
        "-e",
        "UNIFI_PASSWORD=<YOUR_VALUE>",
        "-e",
        "UNIFI_TLS_FINGERPRINT=<YOUR_VALUE>",
        "-e",
        "UNIFI_VERIFY_SSL=<YOUR_VALUE>",
        "-e",
        "UNIFI_SITE=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_DELETES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_SECRETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_RAW_ALLOWED_PATHS=<YOUR_VALUE>",
        "-e",
        "UNIFI_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/unifi-mcp:0.9.1"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-mattoddie-unifi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "UNIFI_URL=<YOUR_VALUE>",
        "-e",
        "UNIFI_API_KEY=<YOUR_VALUE>",
        "-e",
        "UNIFI_USERNAME=<YOUR_VALUE>",
        "-e",
        "UNIFI_PASSWORD=<YOUR_VALUE>",
        "-e",
        "UNIFI_TLS_FINGERPRINT=<YOUR_VALUE>",
        "-e",
        "UNIFI_VERIFY_SSL=<YOUR_VALUE>",
        "-e",
        "UNIFI_SITE=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_DELETES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_SECRETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_RAW_ALLOWED_PATHS=<YOUR_VALUE>",
        "-e",
        "UNIFI_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/unifi-mcp:0.9.1"
      ]
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-mattoddie-unifi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "UNIFI_URL=<YOUR_VALUE>",
        "-e",
        "UNIFI_API_KEY=<YOUR_VALUE>",
        "-e",
        "UNIFI_USERNAME=<YOUR_VALUE>",
        "-e",
        "UNIFI_PASSWORD=<YOUR_VALUE>",
        "-e",
        "UNIFI_TLS_FINGERPRINT=<YOUR_VALUE>",
        "-e",
        "UNIFI_VERIFY_SSL=<YOUR_VALUE>",
        "-e",
        "UNIFI_SITE=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_DELETES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_SECRETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_RAW_ALLOWED_PATHS=<YOUR_VALUE>",
        "-e",
        "UNIFI_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/unifi-mcp:0.9.1"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-mattoddie-unifi-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "UNIFI_URL=<YOUR_VALUE>",
        "-e",
        "UNIFI_API_KEY=<YOUR_VALUE>",
        "-e",
        "UNIFI_USERNAME=<YOUR_VALUE>",
        "-e",
        "UNIFI_PASSWORD=<YOUR_VALUE>",
        "-e",
        "UNIFI_TLS_FINGERPRINT=<YOUR_VALUE>",
        "-e",
        "UNIFI_VERIFY_SSL=<YOUR_VALUE>",
        "-e",
        "UNIFI_SITE=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_WRITES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_DELETES=<YOUR_VALUE>",
        "-e",
        "UNIFI_ALLOW_SECRETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_TOOLSETS=<YOUR_VALUE>",
        "-e",
        "UNIFI_RAW_ALLOWED_PATHS=<YOUR_VALUE>",
        "-e",
        "UNIFI_AUDIT_LOG=<YOUR_VALUE>",
        "ghcr.io/mattoddie/unifi-mcp:0.9.1"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MCP_TRANSPORT No The image serves HTTP by default; this runs it over stdio.
UNIFI_URL Yes Address of your UniFi console. For a legacy self-hosted Network application, include the port.
UNIFI_API_KEY secret No API key from UniFi Network → Settings → Control Plane → Integrations. Or use a username and password.
UNIFI_USERNAME No A local (not Ubiquiti cloud) account, used instead of an API key. Required for legacy controllers.
UNIFI_PASSWORD secret No The local account's password, used with the username.
UNIFI_TLS_FINGERPRINT No Recommended for an https controller with a self-signed certificate: its SHA-256 fingerprint, to pin it.
UNIFI_VERIFY_SSL No Leave empty when you set a fingerprint. true: publicly trusted certificate. false: skip the check (insecure).
UNIFI_SITE No The site's short name, used when a request doesn't name a site. Default: default
UNIFI_ALLOW_WRITES No Allow changes: restart devices, block clients, edit WiFi, firewall and networks. Off means read-only. Default: false
UNIFI_ALLOW_DELETES No Also allow deleting configuration and forgetting clients. Needs UNIFI_ALLOW_WRITES. Default: false
UNIFI_ALLOW_SECRETS No Allow unredacted passwords and keys (include_secrets) and the WiFi QR tool. Off keeps all output redacted. Default: false
UNIFI_TOOLSETS No 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 No 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 No Set to stderr to log every change the assistant makes or previews as JSON lines. Off when empty.

Similar servers