Skip to main content

pgleash

io.github.mufasil/pgleash

v0.1.1Updated Nov 30, 2026stdio · npm

Postgres proxy for AI agents: read-only by default, blocks DROP and unbounded DELETE, caps rows.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add pgleash -e 'PGLEASH_UPSTREAM=<your-pgleash-upstream>' -- npx -y [email protected] mcp

Configuration

1 setting, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • PGLEASH_UPSTREAM
    Env var· required· secret
    Connection string of the real database, ideally a least-privilege role

Listed in the official MCP Registry since Nov 30, 2026. Mirrored daily; last checked Dec 1, 2026.