postgres-mcp-js (shubham4038/postgres-mcp-js) is an MCP server listed on the M8ven Trust Index. It scores 58 out of 100, grade D. It declares 14 tools. No publisher has claimed this listing.

D
Caution
58/100

postgres-mcp-js

A Model Context Protocol (MCP) server for PostgreSQL that provides safe, structured access to your database for AI assistants, enabling health checks, index tuning, lock analysis, and more.

Caution. Specific findings reduced this grade. They are listed on the page. Grades reflect the full trust pyramid: code, verification depth, and reputation. New projects cap at C until adoption is earned.

How we verified

Code Verified⚡ Live Monitored: not connected

Verified is a snapshot. Live keeps it current, and builds your track record.

⚡ Connect GitHub → continuous verification on every pushwhy connect →

Who stands behind it

shubham4038

Source: Glama

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find. Or connect your repo for our deepest verification, Live Monitored: read-only, revoke anytime. What we access →

Install from

The grade above is for the source repository. Registries can serve a different version, so we mark the ones we were not able to read.

// key findings
⚠️
Known vulnerabilities in dependencies: 3 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
Open source with a license and README
Anyone can audit the code, the license is declared, and the publisher documents what it does.
// tools this server exposes13 tools

These names and descriptions are the publisher's own, read from the source code. We print them as written. Our assessment is the findings above, not this list.

list_databases

List configured database aliases. Use the returned names in the "database" parameter of other tools.

list_schemas

List all schemas in the database.

list_objects

List tables, views, sequences, or extensions in a schema.

get_object_details

Get columns, constraints, and indexes for a table or view.

execute_sql

Execute any SQL statement (unrestricted mode — development only).

explain_query

Get the query execution plan. Supports hypothetical index simulation (requires hypopg extension).

get_top_queries

Report the slowest or most resource-intensive queries using pg_stat_statements.

analyze_db_health

Run comprehensive database health checks across multiple dimensions.

analyze_workload_indexes

Analyze query workload from pg_stat_statements and recommend missing indexes.

analyze_query_indexes

Analyze specific SQL queries and identify missing indexes. Maximum 10 queries.

detect_index_misses

Detect tables likely suffering from missing indexes: seq-scan dominance, FK columns without indexes, under-indexed hot tables.

analyze_locks

Detect lock contention: blocking chains, long-running queries, idle-in-transaction sessions.

analyze_table_bloat

Detect table and index bloat from dead tuples. Returns vacuum recommendations.

// known CVEs in dependencies3 high

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

high@modelcontextprotocol/sdk@1.12.0GHSA-345p-7cg4-v4c7

@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse

high@modelcontextprotocol/sdk@1.12.0GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.12.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// environment variables
To run this server yourself, you supply these values. They go in your own MCP client configuration and stay on your machine. The secret label means the value is sensitive, not that the server mishandles it.
configACCESS_MODErestricted
// quality suggestions

Tool annotations

No tools have read-only/destructive annotations

Add readOnlyHint or destructiveHint annotations to every tool so hosts can warn users before invoking.

All four hints declared on every tool

14/14 tools missing one or more hints — list_databases (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); list_schemas (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); list_objects (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), +11 more. OpenAI's directory rejects tools where any of the four hints are missing or non-boolean.

For every tool, set all four hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to explicit true/false values that match the handler’s actual behaviour.

Tool inputs are validated

9/14 tool handlers declare input schemas (64%)

Declare an inputSchema with zod/joi/yup on every tool definition.

Tool handlers catch errors

13/14 tool handlers wrap calls in try/catch (93%)

Wrap each tool handler body in try/catch and return a structured error response.

Tests exist

No test files found

Add tests that exercise each declared tool.

Production dependencies are patched

0 critical, 3 high severity in production deps — @modelcontextprotocol/sdk@1.12.0 (high), @modelcontextprotocol/sdk@1.12.0 (high)

Run npm audit fix, or upgrade the affected packages to a non-vulnerable version.

Claim the listing to review these findings one by one and send us a correction where you disagree, straight to the team. Claiming also means we tell you when the grade moves, and reach you first if we find anything urgent.

// full audit trail
The findings above are the summary. The full trail, every check we ran, each deduction, the network hosts observed and the dependency advisories, goes to verified publishers, along with an alert whenever a new one lands. Verified publishers can also review each finding and dispute it in one click. Publisher corrections have sharpened several of our checks this month, because the maintainer knows the codebase better than any scanner.
// improvement guidance — verified publishers only
We have 6 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Verified](https://m8ven.ai/badge/mcp/shubham4038/postgres-mcp-js?variant=verified)](https://m8ven.ai/mcp/shubham4038/postgres-mcp-js)
Shows verification status without the grade. Want the grade badge instead? Remove ?variant=verified from the URL.
commit: a5398ef5632e9dbda3f7bfd67a41e01bed4fe80f
code hash: 5aedb818e4b2cc98ac897088022d0905dbbe8be694f148f3c45e5699ece82f0d
view raw JSON →
Check MCPs from inside your assistant
Tool Check · MCP

Vetting this one by hand? Tool Check is an MCP that scores other MCPs. Add it once and ask Claude, ChatGPT, or any MCP client to grade a server, surface CVEs, check the publisher, and suggest safer alternatives — before you install.

https://m8ven.ai/api/mcp/tool-check
check_toolsearch_toolscompare_toolsrecommend_alternativescheck_publisherreport_concern
How to add it →Free · no account needed · works in any MCP client