MCP server · Org-owned · Audited from source
Pgconsole MCP server
by pgplex/pgconsoleApache-2.0 licenceAudited 7 Oct 2026 · source d1e5627a3a04
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
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
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
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
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
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
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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
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
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
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
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
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
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
import { QueryService } from "../../src/gen/query_connect";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@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
@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
@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
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
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
<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
- [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
### 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
# 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
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.
| Tool | What it does | Risk |
|---|---|---|
run_ddl | Run a schema-changing statement (CREATE / ALTER / DROP / GRANT / REVOKE / ...). | destructive |
write_data | Run a data-modifying statement (INSERT / UPDATE / DELETE / COPY). Returns affected row count and any RETURNING rows. | destructive |
query | Run a read-only statement (SELECT, SHOW, ...) and return the rows. Results are capped at ${MAX_RESULT_ROWS} rows; when capped, \ | write |
describe_table | Full detail for one table/view: columns and types, primary/foreign keys, indexes, constraints, and comments. | read |
explain_query | Return the query plan for a single SELECT statement. With | read |
list_connections | List the Postgres connections this token can access, with the IAM permissions granted on each. | read |
list_objects | Browse a connection\ | read |
Safer alternatives
Audit history
- ✕BLOCK D 61 / 100
First audit ·
d1e5627a3a04
README badge
Badges show the current verdict, BLOCK included
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?
What tools does Pgconsole expose?
Is Pgconsole safe to connect to an agent?
What credentials does Pgconsole need?
How does Pgconsole run?
How current is this page?
I already installed Pgconsole. What should I do?
Can the verdict change?
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.
- What is the Pgconsole MCP server?
- What tools does Pgconsole expose?
- Is Pgconsole safe to connect to an agent?