Postgresql Mcp Ddz MCP Server

一个基于模型上下文协议(MCP)的 PostgreSQL 数据库操作服务器,让 AI 助手能够通过标准化接口与 PostgreSQL 数据库交互。

Local serverstdioMIT

What is the Postgresql Mcp Ddz MCP Server?

Postgresql Mcp Ddz is an MCP project maintained in the fanzhenddz/postgresql-mcp-ddz repository. The maintainer describes its purpose as “一个基于模型上下文协议(MCP)的 PostgreSQL 数据库操作服务器,让 AI 助手能够通过标准化接口与 PostgreSQL 数据库交互。”. Read the project documentation for the complete scope.

Installation

The documented npm package is postgresql-mcp-ddz. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Postgresql Mcp Ddz MCP Server

{
  "mcpServers": {
    "postgresql-mcp-ddz": {
      "command": "npx",
      "args": [
        "postgresql-mcp-ddz"
      ],
      "env": {
        "POSTGRES_HOST": "127.0.0.1",
        "POSTGRES_PORT": "5432",
        "POSTGRES_USER": "postgres",
        "POSTGRES_PASSWORD": "YOUR_POSTGRES_PASSWORD",
        "POSTGRES_DB": "your_database"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
POSTGRES_HOSTDeclared in the maintainer’s client configuration.Check documentation
POSTGRES_PORTDeclared in the maintainer’s client configuration.Check documentation
POSTGRES_USERDeclared in the maintainer’s client configuration.Check documentation
POSTGRES_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
POSTGRES_DBDeclared in the maintainer’s client configuration.Check documentation