pgwarden for Grok
io.github.b0yko/pgwarden
Give AI assistants access to Postgres with per-user permissions and human approval for writes.
client:Grok
transport:stdio
runtime:oci
Install pgwarden in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"pgwarden": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/b0yko/pgwarden:0.1.1"
],
"env": {
"PGWARDEN_CONFIG": "<PGWARDEN_CONFIG>",
"PGWARDEN_TARGET_DSN": "<PGWARDEN_TARGET_DSN>",
"PGWARDEN_STATE_DSN": "<PGWARDEN_STATE_DSN>",
"PGWARDEN_ROLE_SECRET_FILE": "<PGWARDEN_ROLE_SECRET_FILE>",
"PGWARDEN_SIGNING_KEY_FILE": "<PGWARDEN_SIGNING_KEY_FILE>",
"PGWARDEN_SESSION_SECRET_FILE": "<PGWARDEN_SESSION_SECRET_FILE>",
"PGWARDEN_OIDC_CLIENT_SECRET_FILE": "<PGWARDEN_OIDC_CLIENT_SECRET_FILE>"
}
}
}
}
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