sw-postgres-mcp for Grok
io.github.jpka/sw-postgres-mcp
Safe-write Postgres MCP server with preview-before-execute writes and rollback safety.
client:Grok
transport:stdio
runtime:npm
Install sw-postgres-mcp in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"sw-postgres-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sw-postgres-mcp"
],
"env": {
"DATABASE_URL_READONLY": "<DATABASE_URL_READONLY>",
"DATABASE_URL_WRITER": "<DATABASE_URL_WRITER>"
}
}
}
}
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