Database MCP Postgres
io.github.arifulislamat/database-mcp-postgres
v0.5.0Updated Oct 17, 2026stdio · Cargostdio · npmstdio · PyPI
MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.
Install
Replace 3 placeholders with your own values.
Run in your terminal. Replace 3 placeholders.
claude mcp add database-mcp-postgres -e 'POSTGRES_HOST=<your-postgres-host>' -e 'POSTGRES_USER=<your-postgres-user>' -e 'POSTGRES_DATABASE=<your-postgres-database>' -- npx -y @database-mcp/[email protected]Configuration
4 settings.
POSTGRES_HOSTEnv var· requiredDatabase hostPOSTGRES_USEREnv var· requiredDatabase user (a read-only user is recommended)POSTGRES_DATABASEEnv var· requiredDatabase namePOSTGRES_PASSWORDEnv var· optional· secretDatabase password (or use POSTGRES_PASSWORD_FILE)
Links
Listed in the official MCP Registry since Oct 17, 2026. Mirrored daily; last checked Nov 26, 2026.