Skip to main content

Pg Readonly MCP

io.github.les-k/pg-readonly-mcp

v0.1.1Updated Oct 2, 2026stdio · PyPI

A read-only Postgres MCP server that parses SQL rather than pattern-matching it.

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add pg-readonly-mcp -e 'PG_READONLY_MCP_DSN=<your-pg-readonly-mcp-dsn>' -- uvx pg-readonly-mcp==0.1.1

Configuration

1 setting, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • PG_READONLY_MCP_DSN
    Env var· required· secret
    Postgres connection string for a role that holds only SELECT. The server refuses to start otherwise.

Listed in the official MCP Registry since Oct 2, 2026. Mirrored daily; last checked Nov 26, 2026.