Skip to content
Gemini CLI

cortex for Gemini CLI

io.github.vblackjack/cortex

Local multi-client RAG server over the Model Context Protocol.

client:Gemini CLI transport:stdio runtime:pypi

Install cortex 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": {
    "cortex": {
      "command": "uvx",
      "args": [
        "cortex-local-rag"
      ],
      "env": {
        "CORTEX_KB_PATH": "<CORTEX_KB_PATH>"
      }
    }
  }
}

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

cortex in other clients