postgres-mcp

Level ALocal

Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

Overview

Postgres MCP Pro is an open-source MCP server that helps users and AI agents manage Postgres throughout development. It offers database health analysis (index health, connection utilization, buffer cache, vacuum, replication lag), index tuning, EXPLAIN plan review with hypothetical index simulation, schema-aware SQL generation, and configurable read/write access control with safe SQL execution, including a read-only mode for development and production use.

⭐ 3.5kDatabasePythonRepo ↗Updated 2026-08-17

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "crystaldba-postgres-mcp": {
      "command": "uvx",
      "args": [
        "postgres-mcp",
        "--access-mode=unrestricted"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/crystaldba/postgres-mcp

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "crystaldba-postgres-mcp": {
      "command": "uvx",
      "args": [
        "postgres-mcp",
        "--access-mode=unrestricted"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers