Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 12, 2026·2 min de lecture

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.

MCP Hub
MCP Hub · Community
Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Needs Confirmation · 62/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Mcp
Installation
Single
Confiance
Confiance : Established
Point d'entrée
postgres-mcp
Commande CLI universelle
npx tokrepo install 216cb667-d5ae-5400-99d5-63dd528e1690
Introduction

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.

🙏

Source et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires