# Postgres MCP Pro: ajuste del índice HypoPG, planes EXPLAIN y auditorías de salud (`postgres-mcp-pro`)

> Servidor de producción PostgreSQL MCP que se ejecuta a través de uvx con modo de solo lectura restringido, asesor de índices de carga de trabajo, índices virtuales HypoPG y análisis pg_stat_statements.

- **Canonical URL:** https://syndipath.com/es/mcp/postgres-mcp-pro
- **Runtime:** `pypi` | **Transport:** STDIO | **License:** MIT | **Package:** `postgres-mcp`
- **Upvotes:** 913 | **GitHub Stars:** 7420 | **Weekly Installs:** 54800
- **Security Note:** HTTP-200 verificado en PyPI (postgres-mcp); ejecutar dentro de un entorno virtual efímero Astral uvx aislado.

## Quick CLI Setup
```bash
# Run isolated Python tool via Astral uvx
uvx postgres-mcp --access-mode=restricted

# Alternative: run via pipx
pipx run postgres-mcp --access-mode=restricted

# Add to Claude Code CLI
claude mcp add -e DATABASE_URI=${DATABASE_URI} postgres-mcp-pro -- uvx postgres-mcp --access-mode=restricted
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "postgres-mcp-pro": {
      "command": "uvx",
      "args": [
        "postgres-mcp",
        "--access-mode=restricted"
      ],
      "env": {
        "DATABASE_URI": "${DATABASE_URI}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `postgres_mcp_pro_query(sql_or_filter: string, limit?: number)`: Production PostgreSQL MCP server running via uvx with restricted read-only mode, workload index advisor, HypoPG virtual indexes, and pg.
- `postgres_mcp_pro_inspect_schema(namespace?: string)`: Enumerates tables, collections, column types, and active index definitions.
