Postgres MCP for Grok
io.github.edelciomolina/postgres-mcp
PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
client:Grok
transport:stdio
runtime:npm
Install Postgres MCP in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"postgres-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
],
"env": {
"MCP_KEY_HOST": "<MCP_KEY_HOST>",
"MCP_KEY_PORT": "<MCP_KEY_PORT>",
"MCP_KEY_NAME": "<MCP_KEY_NAME>",
"MCP_KEY_USER": "<MCP_KEY_USER>",
"MCP_KEY_PASS": "<MCP_KEY_PASS>",
"MCP_KEY_SSLMODE": "<MCP_KEY_SSLMODE>"
}
}
}
}
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