官方MCP 伺服器

PostgreSQL

Query Postgres databases with schema introspection.

安裝

npx
npx -y @modelcontextprotocol/server-postgres "postgresql://localhost/dbname"

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

Read-only PostgreSQL connector. Claude can inspect schemas and run SELECT queries — handy for data analysis without exposing write paths.

常見使用情境

  • Ad-hoc data analysis
  • Schema documentation
  • Read-only reports

標籤

officialdatabasesql