Skip to content
PluginStats

@microsoft/postgres-mcp weekly downloads statistics

By microsoft (227 listings) · npm · MCP servers

PostgreSQL MCP server for AI assistants over the Model Context Protocol.

View on npm Fresh · Dec 6, 2026

@microsoft/postgres-mcp has 5,684 recorded weekly downloads on npm, a decrease of 86.8% over the past 30 days, ranking #1483 of 3,247 tracked listings.

Weekly downloads
5,684
Official API · Dec 5, 2026
7-day growth
-54.6%
-6.8K weekly downloads
30-day growth
-86.8%
-37.3K weekly downloads
90-day growth
-86.2%
-35.6K weekly downloads
Rank
#1483
▼ 315 in 7 days

About @microsoft/postgres-mcp

Postgres MCP Server

Platforms: Claude | Copilot | Codex | Open Code Postgres: local | on-prem | azure | aws | gcp Release status: Preview

Connect your coding agent to PostgreSQL. postgres-mcp lets you generate queries and run analytics, design database schemas, diagnose performance of the server and queries, securely manage connections, and import data. It is compatible with any MCP client — GitHub Copilot, Claude Code, Codex, Open Code, Cursor, VS Code, and more.

Quick start

1. Save a connection profile

Create a named profile once — the password is stored in your OS keyring, never in a config file:

# add a profile from a libpq URI or key=value string
npx -y @microsoft/postgres-mcp connection add local \
  "postgresql://postgres@localhost:5432/postgres"

# store its password securely (hidden prompt)
npx -y @microsoft/postgres-mcp connection set-password local

# check it
npx -y @microsoft/postgres-mcp connection list

Profiles created by connection add permit write tools unless access_mode: ro is set. For autonomous agents that should not write, use an explicit read-only profile and a read-only database role — see Read-only profiles.

2. Add postgres-mcp to your coding agent

The server speaks MCP over stdio. Point your client at npx @microsoft/postgres-mcp run — no credentials go in the client config; the coding agent discovers and connects to your saved profile at runtime.

GitHub Copilot CLI, Claude Code, Cursor & Claude Desktop — clients that use the mcpServers format (~/.copilot/mcp-config.json, mcp.json, .cursor/mcp.json, claude_desktop_config.json, …):

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@microsoft/postgres-mcp", "run"]
    }
  }
}

Running headless or in CI, without a keyring? The server can also take a database connection string from the environment — see Connecting without a profile in the guide.

3. Ask your coding agent

"List the tables in my PostgreSQL database." "Show me the 10 most recent orders from my PostgreSQL database." "What's slowing down my PostgreSQL server right now?"

The agent calls the server's tools (postgres_mcp_connect, postgres_mcp_query, postgres_mcp_db_context, …) for you.


What it can do

AreaTools
Connectionslist / add / remove profiles, connect, disconnect, list databases
Queryread‑only SQL (postgres_mcp_query), DDL/DML (postgres_mcp_modify)
Schemafetch CREATE scripts for tables, indexes, functions, sequences…
Datadescribe a CSV, bulk‑load a CSV via COPY
Diagnosticsprobe server capabilities, collect performance metric groups

See the usage guide for tools, configuration, authentication (including Microsoft Entra ID), TLS, and the security model.


Security in one minute

  • The server doesn't decide what's allowed — your database does. It just passes requests along to PostgreSQL and runs them as the database user in your connection profile. It can't tell the difference between a request you meant to make and one the AI invented or was tricked into making, so anything that database user can do, the AI can do. What actually protects you is the permissions you give that user, the approval prompts in your MCP client, and the model you choose to run. See Security model for who's responsible for what, plus a checklist for locking things down.
  • postgres_mcp_query is read‑only. Omitted profile access_mode permits write tools; set access_mode: ro and use a read-only database role unless writes are intentionally delegated.
  • Microsoft Entra ID (AAD) is selected automatically for Azure profiles without a stored keyring password. Store a profile password to use password authentication instead.
  • Local file reads (postgres_mcp_bulk_load_csv, postgres_mcp_describe_csv) are limited to the MCP server's startup working directory by default and paths allowed with allow-access-to-path <path>. A file allows only itself; a directory allows recursive access.
  • Secrets are scrubbed from error messages before they leave the process.

See more info about security model in the usage guide.


Requirements

  • Node.js 22+ (to run via npx).
  • Linux x64/arm64, macOS x64/arm64, or Windows x64. Windows ARM uses x64 emulation.
  • A reachable PostgreSQL database — local, Docker, on‑premises, Azure Database for PostgreSQL, Amazon RDS/Aurora, Google Cloud SQL/AlloyDB, or any wire‑compatible server.

Changelog

See CHANGELOG.md for release notes.

License

This repository is a getting started information package. It is licensed under the MIT License © Microsoft. The postgres-mcp project itself is proprietary and its source code is not avialable under MIT license.

Description from the npm listing.

  • postgresql
  • postgres
  • pgsql
  • mcp
  • model-context-protocol
  • database
  • ai
  • copilot

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

@microsoft/postgres-mcp weekly downloads on npm, last 90 days: 5,684 weekly downloads as of Dec 5, 2026, -86.2% over 90 days.@microsoft/postgres-mcpWeekly downloads on npm · Last 90 days5,684downloads / week-86.2% over 90 days010K20K30K40K50K60K70KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@microsoft/postgres-mcp weekly downloads on npm, last 90 days: 5,684 weekly downloads as of Dec 5, 2026, -86.2% over 90 days.

7/30/90-day growth

@microsoft/postgres-mcp weekly downloads growth on npm: -54.6% over 7 days, -86.8% over 30 days, -86.2% over 90 days.@microsoft/postgres-mcpWeekly downloads growth on npm5,684downloads / week now7-day growth-6,839 weekly downloads-54.6%30-day growth-37,261 weekly downloads-86.8%90-day growth-35,646 weekly downloads-86.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@microsoft/postgres-mcp weekly downloads growth on npm: -54.6% over 7 days, -86.8% over 30 days, -86.2% over 90 days.

Ranking history

@microsoft/postgres-mcp npm ranking history: currently #1483 (by weekly downloads).@microsoft/postgres-mcpnpm ranking · by weekly downloads · Last 90 days#1483current rank#400#600#800#1000#1200#1400#1600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 40 observations · Updated Dec 5, 2026pluginstats.com
@microsoft/postgres-mcp npm ranking history: currently #1483 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 75, #3 (overall #1,483)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 18, #13 (overall #353)
MCP servers: 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 (592)
Recent weekly downloads observations for @microsoft/postgres-mcp
Date (UTC)Weekly downloadsChange vs. previous
5,684-586
6,270-566
6,836-572
7,408-440
7,848-1.5K
9,323-1.9K
11,187-1.3K
12,523-2.1K
14,639-3K
17,616-4.9K
22,496-2.5K
25,008-578
25,586-195
25,781—

Similar npm MCP servers plugins

All 20 @microsoft/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/@microsoft/postgres-mcp. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.