Postgres MCP Pro

Query, analyze, and tune PostgreSQL databases through your AI agent with safe access controls. Beyond basic SQL execution, it provides index tuning recommendations, query plan analysis, database healt

SKILL.md

GitHub

Postgres MCP Pro

Query, analyze, and tune PostgreSQL databases through your AI agent with safe access controls. Beyond basic SQL execution, it provides index tuning recommendations, query plan analysis, database health monitoring, and schema intelligence.

Prerequisites

MCP-compatible client, PostgreSQL database (local or remote), Docker or Python 3.12+

Installation

Use the upstream install or setup path that matches your environment:

  • The choice to use Docker or Python is yours.
  • docker pull crystaldba/postgres-mcp
  • pipx install postgres-mcp
  • uv pip install postgres-mcp

Requirements and caveats from upstream:

  • Docker or Python 3.12 or higher.
  • Docker or Python

  • We generally recommend Docker because Python users can encounter more environment-specific issues.

Basic usage or getting-started notes:

Documentation

Source