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

MCP server · Org-owned · Audited from source

Pgconsole MCP server

by pgplex/pgconsoleApache-2.0 licenceAudited 7 Oct 2026 · source d1e5627a3a04

npm pgconsolestreamable-http★ 155
✕BLOCKGrade D · 61/100 · 7 Oct 2026 · d1e5627

Is it safe? No — BLOCK, grade D (61/100). It exposes 7 tools: 4 read, 1 write and 2 destructive. The audit recorded 22 findings (1 critical, 0 high, 7 medium, 9 low). Maintainer's description: Minimal Postgres editor for speed, collaboration, and AI

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Pgconsole MCP server (pgplex/pgconsole)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/pgplex/pgconsole

Why this is BLOCK. The audit found 1 critical and 0 high findings; the most severe is Prompt injection at .claude/skills/take-doc-screenshots/SKILL.md:25. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score61/100✕BLOCK D
1 critical0 high7 medium9 low5 info

22 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

  • FilesystemDeclared7 observations
  • NetworkDeclared5 observations
  • ShellDeclared1 observation
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

Findings (22)

Sorted by severity

CRITICALPrompt injectionprompt.transfer_instruction · .claude/skills/take-doc-screenshots/SKILL.md:25
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
curl -s -c cookies.txt -X POST http://localhost:5173/api/auth/login \
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine
MEDIUMHard-coded secretssecret.generic · README.md:109
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · docs/authentication/overview.mdx:26
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · docs/configuration/config.mdx:460
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · docs/features/mcp-server.mdx:48
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · pgconsole.example.toml:222
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
run_ddl, write_data
Why
2 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
MEDIUMAuth / authzmcp.remote_no_auth
F-10 Auth / authzCWE-287 · CWE-862Layer L3
streamable-http
Why
a network transport with no auth environment variable found
Fix
require a token
LOWFilesystem / pathfs.traversal · server/lib/sql-permissions.ts:1
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { parseSql, type Statement, type Expr } from "../../src/lib/sql/core";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · server/lib/sql-permissions.ts:2
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { PG_SYSTEM_FUNCTIONS } from "../../src/lib/sql/pg-system-functions";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · server/services/ai-service.ts:3
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { AIService } from '../../src/gen/ai_connect'
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · server/services/connection-service.ts:3
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { ConnectionService } from "../../src/gen/connection_connect"
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · server/services/query-service.ts:3
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { QueryService } from "../../src/gen/query_connect";
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@ai-sdk/anthropic, @ai-sdk/google, @ai-sdk/openai, @ai-sdk/openai-compatible, @base-ui/react, @bufbuild/protobuf, @codemirror/autocomplete, @codemirror/commands
Why
69 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · website/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@tailwindcss/typography, clsx, gray-matter, highlight.js, markdown-it, next, react, react-dom
Why
16 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · worker/demo/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@cloudflare/containers, wrangler
Why
2 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · docs/authentication/overview.mdx:33
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
email = "[email protected]"  # SSO-only, no password
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine
INFOPrompt injectionprompt.authority_framing · docs/configuration/config.mdx:361
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Rules for controlling access to connections. IAM is opt-in: with no `[[iam]]` rules defined, all authenticated users have full access, and enforcement begins once you define the first rule. See [Datab
Why
No further detail recorded for this rule.
Fix
—
INFOPrompt injectionprompt.authority_framing · docs/features/database-access-control.mdx:7
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
<Info>IAM is **opt-in**. With no `[[iam]]` rules defined, every authenticated user has full access to all connections. Enforcement begins the moment you define your first rule — from then on, any user
Why
No further detail recorded for this rule.
Fix
—
INFOPrompt injectionprompt.authority_framing · docs/features/database-access-control.mdx:32
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- [Authentication](/configuration/config#authentication) must be enabled, and at least one `[[iam]]` rule must be defined; otherwise, all users get full access to all connections
Why
No further detail recorded for this rule.
Fix
—
INFOPrompt injectionprompt.authority_framing · docs/features/database-access-control.mdx:112
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
### Read-Only Access for Everyone, Full Access for DBAs
Why
No further detail recorded for this rule.
Fix
—
INFOPrompt injectionprompt.authority_framing · docs/features/database-access-control.mdx:129
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
# Developers: full access to dev, read-only on staging and prod
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

7 declared in source · 2 destructive

4 read1 write2 destructive

2 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolWhat it doesRisk
run_ddlRun a schema-changing statement (CREATE / ALTER / DROP / GRANT / REVOKE / ...).destructive
write_dataRun a data-modifying statement (INSERT / UPDATE / DELETE / COPY). Returns affected row count and any RETURNING rows.destructive
queryRun a read-only statement (SELECT, SHOW, ...) and return the rows. Results are capped at ${MAX_RESULT_ROWS} rows; when capped, \write
describe_tableFull detail for one table/view: columns and types, primary/foreign keys, indexes, constraints, and comments.read
explain_queryReturn the query plan for a single SELECT statement. Withread
list_connectionsList the Postgres connections this token can access, with the IAM permissions granted on each.read
list_objectsBrowse a connection\read

Safer alternatives

Audit history

  1. ✕BLOCK D 61 / 100

    First audit · d1e5627a3a04

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about Pgconsole MCP server

What is the Pgconsole MCP server?
Minimal Postgres editor for speed, collaboration, and AI
What tools does Pgconsole expose?
7 in total: 4 read-only, 1 that write, and 2 that can delete or overwrite (run_ddl, write_data). Every one is listed on this page with its risk.
Is Pgconsole safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (61/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Pgconsole need?
No credential environment variables were found in its source, so it appears to need none.
How does Pgconsole run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as pgconsole.
How current is this page?
The grade is for one exact copy of the source (d1e5627a3a04), read on 2026-10-07. The repository is watched and re-audited when it changes.
I already installed Pgconsole. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • pgplex/pgconsole on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit d1e5627a3a04Observed · 7 Oct 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.