mcpField
P
PostgreSQL MCP by InsightfulPipe

PostgreSQL MCP by InsightfulPipe

Remote
insightfulpipe.comDatabases0Updated 3w ago

About PostgreSQL MCP by InsightfulPipe

PostgreSQL MCP by InsightfulPipe is a hosted remote server for AI assistants to inspect PostgreSQL schemas, run SQL, and review database health. Per-account action controls and database role grants determine which operations are available.

Key features

  1. 01Browse schemas, tables, and views
  2. 02Inspect columns, constraints, and indexes
  3. 03Run SQL and view query plans
  4. 04Check database health and slow queries
  5. 05Enable or disable actions per account

Use cases

  1. 01Inspect database table structures
  2. 02Analyze SQL query plans
  3. 03Review database health

MCP support

The remote MCP server exposes PostgreSQL schema browsing, table metadata, query execution, and health checks to MCP clients. Per-account action controls and database role permissions govern read and write access.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://postgresql.insightfulmcp.com/
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

PostgreSQL MCP Server by Insightful Pipe

MCP Compatible Insightful Pipe License

Connect PostgreSQL to AI assistants: schemas, tables, SQL and database health.

Part of the Insightful Pipe MCP Server Collection — use PostgreSQL from Claude, ChatGPT, Cursor, and other AI assistants through the Model Context Protocol (MCP).

PostgreSQL MCP Server

MCP Server URL

https://postgresql.insightfulmcp.com/

What is PostgreSQL MCP?

PostgreSQL MCP is a remote Model Context Protocol server hosted by InsightfulPipe. Browse schemas and tables, inspect columns, run SQL, and read pg_stat insights against your own PostgreSQL database. Read vs. read-write is decided by the GRANT/REVOKE privileges on the role this connector logs in as.

Installation

Claude
  1. Copy the MCP Server URL: https://postgresql.insightfulmcp.com/
  2. Open Claude Connectors Settings
  3. Scroll to the bottom and click Add custom connector
  4. Paste the URL and click Add
  5. Click Connect and sign in to InsightfulPipe if asked. Claude then lists the connector as connected.
ChatGPT

Custom MCP servers are added through ChatGPT's Developer mode. Availability depends on your ChatGPT plan, and workspace admins may need to allow it.

  1. Turn on Developer mode in ChatGPT settings
  2. Create a new app for a remote MCP server and paste the URL: https://postgresql.insightfulmcp.com/
  3. Sign in to InsightfulPipe if asked. The connection finishes as soon as you are signed in.

See OpenAI's guide: Developer mode and MCP apps in ChatGPT

Claude Code
claude mcp add --transport http postgresql https://postgresql.insightfulmcp.com/
Cursor

Add the server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "postgresql": {
      "url": "https://postgresql.insightfulmcp.com/"
    }
  }
}

When Cursor shows Needs authentication, click Connect and sign in to InsightfulPipe if asked.

Available Actions

8 actions: 7 read, 1 write.

Read Actions (7)
ActionDescription
analyze_db_healthReport database health (connections, vacuum age, replication slots, cache hit rates, invalid constraints)
explain_queryReturn the EXPLAIN plan for a query
get_table_metadataFull metadata for a table or view: columns, constraints, indexes, estimated row count, size
get_table_schemaReturn the column list (name, data_type, is_nullable, default) for a table or view
get_top_queriesSlowest or most resource-intensive queries from the pg_stat_statements extension
list_schemasList all schemas in the connected database
list_tablesList tables, views, sequences, or extensions in a schema
Write Actions (1)
ActionDescription
run_queryExecute a SQL statement against the connected database

Control What Your AI Can Do

You decide what AI agents can do with each connected account:

  • Turn individual actions on or off for every connected account, so agents only see the actions you allow.
  • Connect as Read-only or Read & Write. A read-only connection can only enable read actions.
  • Destructive actions stay off by default. Actions such as deletes are disabled until an admin enables them.
  • Team access per account. Restricted team members only use the accounts they are granted, with the read actions enabled on them.

Usage Examples

"List the tables in the public schema"
"Show the schema of the orders table"
"Check my database health"

Pricing

The PostgreSQL MCP server is included in every InsightfulPipe plan, together with all other MCP servers and the CLI. Plans start at $29.99/month, and you can try it for 7 days. See insightfulpipe.com/pricing for current plans.

Explore More MCP Servers by Insightful Pipe

Visit insightfulpipe.com/mcp-servers to discover our full collection of MCP servers.

View All MCP Servers →

Resources

Support


Insightful Pipe — AI-powered marketing analytics through MCP servers. Explore all integrations →

License

MIT License - see LICENSE for details.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.