Postgres MCP Pro (restricted)
Claude Desktop
{
"mcpServers": {
"postgres": {
"command": "uvx",
"args": [
"postgres-mcp",
"--access-mode=restricted"
],
"env": {
"DATABASE_URI": "postgresql://username:password@localhost:5432/dbname"
}
}
}
}Restricted mode enforces read-only transactions; use a database role with read-only permissions. Not runtime-tested.