For AI agents — MCPBundles Directory API
For MCP client apps (human connect):
MCP connect URL: https://mcp.mcpbundles.com/bundle/postgres
Skill page: https://www.mcpbundles.com/skills/postgres
Tools: 43
Live probe refreshed Dec 4, 2026 · Endpoint host mcp.mcpbundles.com
Related editorial
PostgreSQL Workflows with AI
How AI agents can run queries, explore schema, profile data, analyse indexes, and surface data-quality issues across a Postgres database.
MCPBundles publishes this directory for MCP discovery. Except where we host or operate an offering, third-party services run under their own terms. Product and company names on this page are used in a descriptive, identifying way (including under nominative fair use where applicable); they remain the property of their owners. Nothing here grants you rights in those marks, and nothing here is an offer to sell a third party's services. Terms
PostgreSQL
Add to your AI client, then sign in once when you connect.
Complete PostgreSQL database toolkit. All 43 tools for querying, schema management, performance analysis, DBA health/tuning, data quality, and development operations.
This listing identifies a third-party integration. MCPBundles is not affiliated with, sponsored by, or endorsed by the service or its operator unless stated on this page.
Postgres Alter Table — Perform safe ALTER TABLE operations including adding/dropping columns, changing types, renaming columns, and adding constraints.
Postgres Analyze Db Health — Run database health checks: unused/duplicate indexes, connections, vacuum/xid age, sequences near limits, replication lag, buffer cache hit rates, and invalid constraints.
Postgres Analyze Indexes — Full index analysis tool. Without table parameter: finds unused/rarely-used indexes across database for optimization. With table parameter: detailed usage analysis showing which indexes are actively used vs idle, with definitions and usage percentages.
Postgres Analyze Table — Run ANALYZE on a table to update query planner statistics. Returns updated statistics after analysis. Essential for maintaining query performance.
Postgres Analyze Workload Indexes — Analyze top pg_stat_statements workload queries and aggregate index recommendations. Deduplicates suggested CREATE INDEX statements across the workload. Each query gets a 10s EXPLAIN budget (max 5 queries, 60s total). Optionally simulates combined impact with hypopg.
Postgres Backup Table — Create a backup copy of a table including structure and optionally data. Useful before making destructive changes.
Postgres Batch Execute — Execute multiple SQL statements in a single transaction. All statements succeed or all fail (atomicity). Useful for bulk operations.
Postgres Check Missing Indexes — Identify potential missing indexes by analyzing foreign keys and columns frequently used in WHERE clauses. Suggests CREATE INDEX statements for optimization.
Postgres Check Referential Integrity
Frequently Asked Questions
What is the PostgreSQL MCP server?
Complete PostgreSQL database toolkit. All 43 tools for querying, schema management, performance analysis, DBA health/tuning, data quality, and development operations. It provides 43 tools that AI agents can use through the Model Context Protocol (MCP).
How do I connect PostgreSQL to my AI agent?
Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/postgres. Authentication is handled automatically.
Standard connector25 free calls every 30 days, then from $19/month
$19 / month
Subject to fair usage limits
— Find orphaned foreign key references - rows that reference non-existent parent rows. Critical for data integrity validation.
Postgres Compare Tables — Compare two tables to find rows that differ. Shows rows present in one table but not the other, and rows with different values in specified columns.
Postgres Create Table — Create a new table with specified columns and constraints. Generates CREATE TABLE statement from schema definition.
Postgres Data Quality Report — Generate detailed data quality report including duplicates, NULLs, constraint violations, and referential integrity. One-stop analysis for data quality issues.
Postgres Detect Outliers — Detect statistical outliers in numeric columns using IQR (Interquartile Range) or z-score methods. Useful for data quality analysis and anomaly detection.
Postgres Execute — Execute SQL on PostgreSQL. Before writing SQL against unfamiliar tables, load AI schema narration or inspect schema for exact column names — do not guess columns. On column or relation errors, re-introspect instead of retrying invented names. Supports SELECT, INSERT, UPDATE, DELETE, DDL, and DML.
Postgres Explain Hypothetical Index — Run EXPLAIN on a SELECT query as if hypothetical indexes existed, using the hypopg extension. Pass CREATE INDEX DDL strings or {table, columns} specs. Optionally compares estimated cost against the baseline plan without indexes.
Postgres Explain Query — Analyze query performance with EXPLAIN ANALYZE. Returns execution plan with actual timing, rows processed, and performance bottlenecks. Essential for optimizing slow queries.
Postgres Export Table — Export table data to CSV or JSON format. Useful for data migration, backups, or analysis in external tools. Returns chunked data for large tables.
Postgres Find Duplicates — Find duplicate rows based on specified columns. Returns groups of duplicates with counts. Essential for data quality audits and cleanup.
Postgres Find Null Patterns — Analyze NULL value distribution across columns. Shows which columns have high NULL percentages and identifies data quality issues.
Postgres Find Slow Queries — Find slow queries from pg_stat_statements extension. Requires pg_stat_statements extension to be enabled. Returns queries sorted by total execution time.
Postgres Find Unused Tables — Find tables that are not referenced by foreign keys, views, materialized views, or functions. Useful for identifying orphaned tables that may be safe to remove.
Postgres Get AI Description — Get compact, token-efficient database schema description optimized for AI text-to-SQL. Returns tables with columns, types, relationships, and optional sample values. On large databases, call with tables or table to load only the relations you need; without a filter, only the first max_tables names (default 50, max 200) are returned.
Postgres Get Enum Values — Find columns with enum-like behavior (limited distinct values) and show value frequencies. Useful for understanding categorical data and identifying candidates for proper ENUM types.
Postgres Get Foreign Key Graph — Build a graph representation of foreign key relationships showing which tables reference which other tables. Returns nodes (tables) and edges (FK relationships) for visualization.
Postgres Get Lock Info — Show current database locks and identify blocking queries. Helps diagnose performance issues and deadlocks. Shows which queries are waiting for locks held by other queries.
Showing the first 25 tools — full list and schemas: Directory API.
How many tools does PostgreSQL provide?
PostgreSQL provides 43 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.
What authentication does PostgreSQL require?
PostgreSQL uses API Key. PostgreSQL requires credentials. Connect via MCPBundles and authentication is handled automatically.
MCPBundles is an independent platform built on the open Model Context Protocol standard. MCPBundles is not affiliated with, sponsored by, or endorsed by Anthropic PBC.
More in developer tools
Other MCP servers in this category from the directory index