Skip to content
Gemini CLI

unifi for Gemini CLI

io.github.us-all/unifi

UniFi semantic-analysis MCP — fleet health, anomaly detection, cross-site analytics

client:Gemini CLI transport:stdio runtime:npm

Install unifi in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "unifi": {
      "command": "npx",
      "args": [
        "-y",
        "@us-all/unifi-mcp"
      ],
      "env": {
        "UNIFI_API_KEY": "<UNIFI_API_KEY>",
        "UNIFI_API_URL": "<UNIFI_API_URL>",
        "UNIFI_API_KEY_OWNER": "<UNIFI_API_KEY_OWNER>",
        "UNIFI_TOOLS": "<UNIFI_TOOLS>",
        "UNIFI_DISABLE": "<UNIFI_DISABLE>",
        "UNIFI_LOCAL_URL": "<UNIFI_LOCAL_URL>",
        "UNIFI_LOCAL_USER": "<UNIFI_LOCAL_USER>",
        "UNIFI_LOCAL_PASS": "<UNIFI_LOCAL_PASS>",
        "UNIFI_LOCAL_SITE": "<UNIFI_LOCAL_SITE>",
        "UNIFI_LOCAL_INSECURE": "<UNIFI_LOCAL_INSECURE>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

unifi in other clients