Skip to content
mcp/skillhub

PG Readonly MCP Server

by les-kio.github.les-k/pg-readonly-mcpv0.1.1

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

0Pythonstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Active7d ago

Install PG Readonly MCP server

Install in Claude Code

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

Configuration

VariableRequiredSecretDescription
PG_READONLY_MCP_DSNyesyesPostgres connection string for a role that holds only SELECT. The server refuses to start otherwise.

Freshness

Active — last maintenance signal 7d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-10-02 · 7d ago · GitHub

  2. Latest release

    no data · GitHub

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-10-02 · 7d ago · official registry · v0.1.1

FAQ

›How do I install the PG Readonly MCP server in Claude Code?

Run: claude mcp add pg-readonly -e PG_READONLY_MCP_DSN='<pg-readonly-mcp-dsn>' -- uvx pg-readonly-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does PG Readonly require an API key?

Yes. It expects PG_READONLY_MCP_DSN, of which 1 is a secret.

›Can I use PG Readonly as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is PG Readonly in the official MCP registry?

Yes, as io.github.les-k/pg-readonly-mcp.

Alternatives to PG Readonly

Other database MCP servers.

View all