Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Pg-Mcp

by stuzero/pg-mcp-serverMIT licenceAudited 29 Sep 2026 · source c304ec3c4081

PyPI pg-mcp★ 541
✓SAFEGrade B · 89/100 · 29 Sep 2026 · c304ec3
541GitHub stars

Is it safe? Yes — SAFE, grade B (89/100). It exposes 5 tools: 5 read, 0 write and 0 destructive. The audit recorded 2 findings (0 critical, 0 high, 0 medium, 2 low).

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Pg-Mcp (stuzero/pg-mcp-server)”. Retrieved 29 Sep 2026. https://modelsatlas.com/mcp/stuzero/pg-mcp

Trust audit

Audit 0.4.1 · full source read 29 Sep 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium2 low0 info

2 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared1 observation
  • NetworkDeclared6 observations
  • ShellNone observedNothing seen in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainPASS 2 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner stuzeroUser accountAccount type recorded when we read the repository.
  • PackagePublished on PyPIpg-mcp, no version recorded
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push13 months agoActivity of the repository when we read it.
  • Source commit readc304ec3c4081The audit covers exactly this commit, read on 29 Sep 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory5 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (2)

Sorted by severity

LOWObfuscation / stealthobf.decode_call · example-clients/claude_cli.py:33
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
result = codecs.decode(sql_query, 'unicode_escape')
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.decode_call · example-clients/gemini-agent-cli.py:170
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
unescaped_sql_query = codecs.decode(sql_query, 'unicode_escape')
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

5 declared in source · 0 destructive

5 read0 write0 destructive
ToolRiskWhat it does
connectreadNo description in the source
disconnectreadNo description in the source
pg_explainreadNo description in the source
pg_metadatareadNo description in the source
pg_queryreadNo description in the source

Install

audited commit c304ec3

One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit c304ec3 only.

claude mcp add pg-mcp --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env GEMINI_API_KEY=${GEMINI_API_KEY} -- uvx pg-mcp

The command does not pin a version; the audit covers commit c304ec3c4081. Transport: not declared. Reads these environment variables: ANTHROPIC_API_KEY, GEMINI_API_KEY. Give it the narrowest token it needs.

Audit history

  1. ✓SAFE B 89 / 100

    First audit · c304ec3c4081

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/stuzero/pg-mcp/badge.svg)](https://modelsatlas.com/mcp/stuzero/pg-mcp/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Pg-Mcp

What tools does Pg-Mcp expose?
5 in total: 5 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Pg-Mcp safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Pg-Mcp need?
It reads ANTHROPIC_API_KEY and GEMINI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How current is this page?
The grade is for one exact copy of the source (c304ec3c4081), read on 2026-09-29. The repository is watched and re-audited when it changes.

Sources

  • stuzero/pg-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 29 Sep 2026
  • ModelsAtlas trust audit — SAFE verdict for commit c304ec3c4081Observed · 29 Sep 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.