Esta página se muestra en inglés. Una traducción al español está en curso.
MCP ConfigsMay 12, 2026·2 min de lectura

Postgres MCP Pro — Index Tuning + Safe SQL Tools

Postgres MCP Pro is an MCP server for PostgreSQL that runs safe SQL, explains plans, and recommends indexes so agents can tune databases faster.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Needs Confirmation · 62/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Mcp
Instalación
Single
Confianza
Confianza: Established
Entrada
postgres-mcp
Comando CLI universal
npx tokrepo install 216cb667-d5ae-5400-99d5-63dd528e1690
Introducción

Postgres MCP Pro is an MCP server for PostgreSQL that runs safe SQL, explains plans, and recommends indexes so agents can tune databases faster.

  • Best for: teams that want an AI-safe Postgres copilot for schema exploration, plan analysis, and index tuning
  • Works with: PostgreSQL, stdio/SSE MCP clients (Claude Desktop, Cursor), Docker or Python 3.12+
  • Setup time: 10-25 minutes

Practical Notes

  • Quant: GitHub stars and forks indicate broad usage; treat this as a production-grade starting point for DB copilots.
  • Quant: start in read-only, then add write access only after you can replay the same query-analysis prompt 3 times with identical outputs.

Rollout pattern

  • Point it at a staging replica first, and validate schema + EXPLAIN flows end-to-end before touching production.
  • Adopt a playbook: (1) schema snapshot, (2) EXPLAIN, (3) index hypothesis, (4) verify with a before/after benchmark.
  • Keep a human approval rule for any action that changes indexes or constraints.

Watchouts

Avoid giving unrestricted write access on day 1. Keep credentials scoped, start with read-only, and review any index recommendations with real workload evidence.

FAQ

Q: Does it require Docker? A: No. The README shows Docker and Python installs (pipx/uv). Use Docker when you want fewer environment surprises.

Q: How do I keep it safe? A: Prefer read-only and a least-privilege DB user. Add writes only with an explicit approval gate.

Q: What is a good first task? A: Ask the agent to list schemas/tables, then run an EXPLAIN for one slow query and propose one index hypothesis.

🙏

Fuente y agradecimientos

Source: https://github.com/crystaldba/postgres-mcp > License: MIT > GitHub stars: 2,730 · forks: 299

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados