Skip to content
Grok

SQL for Grok

io.github.abhishekkumar2021/sql

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

client:Grok transport:stdio runtime:npm

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

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

SQL in other clients