Skip to content
Grok

pgleash for Grok

io.github.mufasil/pgleash

Postgres proxy for AI agents: read-only by default, blocks DROP and unbounded DELETE, caps rows.

client:Grok transport:stdio runtime:npm

Install pgleash 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": {
    "pgleash": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pgleash"
      ],
      "env": {
        "PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
      }
    }
  }
}

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

pgleash in other clients