Loading MCP server directory, please wait...
Safe-write Postgres MCP server with preview-before-execute writes and rollback safety.
npx @getmcp/cli add io.github.jpka/sw-postgres-mcpRequires Node.js 18+. Community-contributed server. Review source before installing.
DATABASE_URL_READONLYPostgres connection string for the read-only role.
DATABASE_URL_WRITERPostgres connection string for the writer role.
Config file: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"io.github.jpka/sw-postgres-mcp": {
"command": "npx",
"args": [
"-y",
"sw-postgres-mcp"
],
"env": {
"DATABASE_URL_READONLY": "",
"DATABASE_URL_WRITER": ""
}
}
}
}