@tejasanik/postgres-mcp-server
npm
v3.0.3
Published by @tejasanik — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.
A Model Context Protocol (MCP) server for PostgreSQL database management and analysis
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 0 = 100. What the published surface and source actually contain:
The deterministic scan raised no scored threat in the surface it inspected — the threat score stayed at 100. Capability observations and advisory notes are recorded but never lower it.
2. Client adoption risk — 100 − 7 = 93. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −6 | capability blast radius (high) — client exposure if the model is manipulated |
| −1 | publisher verification (public source) — no provenance, but the source is public and inspectable |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
Tools that read sensitive data ([execute_sql, execute_sql_file, preview_sql_file, mutation_preview, mutation_dry_run, dry_run_sql_file, batch_execute, begin_transaction, explain_query, lock_check, safe_alter_table]) and tools that can send data out ([export_to_sql_file]) are exposed together. An agent can move private data to the sink.
Evidence: sources [execute_sql, execute_sql_file, preview_sql_file, mutation_preview, mutation_dry_run, dry_run_sql_file, batch_execute, begin_transaction, explain_query,
Fix: Keep secret-reading and egress capabilities on separate, separately-approved servers.
Location: flow execute_sql → export_to_sql_file
Tool "execute_sql_file" takes a path parameter "filePath" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.
Fix: Resolve and verify the path stays within an allowed root; reject traversal sequences.
Location: tool execute_sql_file · inputSchema.properties.filePath
Tool "preview_sql_file" takes a path parameter "filePath" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.
Fix: Resolve and verify the path stays within an allowed root; reject traversal sequences.
Location: tool preview_sql_file · inputSchema.properties.filePath
Tool "dry_run_sql_file" takes a path parameter "filePath" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.
Fix: Resolve and verify the path stays within an allowed root; reject traversal sequences.
Location: tool dry_run_sql_file · inputSchema.properties.filePath
Each tool and what it can reach — statically extracted from the published source.
batch_executereads sensitive databegin_transactionreads sensitive datadry_run_sql_filereads sensitive dataexecute_sqlreads sensitive dataexecute_sql_filereads sensitive dataexplain_queryreads sensitive dataexport_to_sql_filenetwork egresslock_checkreads sensitive datamutation_dry_runreads sensitive datamutation_previewreads sensitive datapreview_sql_filereads sensitive datasafe_alter_tablereads sensitive dataanalyze_db_healthno sensitive capabilityanalyze_query_indexesno sensitive capabilityanalyze_workload_indexesno sensitive capabilitycolumn_profileno sensitive capabilitycommit_transactionno sensitive capabilitydescribe_tableno sensitive capabilitydetect_migration_stateno sensitive capabilityfind_blocking_queriesno sensitive capabilityfind_dependentsno sensitive capabilitygenerate_seed_datano sensitive capabilityget_current_connectionno sensitive capabilityget_object_detailsno sensitive capabilityget_top_queriesno sensitive capabilityget_transaction_infono sensitive capabilitykill_queryno sensitive capabilitylist_databasesno sensitive capabilitylist_objectsno sensitive capabilitylist_schemasno sensitive capabilitylist_serversno sensitive capabilitylist_transactionsno sensitive capabilityrollback_transactionno sensitive capabilityschema_diffno sensitive capabilityswitch_server_dbno sensitive capabilitytransfer_objectsno sensitive capabilityCross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).
Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v3.0.3 latest |
A 93/100 | 4 | 1.13.0 | 2026-09-07 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan @tejasanik/postgres-mcp-server --online
Independent packages implementing the same tool, scanned with the same engine. Compare all 39 side by side →
PostgreSQL access with read-only guardrails, row caps, and statement timeouts.
Server for Postgres database interactions.
27 PostgreSQL tools for schema introspection, queries, CRUD, and server management.
MCP server for **PostgreSQL**, built on the [`pg`](https://node-postgres.com/) driver. Read-only by default — a good fit for reporting and data lookups.
A secure, self-hostable Model Context Protocol server for PostgreSQL.
MCP server for PostgreSQL schema introspection and guarded read-only queries
Security scan results for the A5sql MCP server.
Expose AgentsKit tools as an MCP server — use them from Claude Desktop, Cursor, Windsurf, or any MCP host.
MCP server for Aiven cloud data platform - manage PostgreSQL, Kafka, and other services
MCP Server for All-Inkl.com hosting via KAS API
Structured aquarium, marine, terrarium and paludarium data for AI agents.
MCP server that gives your AI agent real vehicle data — specs, representative images, federal recalls, owner complaints, service bulletins, defect investigations, and OBD-II DTC reference — from the CarVector API.