MCP Hub › Databases & Data › Postgres MCP

Postgres MCP MCP server

by edelciomolina · io.github.edelciomolina/postgres-mcp

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

🗄 Databases & Datanpmv1.7.0
Open in MCP HubGitHub repository ↗

How to install Postgres MCP

npm

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

Or add it to your MCP config (Claude Desktop, Cursor, VS Code):

{
  "mcpServers": {
    "postgres-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@edelciomolina/[email protected]"
      ]
    }
  }
}

Environment variables:
MCP_KEY_HOST – Name of the .env variable that holds the database host
MCP_KEY_PORT – Name of the .env variable that holds the database port
MCP_KEY_NAME – Name of the .env variable that holds the database name
MCP_KEY_USER – Name of the .env variable that holds the database user
MCP_KEY_PASS – Name of the .env variable that holds the database password
MCP_KEY_SSLMODE – Name of the .env variable that holds the SSL mode (e.g. require)

Replace placeholders in <angle brackets> with your own values. Review what a server can access before you enable it.

Details

Version
1.7.0
Published
2026-06-11
Updated
2026-06-11
Namespace
io.github.edelciomolina
Source
edelciomolina/postgres-mcp

Similar databases & data servers