Postgres (tejasanik) MCP Server

@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

Trust grade
A
93/100
Last scanned get badge →
Trust
A · 93/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
A Why this grade threat 100 − adoption risk = 93/100

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:

PointsAdoption-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.

Findings 4

high Sensitive-source and external-sink co-existMTC-FLOW-004

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

low Unconstrained path parameter "filePath" on "execute_sql_file"MTC-CAP-008

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

low Unconstrained path parameter "filePath" on "preview_sql_file"MTC-CAP-008

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

low Unconstrained path parameter "filePath" on "dry_run_sql_file"MTC-CAP-008

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

Tools 36

Each tool and what it can reach — statically extracted from the published source.

  • batch_executereads sensitive data
  • begin_transactionreads sensitive data
  • dry_run_sql_filereads sensitive data
  • execute_sqlreads sensitive data
  • execute_sql_filereads sensitive data
  • explain_queryreads sensitive data
  • export_to_sql_filenetwork egress
  • lock_checkreads sensitive data
  • mutation_dry_runreads sensitive data
  • mutation_previewreads sensitive data
Show 26 more tools ↓
  • preview_sql_filereads sensitive data
  • safe_alter_tablereads sensitive data
  • analyze_db_healthno sensitive capability
  • analyze_query_indexesno sensitive capability
  • analyze_workload_indexesno sensitive capability
  • column_profileno sensitive capability
  • commit_transactionno sensitive capability
  • describe_tableno sensitive capability
  • detect_migration_stateno sensitive capability
  • find_blocking_queriesno sensitive capability
  • find_dependentsno sensitive capability
  • generate_seed_datano sensitive capability
  • get_current_connectionno sensitive capability
  • get_object_detailsno sensitive capability
  • get_top_queriesno sensitive capability
  • get_transaction_infono sensitive capability
  • kill_queryno sensitive capability
  • list_databasesno sensitive capability
  • list_objectsno sensitive capability
  • list_schemasno sensitive capability
  • list_serversno sensitive capability
  • list_transactionsno sensitive capability
  • rollback_transactionno sensitive capability
  • schema_diffno sensitive capability
  • switch_server_dbno sensitive capability
  • transfer_objectsno sensitive capability

Toxic flows 1

Cross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).

What this scan could not see

Versions 1

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.

VersionScoreFindingsEngineScanned
v3.0.3 latest A 93/100 4 1.13.0 2026-09-07

Embed this score

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.

MCP Trust Score: A · 93/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/tejasanik-postgres-mcp-server/badge.svg)](https://mcptrustchecker.com/registry/tejasanik-postgres-mcp-server)
HTML
<a href="https://mcptrustchecker.com/registry/tejasanik-postgres-mcp-server"><img src="https://mcptrustchecker.com/registry/tejasanik-postgres-mcp-server/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/tejasanik-postgres-mcp-server/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

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

Use the free API → How scoring works

Other implementations of Postgres 38

Independent packages implementing the same tool, scanned with the same engine. Compare all 39 side by side →

More in Databases