Skip to content
Claude Code

pgleash for Claude Code

io.github.mufasil/pgleash

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

client:Claude Code transport:stdio runtime:npm

Install pgleash in Claude Code

run in your project directory

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

claude mcp add pgleash -e PGLEASH_UPSTREAM=<PGLEASH_UPSTREAM> -- npx -y pgleash

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

pgleash in other clients