Skip to main content

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_HOST
    Env var· required
    Database host
  • POSTGRES_USER
    Env var· required
    Database user (a read-only user is recommended)
  • POSTGRES_DATABASE
    Env var· required
    Database name
  • POSTGRES_PASSWORD
    Env var· optional· secret
    Database password (or use POSTGRES_PASSWORD_FILE)

Listed in the official MCP Registry since Oct 17, 2026. Mirrored daily; last checked Nov 26, 2026.