{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"A Model Context Protocol server that connects AI agents to PostgreSQL databases for analysis, tuning, and safe query execution with health checks and index optimization.","skillfed_tags":["mcp-server","ai-agent-integration","database-analysis"],"use_cases":["Debugging slow ORM queries by asking an AI agent to review EXPLAIN plans and suggest indexes without manual analysis.","Exploring hypothetical index scenarios to find the best solution for a workload before committing schema changes.","Running health checks on production databases (in restricted mode) to identify connection leaks, vacuum issues, or replication lag.","Generating context-aware SQL from natural language prompts based on detailed schema understanding.","Automating routine database maintenance tasks through AI agents while enforcing read-only constraints in production."],"what_it_does":"Postgres MCP is a Model Context Protocol server that exposes PostgreSQL database operations to AI agents and assistants. It acts as a bridge between AI tools (like Claude, Cursor, or Windsurf) and your database, enabling agents to analyze schemas, review query performance, explore index tuning opportunities, and execute SQL safely. The package wraps psycopg and pglast to provide schema-aware SQL generation, EXPLAIN plan analysis, and database health diagnostics including index health, connection utilization, buffer cache, and replication lag.\n\nIt runs as a standalone server via Docker or Python (3.12+) and supports both stdio and SSE transports for flexible deployment. Access control is configurable: unrestricted mode for development allows full read/write access, while restricted mode limits operations to read-only transactions and resource constraints suitable for production. The package depends on attrs, humanize, instructor, mcp, pglast, psycopg-pool, and psycopg.","worth_installing":"Yes, if you are actively using an MCP-compatible AI assistant (Claude, Cursor, Windsurf) and want to give it safe, structured access to PostgreSQL for tuning and analysis. The low install friction and permissive license are favorable. However, verify current maintenance status before relying on it in production\u2014the package is aging with no recent commit history visible, and support clarity is needed."},"id":"postgres-mcp","links":{"html":"https://skillfed.io/packages/postgres-mcp","md":"https://skillfed.io/packages/postgres-mcp.md","pypi":"https://pypi.org/project/postgres-mcp/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-05-16","license_spdx":"MIT","license_treatment":"permissive","name":"postgres-mcp","python_support":"supports_current","summary":"PostgreSQL Tuning and Analysis Tool"},"popularity":{"monthly_downloads":202443,"position":9648,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
