mcp postgres for Grok
io.github.dockndevai/mcp-postgres
PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.
client:Grok
transport:stdio
runtime:npm
Install mcp postgres in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"mcp-postgres": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-postgres"
],
"env": {
"POSTGRES_URL": "<POSTGRES_URL>",
"POSTGRES_MODE": "<POSTGRES_MODE>",
"POSTGRES_SCHEMA_ALLOWLIST": "<POSTGRES_SCHEMA_ALLOWLIST>"
}
}
}
}
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