Skip to content
Verified official

PostgreSQL (hardened, read-only) MCP

v0.1.10

io.github.eszetael/postgres-mcp-hardened

Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.

transport:stdio runtime:npm

Target client

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add postgres-mcp-hardened -e DATABASE_URL=<DATABASE_URL> -e MCP_STATEMENT_TIMEOUT=<MCP_STATEMENT_TIMEOUT> -e MCP_ALLOW_TABLES=<MCP_ALLOW_TABLES> -e MCP_AUDIT_LOG=<MCP_AUDIT_LOG> -- npx -y postgres-mcp-hardened

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

This listing does not declare its tools. Connect the server and your client will discover them on the handshake.