OfficialMCP Server

PostgreSQL

Query Postgres databases with schema introspection.

Install

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

Add this to your Claude Code MCP settings or run via the CLI.

About

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

Common use cases

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

Tags

officialdatabasesql