Skip to content
Grok

db gateway for Grok

io.github.sijunkim/db-gateway

145+ tools across 8 databases: MySQL, PostgreSQL, Redshift, MongoDB, Redis, Kafka, and more

client:Grok transport:stdio runtime:npm

Install db gateway in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "db-gateway": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "db-gateway"
      ],
      "env": {
        "DBS": "<DBS>",
        "READ_ONLY": "<READ_ONLY>",
        "MYSQL": "<MYSQL>",
        "POSTGRESQL": "<POSTGRESQL>",
        "REDSHIFT": "<REDSHIFT>",
        "MONGODB": "<MONGODB>",
        "REDIS": "<REDIS>",
        "ELASTICSEARCH": "<ELASTICSEARCH>",
        "KAFKA": "<KAFKA>",
        "DYNAMODB_REGION": "<DYNAMODB_REGION>",
        "DYNAMODB_ACCESS_KEY_ID": "<DYNAMODB_ACCESS_KEY_ID>",
        "DYNAMODB_SECRET_ACCESS_KEY": "<DYNAMODB_SECRET_ACCESS_KEY>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

db gateway in other clients