Skip to content
Gemini CLI

AI2SQL for Gemini CLI

io.ai2sql/ai2sql

Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server

client:Gemini CLI transport:streamable-http

Install AI2SQL in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "ai2sql": {
      "httpUrl": "https://builder.ai2sql.io/api/chatgpt-mcp"
    }
  }
}

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

AI2SQL in other clients