Results / postgres-mcp
postgres-mcp
Sealmark's automated test of postgres-mcp 0.3.0 on 2026-12-02 gave it grade F, its lowest test-area grade (protocol A and database F). Only 1 of 9 tools could be called with default settings, so the deeper test areas cover only that tool. Of its 11 checks, 7 passed and 4 failed. 5 more checks are advisory, and advisory checks never change a grade: 1 passed, 1 failed and 3 not applicable. The run used Sealmark 1.0.1 with the standard settings. The grade includes a finding under private disclosure; it still counts in full.
Grade F
The server's grade is its lowest test-area grade. How grading works
The grade includes a finding under private disclosure. It still counts in full.
Only 1 of 9 tools could be called with default settings, so the deeper test areas cover only that tool.
Grade by test area
Protocol checks
| Check | Verdict | What happened |
|---|---|---|
| protocol Valid MCP handshake and tool schemas | pass | handshake ok, 9 well-formed tool(s) |
| tool-poisoningcritical No tool-poisoning indicators in tool metadata | pass | scanned 9 tool definition(s) and serverInfo, including parameter text: nothing suspicious |
| robust-input Survives malformed tool input | pass | 36 invalid call(s) rejected cleanly |
| secret-echocritical No environment secret echoed in responses | pass | canary secrets absent from tools/list and 36 captured response(s), 0 of them successful result(s) |
| instructions-hygiene (advisory) Server instructions name only tools that exist | n/a | the server sent no instructions |
| refusal-quality (advisory) Refusals say what to do next | n/a | no refusal was recorded in this run, so there is nothing to judge |
Database checks
| Check | Verdict | What happened |
|---|---|---|
| read-only Read-only by default | fail | A security finding is being reported to the maintainer privately. Details will be published when it is fixed or 90 days after the report (disclosure policy). |
| write-gate (advisory) Write approval gate | fail | writes executed with no confirmation step through execute_sql (advisory: MCP clients may add their own approval) |
| rlscritical Row-level security respected | pass | Details held back while a security finding in this test area is reported privately. |
| mutating-sqlcritical Mutating SQL blocked | fail | A security finding is being reported to the maintainer privately. Details will be published when it is fixed or 90 days after the report (disclosure policy). |
| piicritical Personal data masking respected | pass | Details held back while a security finding in this test area is reported privately. |
| pii-masked Masked data reachable | pass | Details held back while a security finding in this test area is reported privately. |
| db-rowcap Row cap | fail | no row cap: 200,000 of 200,000 rows could be read through every tool |
| db-timeout Statement timeout | fail | no statement timeout within 18s (expected 10s): SELECT pg_sleep(30) on execute_sql |
| audit (advisory) Every call logged | n/a | not measured: servers do not write audit rows by themselves |
| db-privilege (advisory) Connects as the database role it was given | pass | every instance connected as exactly the role it was given (sm_admin, sm_support, sm_analyst); none is a superuser, has BYPASSRLS or owns an RLS table |
Each check id links to what it tests and how to fix a failure. The same text is in sealmark explain <id>.
What was not covered
- HTTP: Not applicable. The server is started over stdio; the http test area needs server.url
- Files: Not applicable. No tool is classified as taking a file path with medium confidence or higher
- Git: Not applicable. No tool is classified as taking a git repository path with medium confidence or higher
- Network: Not applicable. No tool is classified as taking a URL with medium confidence or higher
- SQLite: Not applicable. No {sqlite_path} placeholder in the server config, so the harness cannot give the server a database to grade (SQLite servers only: if the server runs on SQLite, add {sqlite_path} to its args; a DuckDB server is not graded in this release, see {duckdb_path} under Not covered)
- Effects: Not applicable. No tool takes a harness-owned target (file path, repository or URL) with medium confidence or higher, and none is a read-only tool with no required parameter
- Tools that a server lists only for clients that declare roots, sampling or elicitation capabilities are not seen: the harness declares none
- Tool "list_schemas" is covered by the protocol checks only: the tool takes no parameters
- Tool "list_objects" is covered by the protocol checks only: free-text parameter "schema_name": no path, URL, command, SQL or repository signal; add it under tools: to include it
- Tool "get_object_details" is covered by the protocol checks only: free-text parameter "schema_name": no path, URL, command, SQL or repository signal; add it under tools: to include it
- Tool "analyze_workload_indexes" is covered by the protocol checks only: no free-text parameter: every string parameter is an enum; add it under tools: to include it
- Tool "analyze_db_health" is covered by the protocol checks only: free-text parameter "health_type": no path, URL, command, SQL or repository signal; add it under tools: to include it
- Tool "get_top_queries" is covered by the protocol checks only: free-text parameter "sort_by": no path, URL, command, SQL or repository signal; add it under tools: to include it
- Tool "list_schemas" was not covered by the core test area: needs probes: to be called (no arguments, and not declared read-only)
- Tool "explain_query" was not covered by the db test area: neither control succeeded (read: returned a plan, not rows: → Result (Cost: 3.26..3.27) [Rows: 1] → Aggregate (Cost: 3.25..3.26) [Rows: 1] → Seq Scan (Cost: 0.00..3.00) on customers [Rows: 100] {"result":[{"type":"text","text":"→ Result (Cost: 3.26..3.27) [Rows: 1]\n → Aggregate (Cost: 3.25..3.26) [Rows: 1]\n → Seq Scan (Cost: 0.00..3.00) on customers [Rows: 100]","annotations":null,"_meta":null}]}; write: → ModifyTable (Cost: 0.00..0.01) on probe_t [Rows: 0] → Result (Cost: 0.00..0.01) [Rows: 1] {"result":[{"type":"text","text":"→ ModifyTable (Cost: 0.00..0.01) on probe_t [Rows: 0]\n → Result (Cost: 0.00..0.01) [Rows: 1]","annotations":null,"_meta":null}]}); no control form worked (CREATE TABLE: Error: Error executing explain plan: syntax error at or near "int" LINE 1: EXPLAIN (FORMAT JSON) CREATE TABLE sm_ctl_probe (x int) ^ {"result":[{"type":"text","text":"Error: Error executing explain plan: syntax error at or near \"int\"\nLINE 1: EXPLAIN (FORMAT JSON) CREATE TABLE sm_ctl_probe (x int)\n ^","annotations":null,"_meta":null}]})
- Tool "analyze_query_indexes" was not covered by the db test area: neither control succeeded (read: {'error': 'The **hypopg** extension is not available on this PostgreSQL server.\n\nTo install HypoPG:\n1. For Debian/Ubuntu: `sudo apt-get install postgresql-18-hypopg`\n2. For RHEL/CentOS: `sudo yum install postgresql18-hypopg`\n3. For MacOS with Homebrew: `brew install hypopg`\n4. For other systems, build from source: `git clone https://github.com/HypoPG/hypopg`\n\nAfter installing the extension; write: {'error': 'The **hypopg** extension is not available on this PostgreSQL server.\n\nTo install HypoPG:\n1. For Debian/Ubuntu: `sudo apt-get install postgresql-18-hypopg`\n2. For RHEL/CentOS: `sudo yum install postgresql18-hypopg`\n3. For MacOS with Homebrew: `brew install hypopg`\n4. For other systems, build from source: `git clone https://github.com/HypoPG/hypopg`\n\nAfter installing the extension); no control form worked (CREATE TABLE: {'error': 'The **hypopg** extension is not available on this PostgreSQL server.\n\nTo install HypoPG:\n1. For Debian/Ubuntu: `sudo apt-get install postgresql-18-hypopg`\n2. For RHEL/CentOS: `sudo yum install postgresql18-hypopg`\n3. For MacOS with Homebrew: `brew install hypopg`\n4. For other systems, build from source: `git clone https://github.com/HypoPG/hypopg`\n\nAfter installing the extension)
- The sandbox is a convention the harness follows, not a security boundary. A malicious server runs with your user's privileges, sees the real file system and network, and can ignore cwd, HOME and PATH. Run untrusted servers in a throwaway VM or container.
- Prompt injection carried in tool output (only tool metadata is scanned)
- Authentication and transport security
- Audit logging (not measured by these test areas; only the db test area has an advisory audit check)
Grade over time
Since the run on
Same as that run: the same grade in every test area, the same server version (0.3.0), the same Sealmark version (1.0.1).
- Fv0.3.0
- –did not run
- –did not run
- –did not run
- –did not run
- –did not run
- –did not run
- Fv0.3.0Sealmark 1.0.0
- Fv0.3.0Sealmark 1.0.1
- Fv0.3.0Sealmark 1.0.1
- Fv0.3.0Sealmark 1.0.1
- Fv0.3.0Sealmark 1.0.1
Badge for the README
The badge shows this automated result for version 0.3.0. It is a link to this page, not a certificate, and it changes when the next re-test does.
[](https://sealmark.dev/results/postgres-mcp/)
Files: badge SVG, card SVG, shields endpoint JSON.
Package facts
- License
- MIT
From PyPI, checked 4 Dec 2026. Plain facts about the package; they play no part in the grade.
Run it yourself
The command for this run is withheld while a security finding is reported privately. It is published with the report, when the finding is fixed or 90 days after the report.
Related servers
Other servers graded in the same test area, most areas in common first, then by grade.
- @henkey/postgres-mcp-server · grade D (the grade includes a finding under private disclosure) · Database
- @modelcontextprotocol/server-postgres · grade D (the grade includes a finding under private disclosure) · Database
- @bytebase/dbhub · grade F (the grade includes a finding under private disclosure) · Database
Grade alerts
One email when the grade of postgres-mcp changes after a re-test. Nothing else, and every email has a link to stop them.
Each of 613 verdicts was checked independently, and Sealmark was wrong on some: how reliable Sealmark is.
Is this wrong?
Reply to our private report or email disclosure@sealmark.dev and we will recheck it. Maintainers can ask for their server to be removed.
If we were wrong, we correct the page and add your reply. Security findings go to the maintainer privately first; see the disclosure policy.