Skip to content
PluginStats

@yawlabs/postgres-mcp weekly downloads statistics

By yawlabs (2 listings) · npm · Claude Code

PostgreSQL MCP server, read-only by default: query, schema introspection, EXPLAIN plans, index advisor, and DBA health checks.

View on npm Fresh · Oct 18, 2026

@yawlabs/postgres-mcp has 992 recorded weekly downloads on npm, a decrease of 71.4% over the past 30 days, ranking #1444 of 2,322 tracked listings.

Weekly downloads
992
Official API · Oct 18, 2026
7-day growth
-50.4%
-1K weekly downloads
30-day growth
-71.4%
-2.5K weekly downloads
90-day growth
-49.0%
-955 weekly downloads
Rank
#1444
Among tracked npm listings

About @yawlabs/postgres-mcp

@yawlabs/postgres-mcp

Add to Yaw MCP

One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Or install manually below.

npm version License: MIT

Query a PostgreSQL database from Claude Code, Cursor, and any MCP client. Read-only by default - writes opt in via a single env var - so an agent can't silently drop your tables.

Built and maintained by Yaw Labs.

What's new in 0.12

An index advisor, opt-in audit logging, structured tool output, and support for current-revision MCP clients. Full detail in the CHANGELOG.

  • pg_index_advisor recommends indexes for a workload and keeps only the ones that measurably lower estimated cost. Candidates are costed with HypoPG hypothetical indexes, never created on disk, and the search knows that PostgreSQL 18's skip scan changes which multi-column indexes are useful.
  • Opt-in audit logging of the SQL tools send: one JSON line per audited statement, to stderr or a file. Bound parameter values are never recorded. Off by default, and not a complete record -- see Audit logging.
  • Structured tool output. Every tool declares an outputSchema and returns structuredContent alongside the unchanged text block, so anything reading the text today keeps working.
  • Both MCP protocol eras. The server used to speak only the legacy (2025) protocol revisions, which a client on the current 2026-07-28 revision fails against. It now serves both.

On 0.12.0? Upgrade. 0.12.1 closes a stacked-query hole in pg_index_advisor: SQL passed in its statements argument ran on a protocol that accepts several commands in one string, so SELECT 1; COMMIT; DROP SCHEMA public CASCADE; escaped the read-only transaction. The tool is annotated read-only, so hosts often auto-allow it. The same release stops pg_inspect_locks attributing a lock held in another database to whichever local table shares its OID, fixes the advisor's greedy search, and makes audit lines carry the tool field they were missing.

Coming from 0.10.x? 0.11.0 has three breaking changes: pg_seq_scan_tables, pg_unused_indexes and pg_top_queries return an envelope (read data.rows where you used to read data), pg_explain with analyze: true emits BUFFERS (pass buffers: false for the old output), and Node 22 is the floor. Details in the 0.11.0 changelog entry.

Backstory

Anthropic's reference Postgres MCP server, @modelcontextprotocol/server-postgres, was archived in May 2025 and marked deprecated on npm in July 2025. Anthropic has not shipped a replacement. Despite the deprecation, the last published version (v0.6.2) is still pulled ~20,000 times per week - a lot of agents are pointed at an unmaintained package.

That unmaintained package also has a known, publicly documented stacked-query SQL injection (Datadog Security Labs) that bypasses its BEGIN READ ONLY wrapper with input like COMMIT; DROP SCHEMA public CASCADE;. It has never been patched at npm.

A handful of community forks have appeared, but each fills a narrow slice:

  • @zeddotdev/postgres-context-server - Zed's fork, primarily a security patch on the original shape.
  • Postgres MCP Pro (Crystal DBA) - focused on index tuning and hypothetical-index / buffer-cache diagnostics.
  • AWS Labs Postgres MCP - tied to Aurora / RDS Data API + Secrets Manager.

None of them position themselves as a general-purpose daily driver you'd hand to Claude Code or Cursor against an arbitrary Postgres: modern introspection, perf helpers, role/privilege awareness, and a write-safety posture out of the box. That's the gap @yawlabs/postgres-mcp fills.

Why this one?…

Description from the npm listing.

  • postgres
  • postgresql
  • database
  • mcp
  • mcp-server
  • model-context-protocol
  • ai
  • agent
  • claude
  • claude-code
  • cursor
  • llm
  • sql
  • schema
  • explain
  • dba
  • index-advisor
  • query-optimization
  • ai-agents

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@yawlabs/postgres-mcp weekly downloads on npm, last 90 days: 992 weekly downloads as of Oct 18, 2026, -49.0% over 90 days.@yawlabs/postgres-mcpWeekly downloads on npm · Last 90 days992downloads / week-49.0% over 90 days05K10K15K20K25K30KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@yawlabs/postgres-mcp weekly downloads on npm, last 90 days: 992 weekly downloads as of Oct 18, 2026, -49.0% over 90 days.

7/30/90-day growth

@yawlabs/postgres-mcp weekly downloads growth on npm: -50.4% over 7 days, -71.4% over 30 days, -49.0% over 90 days.@yawlabs/postgres-mcpWeekly downloads growth on npm992downloads / week now7-day growth-1,010 weekly downloads-50.4%30-day growth-2,479 weekly downloads-71.4%90-day growth-955 weekly downloads-49.0%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@yawlabs/postgres-mcp weekly downloads growth on npm: -50.4% over 7 days, -71.4% over 30 days, -49.0% over 90 days.

Ranking history

@yawlabs/postgres-mcp npm ranking history: currently #1444 (by weekly downloads).@yawlabs/postgres-mcpnpm ranking · by weekly downloads · Last 90 days#1444current rank#400#600#800#1000#1200#1400#1600Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@yawlabs/postgres-mcp npm ranking history: currently #1444 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 73, #7 (overall #1,447)
All npm: every listing in weekly downloads order

Listing placement

Claude Code255 listings · 13 pages · page 10, #4 (overall #184)
Claude Code: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (544)
Recent weekly downloads observations for @yawlabs/postgres-mcp
Date (UTC)Weekly downloadsChange vs. previous
992-185
1,177-142
1,319+45
1,274-309
1,583-685
2,2680
2,268+266
2,002+326
1,676-83
1,759-198
1,957-146
2,103-199
2,302-888
3,190—

Similar npm Claude Code plugins

All 20 @yawlabs/postgres-mcp alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@yawlabs/postgres-mcp. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.