⌘

MCP Bridge Postgres

v1.4.2🛡️Tier 1 Security AuditedCLI v2.1.287+ Verified

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

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],
  });
}
Security Audit96/100
Network EgressNone (Zero Socket Egress)
Filesystem ScopeBounded to Workspace
Credential Exposure0 Leaks Detected
Sandbox IsolationHost User Privilege

Technical Specifications

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