PostgreSQL MCP Server

A Model Context Protocol (MCP) server that provides direct PostgreSQL database query execution capabilities. This server enables custom SQL query execution against PostgreSQL databases with support for parameterized…

Local serverstdioMIT

What is the PostgreSQL MCP Server?

PostgreSQL MCP Server source profile. From the maintainer documentation: “A Model Context Protocol (MCP) server that provides direct PostgreSQL database query execution capabilities. This server enables custom SQL query execution against PostgreSQL databases with support for parameterized queries and configurable timeouts. This project is designed specifically for use with the Cursor IDE.”

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares POSTGRES_CONNECTION_STRING, POSTGRES_SSL_CERT_PATH. 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 Server

{
  "mcpServers": {
    "postgresql-mcp": {
      "command": "node",
      "args": [
        "/Users/1Levick3/Desktop/postgresql-mcp-server/build/index.js"
      ],
      "disabled": false,
      "alwaysAllow": [],
      "env": {
        "POSTGRES_CONNECTION_STRING": "postgresUrl",
        "POSTGRES_SSL_CERT_PATH": "/Users/1levick3/Desktop/root.crt"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
POSTGRES_CONNECTION_STRINGDeclared in the maintainer’s client configuration.Check documentation
POSTGRES_SSL_CERT_PATHDeclared in the maintainer’s client configuration.Check documentation