74
/ 100
1 month ago
glama

pg-mcp

Enables AI assistants to query PostgreSQL databases, inspect schemas, and retrieve complete DDL with built-in read-only protection. It supports multiple database connections and allows for secure database interaction and exploration via the Model Context Protocol.

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.

Install from

M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.

// key findings
⚠️
Known vulnerabilities in dependencies: 2 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
Open source with a license and README
Anyone can audit the code, the license is declared, and the publisher documents what it does.
// known CVEs in dependencies2 high

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

high@modelcontextprotocol/sdk@1.0.0GHSA-8r9q-7v3j-jr4g

Anthropic's MCP TypeScript SDK has a ReDoS vulnerability

high@modelcontextprotocol/sdk@1.0.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// required environment variables
This server reads these from process.env. You'll be asked to provide them before it can run.
configDATABASE_URL"": "postgres://user:pass@localhost:5432/mydb"
configPGDATABASEWith DATABASE_URL or PGHOST/ set, the server auto-connects as "default" on startup.
configPGHOSTWith DATABASE_URL or /PGDATABASE set, the server auto-connects as "default" on startup.
configPG_MCP_READ_ONLYSet =false in env to allow write operations (read-only by default).
// full audit trail
The full breakdown of what we checked, the deductions that landed, the network hosts, the dependency advisories, and concrete fix guidance is available to verified publishers.
// improvement guidance — verified publishers only
We have 1 concrete improvement we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Score](https://m8ven.ai/badge/mcp/shedyhs-pg-mcp-if75u6)](https://m8ven.ai/mcp/shedyhs-pg-mcp-if75u6)
commit: 340564dfcdbfd44984a9e9a82ac95bb403a3a41c
code hash: 813ad70a921266761a404d8a32c2a248380f11b031e0bb98a6686c16f08b2a78
verified: 6/12/2026, 11:21:28 AM
view raw JSON →