Skip to content
Gemini CLI

Bytebase for Gemini CLI

io.github.bytebase/bytebase-mcp

Query, inspect, and change databases through Bytebase's governed workflow with audit logging.

client:Gemini CLI transport:stdio runtime:npm

Install Bytebase 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": {
    "bytebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/bytebase-mcp"
      ],
      "env": {
        "BYTEBASE_URL": "<BYTEBASE_URL>",
        "BYTEBASE_MCP_HOME": "<BYTEBASE_MCP_HOME>",
        "BYTEBASE_MCP_CALLBACK_PORT": "<BYTEBASE_MCP_CALLBACK_PORT>",
        "BYTEBASE_MCP_NO_BROWSER": "<BYTEBASE_MCP_NO_BROWSER>"
      }
    }
  }
}

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

Bytebase in other clients