Skip to content
Gemini CLI

SQL for Gemini CLI

io.github.abhishekkumar2021/sql

Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.

client:Gemini CLI transport:stdio runtime:npm

Install SQL 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": {
    "sql": {
      "command": "npx",
      "args": [
        "-y",
        "@abhishekmcp/sql"
      ],
      "env": {
        "DB_CONN_default": "<DB_CONN_default>",
        "DB_WRITABLE": "<DB_WRITABLE>"
      }
    }
  }
}

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

SQL in other clients