MCP server

PostgreSQL (hardened, read-only)

Stars:
3
Last push:
2026-10-25
License:
MIT

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

Good fit for

  • One-command install
  • Runs fully local
  • MIT license

Facts

Category
Databases
Pricing
Unknown
Authentication
API key
Transport
stdio, Streamable HTTP
Hosting
Local
Maker
Unknown
Access
Unknown
Language
TypeScript, Rust
Install method
npx, Docker
Operating system
macOS, Windows, Linux
Client
Unknown
License
Permissive
Maintenance
Active

Install

claude mcp add --env 'DATABASE_URL=<YOUR_VALUE>' --transport stdio postgres-mcp-hardened -- npx -y --stdio postgres-mcp-hardened

Env vars and secrets

  • DATABASE_URLEnv varSecret

    Connection string for the role the server connects as. Use a role that cannot write — the server refuses writes twice, but a read-only role is the layer that does not depend on us being correct. `--print-setup-sql` prints the SQL that creates one.

Ratings

Not enough ratings yet

Ratings show once 3 people have rated.

Sign in to rate and comment. Sign in

Comments (0)

Sign in to rate and comment. Sign in

No comments yet.

Alternatives

From the same category

NamePricingAuthenticationHostingStars
JitsuUnknownUnknownRemote5.1k
SupabaseUnknownAPI keyLocal, Remote3k
ArcadeDB MCP ServerOfficialUnknownUnknownLocal1.2k
dbxUnknownUnknownLocal28k
mcpUnknownUnknownRemote2.8k
DBHubUnknownAPI keyLocal3.7k

Score: 62

Popularity
13
Maintenance
100
Trust
73
Completeness
90
Community
50

Formula version 1

Listed in:

Official MCP Registry, awesome-mcp-servers.

Data from the Official MCP Registry.