Skip to content
Gemini CLI

Polarity for Gemini CLI

io.github.radar989/polarity-mcp

Real-time threat intelligence lookups and IOC parsing from your self-hosted Polarity instance.

client:Gemini CLI transport:stdio runtime:npm

Install Polarity 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": {
    "polarity-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@polarityio/mcp-connector"
      ],
      "env": {
        "POLARITY_SERVER_URL": "<POLARITY_SERVER_URL>",
        "POLARITY_TOKEN": "<POLARITY_TOKEN>",
        "POLARITY_IGNORE_SSL": "<POLARITY_IGNORE_SSL>",
        "POLARITY_TIMEOUT_MS": "<POLARITY_TIMEOUT_MS>"
      }
    }
  }
}

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

Polarity in other clients