db-conn-mcp
db-conn-mcp is a self-hosted MCP server that lets AI agents securely query databases. It currently supports only PostgreSQL, implementing security controls through native read-only transactions and a static JSON configuration file, avoiding custom authentication servers or fragile SQL parsing. It provides layered write safety mechanisms (schema gating, dry-run, yolo trust, user consent) and prevents secret leakage and prompt injection. Installation requires Python 3.12+ and can be done via pipx, uv, or an npm wrapper. It offers an interactive wizard and a local dashboard that can automatically inject the server into the configurations of 9 popular AI clients.