PlugWiki

sw-postgres MCP Server: Tools, Setup for Claude Code, Cursor & More

CommunityLocal
Getnpmsw-postgres-mcpjpka/sw-postgres-mcp

Not the official PostgreSQL MCP server. This one is built by the community. PostgreSQL makes its own: MCP Toolbox for Databases →

Safe-write Postgres MCP server with preview-before-execute writes and rollback safety.

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install sw-postgres MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the sw-postgres MCP server to Claude Code. Run this command:
    
    claude mcp add sw-postgres -e DATABASE_URL_READONLY=<DATABASE_URL_READONLY> -e DATABASE_URL_WRITER=<DATABASE_URL_WRITER> -- npx -y sw-postgres-mcp
    
    Ask me for DATABASE_URL_READONLY, DATABASE_URL_WRITER and only put the values in that config, nowhere else.
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Built from the package data we hold. Not yet tested by us.

Tools

We don't list sw-postgres MCP's tools here yet. After you connect it, ask your assistant "What can you do with sw-postgres MCP?" to see them.

Information

updated Nov 2, 2026

Publisher
Community
Package
sw-postgres-mcp
Registry
npm
Transport
stdio
Version
0.3.1
License
MIT
Last commit
Sep 4, 2026
Open issues
0
Listed in
Official MCP registry

GitHubnpmOfficial MCP RegistryIssues

Other PostgreSQL MCP servers

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.