Skip to content
Claude Desktop

Postgres MCP for Claude Desktop

io.github.edelciomolina/postgres-mcp

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

client:Claude Desktop transport:stdio runtime:npm

Install Postgres MCP in Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "postgres-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@edelciomolina/postgres-mcp"
      ],
      "env": {
        "MCP_KEY_HOST": "<MCP_KEY_HOST>",
        "MCP_KEY_PORT": "<MCP_KEY_PORT>",
        "MCP_KEY_NAME": "<MCP_KEY_NAME>",
        "MCP_KEY_USER": "<MCP_KEY_USER>",
        "MCP_KEY_PASS": "<MCP_KEY_PASS>",
        "MCP_KEY_SSLMODE": "<MCP_KEY_SSLMODE>"
      }
    }
  }
}

Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs

Postgres MCP in other clients