Skip to content
Gemini CLI

ctxfile for Gemini CLI

dev.ctxfile/ctxfile

Local-first MCP server that snapshots your project's working state into one context object.

client:Gemini CLI transport:stdio runtime:npm

Install ctxfile 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": {
    "ctxfile": {
      "command": "npx",
      "args": [
        "-y",
        "ctxfile"
      ],
      "env": {
        "NOTION_TOKEN": "<NOTION_TOKEN>"
      }
    }
  }
}

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

ctxfile in other clients