Skip to content
skillsaggregatorskillsaggregator
Vetted-communitystdio● online
Postgres Safe SQL MCP creator logo

Postgres Safe SQL MCP

by Crystal DBA (community) · Database

Source

Read-only Postgres MCP with query allowlisting and row-limit guards. Safe for production.

Works with:Claude CodeCursorWindsurfOpenCode
sqlreadallowlist

Install

Run this command in your terminal:

claude mcp add --transport stdio mcp-postgres-safe -- uvx postgres-mcp --access-mode=restricted

Before running, set: DATABASE_URI

Authentication

API key

Required environment variables:

  • DATABASE_URI

See the setup guide for step-by-step instructions on obtaining these credentials.

Read-only guard rails make this safe for production DB access. Popular community pick.

Skills that use this MCP