ClaudeMap

Postgres MCP Pro

Modern Postgres MCP with schema introspection, index tuning, and EXPLAIN plan analysis.

MCP Serversdatabasepostgresperformanceschema

A more featureful alternative to the archived reference implementation: schema introspection, index recommendations, EXPLAIN plan analysis, and health checks against any PostgreSQL 13+ instance.

What it does

  • Way beyond query passthrough: index tuning, EXPLAIN plan analysis, health checks (buffer cache, vacuum, replication lag)
  • --access-mode=restricted for read-only + resource limits; unrestricted for dev
  • Docker (crystaldba/postgres-mcp), pipx, uvx or uv — all driven by a DATABASE_URI env var
  • SSE transport option lets several clients share one server

When to use it

When 'run a SELECT' isn't enough — ask Claude to actually tune the database: find missing indexes, validate query plans, flag unhealthy tables. The strongest Postgres MCP for real DBA work.

Getting started

{
  "command": "uvx",
  "args": ["postgres-mcp", "--access-mode=restricted"],
  "env": { "DATABASE_URI": "postgresql://user:pass@localhost:5432/dbname" }
}

Docker variant remaps localhost → host.docker.internal automatically on macOS/Windows.

Things to know

Index tuning and full analysis need pg_stat_statements + hypopg extensions installed on the database — not every hosted Postgres allows that (RDS does, many serverless offerings don't). unrestricted mode is real write access.

Repository

crystaldba/postgres-mcp

Charted

Related on the map

  • Blitz Strike

    MCP Server

    A penetration-testing methodology delivered as one MCP server: BLITZ maps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE live-verifies every finding before it is reported.

    • mcp-server
    • security
    • pentest
    • methodology
  • Ripwire

    MCP Server

    Red Hat's "ripgrep for AI context" — a C++23 zero-dependency CLI that also speaks MCP.

    • mcp
    • code-context
    • cli
    • red-hat
  • Deja Vu

    MCP Server

    One shared session memory for 25+ coding agents — Claude Code, Codex, and Cursor finally remember the same project.

    • mcp
    • memory
    • cross-agent
    • context