Agent Verify

Is @modelcontextprotocol/server-postgres safe?

MCP server for interacting with PostgreSQL databases

Review before useVersion 0.6.2 · checked November 2, 2026

This server can change things — files, a browser, a database, or paid online services. Limit what it can reach.

Why: queries a database.

What it can do

  • Queries a database

Tools it offers your AI (1):

  • query

How to use it safely

  • ✓ Give it a read-only database user unless writes are required.
  • ✓ Pin the version (below) so an update can't change what it does without you noticing.

Code patterns worth reviewing

No risky code patterns matched in the files we read (1).

Install it pinned

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres@0.6.2"]
    }
  }
}

npm · MIT license · 166,350 downloads last week

Check your whole MCP setup

Agent Verify checks the servers in your Claude, Cursor and VS Code config — including whole-drive access and keys stored in plain text.

Check my setup free

Maintain @modelcontextprotocol/server-postgres?

Show users you've thought about access: add the badge below. If something here is wrong or you've released a fix, ask for a re-scan — we update pages on request.

[![Agent Verify: Review before use](https://img.shields.io/badge/Agent%20Verify-Review%20before%20use-orange)](https://aimodularity.com/agentverify/mcp/modelcontextprotocol-server-postgres/)

Agent Verify reads the package published on npm as text — it is never installed or run. Ratings describe capability, not intent, and are an automated, evidence-based check, not a guarantee. Scanner 2.0.0.