Analyze Db Health
Report database health (connections, vacuum age, replication slots, cache hit rates, invalid constraints).
Let your AI agents run PostgreSQL for you, safely.
A hosted PostgreSQL MCP server for Claude, ChatGPT, Cursor and CLI agents. Paste one server URL into your AI client to use its 8 actions. There is nothing to install.
Enable or disable every action, per account. Block your agent from doing dangerous actions.
Ask in plain English. Pull reports, find insights and take action in PostgreSQL.
8 read and write actions. Every PostgreSQL task your agent needs, from reporting to making changes.
Built for teams. Invite your team and share one connected account.
8 actions available to automate your PostgreSQL workflows.
8 actions
Report database health (connections, vacuum age, replication slots, cache hit rates, invalid constraints).
Return the EXPLAIN plan for a query. Set analyze=true for EXPLAIN ANALYZE (actually runs the query).
Full metadata for a table or view: columns, constraints, indexes, estimated row count, size.
Return the column list (name, data_type, is_nullable, default) for a table or view.
Slowest or most resource-intensive queries from the pg_stat_statements extension.
List all schemas in the connected database.
List tables, views, sequences, or extensions in a schema.
Execute a SQL statement against the connected database.
The InsightfulPipe PostgreSQL MCP server is a hosted Model Context Protocol server that connects a PostgreSQL database to AI assistants such as Claude, ChatGPT, Cursor, Claude Code, Gemini CLI and Codex. You enter the host, port, database, user and password, or paste a connection URI, and add one server URL to your AI client.
List schemas and tables, and read columns, constraints, indexes and sizes before writing a query.
See all PostgreSQL actionsAsk in plain English; the assistant writes the query, runs it with parameters and summarizes the result.
See all PostgreSQL actionsFind the heaviest queries from pg_stat_statements and read their EXPLAIN plans to spot missing indexes.
See all PostgreSQL actionsAdd the server URL to your AI client, then sign in with your InsightfulPipe account to authorize access. The server is hosted, so there is nothing to install.
https://postgresql.insightfulmcp.com/Fastest: add InsightfulPipe from the Claude Directory
One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to PostgreSQL only, follow the steps below.
Or add the PostgreSQL server manually:
https://postgresql.insightfulmcp.com/
Start a new chat, click +, open Connectors and turn the connector on to use it.
The Free plan can add one custom connector. On Team and Enterprise plans, an Owner first adds it under Organization settings > Connectors, then each member clicks Connect in Customize > Connectors.
Fastest: add InsightfulPipe from the ChatGPT app directory
One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to PostgreSQL only, follow the steps below.
Or add the PostgreSQL server manually. Custom MCP servers need ChatGPT's Developer mode, which OpenAI offers on Plus, Pro, Business, Enterprise and Education accounts on the web.
https://postgresql.insightfulmcp.com/
See OpenAI's Developer mode guide.
claude mcp add --transport http postgresql-mcp https://postgresql.insightfulmcp.com/
/mcp, select postgresql-mcp and choose Authenticate.~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):{
"mcpServers": {
"postgresql-mcp": {
"url": "https://postgresql.insightfulmcp.com/"
}
}
}gemini mcp add --transport http postgresql-mcp https://postgresql.insightfulmcp.com/
/mcp auth postgresql-mcp.Using the Codex app? Add InsightfulPipe from the OpenAI app directory
The listed app connects the full InsightfulPipe MCP with all your connected accounts, in both ChatGPT and Codex.
codex mcp add postgresql-mcp --url https://postgresql.insightfulmcp.com/
codex mcp login postgresql-mcp.One hosted server URL, any MCP-compatible client. Pick yours to see the setup steps, or paste the URL into anything that speaks MCP.
Setup guide for ChatGPT
Setup guide for Claude
Setup guide for Claude Code
Setup guide for Codex
Setup guide for Cursor
Setup guide for Gemini CLI
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Paste the server URL to connect
Run actions from your terminal
Copy a prompt into any connected client, or install a Claude skill that chains the actions for you.
“List the tables in the public schema”
Lists tables in a schema
“What columns and indexes does the orders table have?”
Reads table metadata
“How many new customers signed up each week this quarter?”
Writes and runs a SELECT query
“Which queries use the most total execution time?”
Reads top queries from pg_stat_statements
“Show the query plan for this report query”
Runs EXPLAIN without executing the query
“Check vacuum age and cache hit rate for this database”
Runs the database health report
“Are there any invalid constraints?”
Runs the constraint health check
Join hundreds of agencies and brands using InsightfulPipe to connect marketing data to AI.
Start a trial today.