PostgreSQL MCP by InsightfulPipe

com.insightfulpipe由 insightfulpipe.com 發布v1.0.0更新於 Nov 4, 2026

Hosted PostgreSQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.

已驗證Streamable HTTP可網頁執行資料庫資料與分析

概覽

AI 產生的概覽

託管式 PostgreSQL MCP 伺服器,讓 AI 助理瀏覽結構與資料表、檢視中繼資料、執行 SQL 並檢查自有資料庫的健康狀態。

可以做什麼
  • 列出所連資料庫中的結構、資料表、檢視表、序列與擴充套件
  • 檢視資料表與檢視表的結構:欄位、限制條件、索引、列數估算與大小
  • 執行 SQL 敘述,並取得查詢的 EXPLAIN 執行計畫
  • 檢視資料庫健康狀態(連線數、vacuum 時間、複寫槽、快取命中率)以及 pg_stat_statements 中最慢的查詢
適用情境
適合希望不必在本機安裝,就能讓助理探索與查詢 PostgreSQL 資料庫的情境,也適合需要依帳號控制可用操作(包含唯讀連線)的團隊。
執行需求
需將遠端端點 postgresql.insightfulmcp.com 加入 Claude、ChatGPT(開發人員模式)、Claude Code 或 Cursor 的自訂連接器。需要以 OAuth 登入 InsightfulPipe 帳號,伺服器會以某個 PostgreSQL 角色連線你的資料庫,該角色的 GRANT/REVOKE 權限決定唯讀或讀寫。7 天試用期後需付費訂閱 InsightfulPipe 方案。
安裝前請注意
伺服器會對你的資料庫執行 SQL,讀寫連線可能修改或刪除資料;破壞性操作預設關閉,非必要不要開啟。唯讀或讀寫能力取決於連接器所用資料庫角色的權限,建議使用最小權限角色。資料庫透過第三方託管服務存取,使用需付費訂閱。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PostgreSQL MCP by InsightfulPipe,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.insightfulpipe%2Fpostgresql/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "postgresql-by-insightfulpipe": {
      "type": "http",
      "url": "https://postgresql.insightfulmcp.com/"
    }
  }
}

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

bash
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):

json
{  "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.

來源:README.md,提交 4306548

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.0最新Oct 21, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分