Skip to content
mcp/skillhub

pgmcp MCP Server

by pascalallenio.github.pascalallen/pgmcpv1.1.0

Read-only Postgres ops/DBA diagnostics: slow queries, EXPLAIN, locks, index and table health.

0Dockerstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Maintained50d ago

Install pgmcp MCP server

Install in Claude Code

claude mcp add pgmcp -e PGMCP_DATABASE_URL='<pgmcp-database-url>' -- docker run -i --rm -e PGMCP_DATABASE_URL ghcr.io/pascalallen/pgmcp:1.1.0

Configuration

VariableRequiredSecretDescription
PGMCP_DATABASE_URLyesyesPostgres connection string (read-only role recommended)

Freshness

Maintained — last maintenance signal 50d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-08-20 · 50d ago · GitHub

  2. Latest release

    2026-08-20 · 50d ago · GitHub · v1.1.0

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-08-20 · 50d ago · official registry · v1.1.0

FAQ

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

Run: claude mcp add pgmcp -e PGMCP_DATABASE_URL='<pgmcp-database-url>' -- docker run -i --rm -e PGMCP_DATABASE_URL ghcr.io/pascalallen/pgmcp:1.1.0. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does pgmcp require an API key?

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

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

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

›Is pgmcp in the official MCP registry?

Yes, as io.github.pascalallen/pgmcp.

Alternatives to pgmcp

Other database MCP servers.

View all