pgleash runs on your own machine — the client starts it, so there is no endpoint to ping. 532 installs a week from npm. Last commit 30 Nov 2026.
Postgres proxy for AI agents: read-only by default, blocks DROP and unbounded DELETE, caps rows.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add pgleash -e 'PGLEASH_UPSTREAM=<PGLEASH_UPSTREAM>' -- npx -y pgleash mcp
{
"mcpServers": {
"pgleash": {
"command": "npx",
"args": [
"-y",
"pgleash",
"mcp"
],
"env": {
"PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
}
}
}
}
[mcp_servers.pgleash]
command = "npx"
args = ["-y", "pgleash", "mcp"]
env = { PGLEASH_UPSTREAM = "<PGLEASH_UPSTREAM>" }
{
"mcpServers": {
"pgleash": {
"command": "npx",
"args": [
"-y",
"pgleash",
"mcp"
],
"env": {
"PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
}
}
}
}
{
"servers": {
"pgleash": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pgleash",
"mcp"
],
"env": {
"PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
}
}
}
}
Put your own value in place of
<PGLEASH_UPSTREAM> (Connection string of the real database, ideally a least-privilege role).
The author’s registry entry marks it as required.
Today is the operative word: we check pgleash every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
Postgres for AI agents with row locks, masking, approved writes and a signed audit ledger.
Markdown-first Notion for AI agents -- pages, databases, blocks, and comments in one call.
Create and audit read-only database accounts for AI agents: PostgreSQL, MySQL, SQL Server and more.
EU-native PaaS for AI agents — deploy web apps with one sentence, managed Postgres, GDPR by default.
PostgreSQL security for AI agents: CVEs, yanked releases, exploits, and upgrade paths
Safety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.
Production-grade PostgreSQL MCP server — 279 tools for query, tuning & ops, read-only by default.
Postgres for agents: named local/stage/prod targets, READ ONLY reads, opt-in writes, SSH tunnels
Answers built from our own checks of this server.