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
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