# Postgres MCP Pro

> Query, analyze, and tune PostgreSQL databases through your AI agent with safe access controls, including index tuning recommendations, query plan analysis, health monitoring, and schema intelligence.

- Skill: `agentskillexchange/postgres-mcp-pro` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/postgres-mcp-pro`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/postgres-mcp-pro/raw
- Safety review: CAUTION (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics, SQL & Databases
- Tags: Database, Database Health, Index Tuning, Mcp, Postgresql, Query Analysis, Sql
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/agentskillexchange/postgres-mcp-pro

---


# 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:
- <a href="#quick-start">Quick Start</a> •
- Before getting started, ensure you have:
- Access credentials for your database.

- Source: https://github.com/crystaldba/postgres-mcp
- Extracted from upstream docs: https://raw.githubusercontent.com/crystaldba/postgres-mcp/HEAD/README.md

## Documentation

- https://github.com/crystaldba/postgres-mcp#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/postgres-mcp-pro/)

