pgleash for Cursor
io.github.mufasil/pgleash
Postgres proxy for AI agents: read-only by default, blocks DROP and unbounded DELETE, caps rows.
client:Cursor
transport:stdio
runtime:npm
Install pgleash in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"pgleash": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pgleash"
],
"env": {
"PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs