← Back to browse

Postgres MCP

Indexed by io.github.edelciomolina

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsMCP_KEY_HOST MCP_KEY_PORT MCP_KEY_NAME MCP_KEY_USER MCP_KEY_PASS MCP_KEY_SSLMODE
Claude Code
claude mcp add --env MCP_KEY_HOST= --env MCP_KEY_PORT= --env MCP_KEY_NAME= --env MCP_KEY_USER= --env MCP_KEY_PASS= --env MCP_KEY_SSLMODE= postgres-mcp -- npx @edelciomolina/postgres-mcp
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"postgres-mcp","command":"npx","args":["@edelciomolina/postgres-mcp"],"env":{"MCP_KEY_HOST":"","MCP_KEY_PORT":"","MCP_KEY_NAME":"","MCP_KEY_USER":"","MCP_KEY_PASS":"","MCP_KEY_SSLMODE":""}}'
JSON
{
  "mcpServers": {
    "postgres-mcp": {
      "command": "npx",
      "args": [
        "@edelciomolina/postgres-mcp"
      ],
      "env": {
        "MCP_KEY_HOST": "",
        "MCP_KEY_PORT": "",
        "MCP_KEY_NAME": "",
        "MCP_KEY_USER": "",
        "MCP_KEY_PASS": "",
        "MCP_KEY_SSLMODE": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.