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
{
"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