Anthropic Official Data

Postgres

Read-only access to a Postgres database — list tables, run SELECTs, inspect schemas.

89,547 stars 11,443 forks Last commit 4d ago Language TypeScript License MIT
Sign in to like, install, or save to a bundle → View on GitHub →

Install

npm install -g @modelcontextprotocol/server-postgres

Maintain this server? Add the badge

Show your README readers it's in a curated directory — and give them a one-click path to install docs and config.

Listed on Prismix ← links back here

Markdown

[![Listed on Prismix](https://prismix.dev/api/badge/mcp/anthropic-postgres.svg)](https://prismix.dev/mcp/anthropic-postgres)
Theme-aware version (auto dark/light on GitHub) →
<a href="https://prismix.dev/mcp/anthropic-postgres"><picture><source media="(prefers-color-scheme: dark)" srcset="https://prismix.dev/api/badge/mcp/anthropic-postgres.svg?theme=dark"><img alt="Listed on Prismix" src="https://prismix.dev/api/badge/mcp/anthropic-postgres.svg"></picture></a>

Claude Desktop / Cursor config

Drop into your claude_desktop_config.json or Cursor MCP settings. Replace the ${…} placeholders with your own values.

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost:5432/dbname"]
    }
  }
}

About

Read-only Postgres bridge. Connects to any Postgres-compatible database (Postgres, Supabase, Neon, AWS RDS) with a connection string and exposes table listing, schema inspection, and arbitrary SELECT execution as tools. Writes are explicitly blocked at the protocol layer — safe to wire to a production DB.

Recent releases (5)

All releases →

Discussion (0)

Sign in to comment →

No comments yet. Sign in to start the discussion.

More Data servers