Skip to main content

Postgres MCP

io.github.edelciomolina/postgres-mcp

v1.7.0Updated Jun 11, 2026stdio · npm

PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add postgres-mcp -- npx -y @edelciomolina/[email protected]

Configuration

6 settings.

  • MCP_KEY_HOST
    Env var· optional
    Name of the .env variable that holds the database host
  • MCP_KEY_PORT
    Env var· optional
    Name of the .env variable that holds the database port
  • MCP_KEY_NAME
    Env var· optional
    Name of the .env variable that holds the database name
  • MCP_KEY_USER
    Env var· optional
    Name of the .env variable that holds the database user
  • MCP_KEY_PASS
    Env var· optional
    Name of the .env variable that holds the database password
  • MCP_KEY_SSLMODE
    Env var· optional
    Name of the .env variable that holds the SSL mode (e.g. require)

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