ClaudeMap

PostgreSQL MCP Server

Reference MCP server with read-only access to PostgreSQL.

MCP Serversofficialpostgresdatabasereferencearchived

Exposes schema introspection and read-only SQL queries against a PostgreSQL database with an optional write mode.

What it does

  • Single `query` tool executed inside a READ ONLY transaction — the model literally cannot write
  • Per-table schema resources (postgres://<host>/<table>/schema) discovered from database metadata
  • Runs via npx `@modelcontextprotocol/server-postgres` or docker `mcp/postgres`

When to use it

The minimal, safest Postgres bridge when all you need is 'let Claude inspect my schema and run SELECTs'. For index tuning and EXPLAIN analysis use Postgres MCP Pro instead.

Getting started

Add to .mcp.json under mcpServers.postgres:

{
  "command": "npx",
  "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"]
}

Docker + host DB: use host.docker.internal in the URL on macOS.

Things to know

The upstream repo moved to modelcontextprotocol/servers-archived — the npm package still works but gets no updates. The connection URL carries credentials in plaintext config; use a least-privilege read-only role.

Repository

modelcontextprotocol/servers-archived

Charted

Related on the map

  • Blitz Strike

    MCP Server

    A penetration-testing methodology delivered as one MCP server: BLITZ maps the attack surface, EAGLE-EYE traces source-to-sink, STRIKE live-verifies every finding before it is reported.

    • mcp-server
    • security
    • pentest
    • methodology
  • Ripwire

    MCP Server

    Red Hat's "ripgrep for AI context" — a C++23 zero-dependency CLI that also speaks MCP.

    • mcp
    • code-context
    • cli
    • red-hat
  • Deja Vu

    MCP Server

    One shared session memory for 25+ coding agents — Claude Code, Codex, and Cursor finally remember the same project.

    • mcp
    • memory
    • cross-agent
    • context