⌘

MCP Bridge Postgres

v1.4.2AST Scan: 0 CriticalSource PublicCLI v2.1.287+ Tested

Zero-latency Model Context Protocol bridge connecting Claude Code directly to local and cloud PostgreSQL instances.

@data-flow-team•★1,840 stars•↓8,200 active installs•MIT License
View Source ↗
⚡Installation Specifier
$/plugin install mcp-bridge-postgres@marketplace
ℹUninstall anytime:claude plugin uninstall mcp-bridge-postgres@marketplace

Problem Solved & Architectural Motivation

Bridges standard MCP PostgreSQL servers directly into your terminal workspace. Provides Claude with schema discovery, table relationship graphs, and read-only query analysis without raw psql pipe hacks.

Before Execution

Zero-Time AST Interception

Evaluates tool payloads prior to kernel fork.

Scoring Model

0-100 Impact Index

Weighted heuristic scoring: files touched, git dirty state, env scope.

Non-Intrusive

Native CLI Hook

Zero proxy daemon required; hooks straight into Claude tool calls.

Lifecycle Architecture & Hook Flow

POSIX Event Engine
Step 01
Claude Plan
Prompt Inference
→
Step 02
Tool Call
tool.call Payload
→
HOOK INTERCEPT
mcp-bridge-postgres
<18ms Heuristic
→
Step 04
OS Execution
Kernel Fork

Manifest Schema (plugin.json)

{
  "name": "mcp-bridge-postgres",
  "version": "1.4.2"
}

Hook Implementation (register.js)

TypeScript SDK
export default function bridge(api) {
  api.registerMcpServer('postgres', {
    command: 'npx',
    args: ['-y', '@modelcontextprotocol/server-postgres', process.env.DATABASE_URL],
  });
}
Static Security AuditTested commit e4b91f2
0 Critical
SubprocessesClean (No Exec)
Dynamic Code (eval)Clean (0 eval)
Credential ExposureClean (0 leaks)
Network EgressZero Socket Egress
Filesystem ScopeWorkspace Bound
Read 6-Point Audit Methodology ↗

Static heuristic checks only. Not a formal commercial certification or warranty. Review source before installing.

Technical Specifications

Min CLI Versionv2.1.287+
Categorycommand-extensions
Runtime Overhead< 18ms AST
LicenseMIT
Mod Publisher
@D