postgres-mcp-server MCP Server

A Model Context Protocol (MCP) server that provides secure database access to PostgreSQL through Kysely ORM. This server enables Claude Desktop to interact with PostgreSQL databases using natural…

Local serverstdioISC

What is the postgres-mcp-server MCP Server?

postgres-mcp-server is an MCP project maintained in the abiswas97/postgres-mcp-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that provides secure database access to PostgreSQL through Kysely ORM. This server enables Claude Desktop to interact with PostgreSQL…”. Read the project documentation for the complete scope.

Installation

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

Configuration values

The example declares DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME, DB_SSL. 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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
PaginationQuery tool supports up to 500 rows per page with automatic LIMIT/OFFSET handling
SecurityParameterized queries prevent SQL injection, READ_ONLY mode by default

How to install the postgres-mcp-server MCP Server

{
  "mcpServers": {
    "postgres-mcp-server": {
      "command": "npx",
      "args": [
        "postgres-mcp-server"
      ],
      "env": {
        "DB_HOST": "127.0.0.1",
        "DB_PORT": "5432",
        "DB_USER": "postgres",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_NAME": "your_database_name",
        "DB_SSL": "true"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
DB_HOSTDeclared in the maintainer’s client configuration.Check documentation
DB_PORTDeclared in the maintainer’s client configuration.Check documentation
DB_USERDeclared in the maintainer’s client configuration.Check documentation
DB_PASSWORDDeclared in the maintainer’s client configuration.Yes
DB_NAMEDeclared in the maintainer’s client configuration.Check documentation
DB_SSLDeclared in the maintainer’s client configuration.Check documentation