§ MCP Server · Database

Official

Postgres.

by Anthropic

Read-only SQL access for any Postgres database.

Install

npx -y @modelcontextprotocol/server-postgres postgresql://...

Transports

stdio (local)

Tools exposed

4

§ About

The reference MCP server for relational data. Exposes table schemas and read-only query execution to an agent — without giving it a write seat. The standard pattern for letting an LLM 'see' your data without risking writes.

§ Features

  • List schemas and tables
  • Read column types and constraints
  • Execute read-only queries
  • Connection-pooled for agent loops

§ Use cases

Analytics agents over an OLAP DBInternal Q&A bots over a customer-facing schemaSchema-aware report generators

§ Related MCP servers

Open standardSubmit a server →