PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.
Maintain this server? Claim it
This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add mcp-postgres \ -e POSTGRES_URL=YOUR_POSTGRES_URL \ -- npx -y @dockndevai/[email protected]
Environment
POSTGRES_URL (required): libpq connection string, e.g. postgresql://user:pass@host:5432/db (or use PGHOST/PGUSER/PGPASSWORD/PGDATABASE).POSTGRES_MODE (optional, not in the config above): Access mode: read-only | read-write | admin.POSTGRES_SCHEMA_ALLOWLIST (optional, not in the config above): Comma-separated schemas the agent may touch (empty = all).We don't run packages, so we can't list this server's tools.