2026-11-26 15:39 UTC

MCP-Sentry v2.0 offers a claimed security proxy for MCP tools

state: seedheat: mediumuncertainty: mediumrelevance: mediummcp-security agent-toolingMCP-Sentry

What is this?

MCP-Sentry v2.0 is a maintainer-published open-source proxy for Model Context Protocol (MCP) traffic, presented on GitHub by the project maintainer, yepinggu66, and promoted in a Show HN post on November 20, 2026. The repository describes a zero-external-dependency gateway for stdio and HTTP MCP connections, with policy checks, secret redaction, human approval gates in HTTP mode, loop limits, and tamper-evident audit logging. Its documentation reports 24/24 attack vectors blocked and 0.031 ms average latency, but those figures come from the project’s own benchmark and tests; no independent validation or adoption evidence is supplied. The post’s text is empty, so the feature and performance details rest on the linked repository.

Why it matters

If it works as described, MCP-Sentry could add a deployable security and oversight layer between AI clients and tools that can access files, databases, shells, and APIs. That matters as agent workflows gain practical power: policies, approval gates, and audit trails could make some tool use safer to deploy and easier to inspect. But the evidence here establishes a published project and its maintainer’s claims, not how well it handles real-world attacks or operational trade-offs.

Current assessment

New: the maintainer’s repository presents MCP-Sentry v2.0 as available to install and use, including commands and client configuration examples for wrapping local stdio servers and proxying remote HTTP servers. It claims bidirectional JSON-RPC inspection, policy controls, detection of suspicious tool descriptions and schema changes, secret redaction and cross-server taint blocking, configurable human approvals, loop and budget limits, and hash-chained, HMAC-signed audit logs. The project reports a 24-vector test suite with 24/24 blocked and 0.031 ms average latency; treat both security coverage and performance as maintainer-reported, not independently demonstrated. The supplied search results offer no clear independent assessment of this specific project, and do not establish production use, broad compatibility, or the effectiveness of its detection rules against novel attacks. Practical significance is potential: an intermediary guardrail could give developers and organizations more control over tool-using agents without changing each server, but deployment still requires trust in the proxy, careful policy configuration, and testing against the organization’s threat model.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 165h
points/hour across evidence Β· reading as of 2026-11-27 02:23:58.509736+11:00 Β· deterministic, not a model opinion

How the heat travelled

11-19 19:26 (minted)⭐ origin echo-reconstructedThe GitHub repository README is the primary artifact: β€œMCP-Sentry v2.0 β€” Zero-Trust Security Gateway & Firewall for Model Context Protocol (
yepinggu66 (GitHub account pingguye) on github (echo) Β· attributed from hn.story.50564180 Β· published time unknown
β€”
11-19 18:36first on hacker news Β· published Β· lag ?Show HN: MCP-Sentry v2.0 – Zero-dependency firewall and audit proxy for MCP
pingguye
β€”
11-19 18:36amplified on hacker news πŸ‘‘hn.story.50564180
pingguye
peak 1 Β· 0 comments Β· 103% of case engagement
11-19 19:22our radar first saw it Β· lag ?discovery anchor: hn.story.50564180β€”
pace: p14 vs 2105 stories at the 96h mark (now 165h old) β€” behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: MCP-Sentry v2.0 – Zero-dependency firewall and audit proxy for MCP
Retrieved article excerpt

Open article Β· Retrieved 2026-11-19T19:23:45.331157+00:00

# πŸ›‘οΈ MCP-Sentry v2.0 β€” Zero-Trust Security Gateway & Firewall for Model Context Protocol (MCP)

> **Zero external dependencies. Sub-millisecond latency (0.031 ms avg). Bidirectional JSON-RPC 2.0 interception for Claude Desktop, Cursor, Windsurf, and Enterprise MCP Servers.**

[Version](https://github.com/yepinggu66/mcp-sentry/releases)
[Zero Dependencies](https://github.com/yepinggu66/mcp-sentry#quick-start)
[Benchmark](https://github.com/yepinggu66/mcp-sentry#24-vector-red-team-benchmark)
[License: MIT](https://github.com/yepinggu66/mcp-sentry/blob/main/LICENSE)

---

## Why MCP-Sentry?

AI Agents using MCP (`stdio` or `Streamable HTTP`) have direct access to your local shell, databases, filesystem, and external APIs β€” with **zero native security boundary**. A single poisoned third-party MCP server or stuck agent loop can:

- **Steal `~/.ssh/id_rsa`, `.env`, and AWS/OpenAI keys** via hidden Tool Poisoning instructions in `tools/list`.
- **Silently mutate tool definitions after you approve them** (Rug-Pull attacks).
- **Exfiltrate sensitive files** across servers (read secret via Server A β†’ send out via `fetch`/email on Server B).
- **Burn $500+ in API credits overnight** in an infinite tool-retry loop.
- **Execute destructive `rm -rf /` or `DROP TABLE`** with no human confirmation or audit trail.

**MCP-Sentry v2.0** sits transparently between your AI client and any MCP server β€” blocking attacks in **< 0.1 ms** with **zero code changes**.

---

## Architecture

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Claude / Cursor / Windsurf β”‚
β”‚   or Enterprise AI Agent    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ JSON-RPC 2.0 (stdio OR Streamable HTTP)
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    MCP-SENTRY v2.0 GATEWAY                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Inbound (C -> S)    β”‚  β”‚ Outbound (S -> C)            β”‚  β”‚
β”‚  β”‚ β€’ Policy-as-Code    β”‚  β”‚ β€’ Tool Poisoning Scanner     β”‚  β”‚
β”‚  β”‚ β€’ Destructive/SQLi  β”‚  β”‚ β€’ Rug-Pull SHA-256 Lock      β”‚  β”‚
β”‚  β”‚ β€’ Cross-Server DLP  β”‚  β”‚ β€’ Secret Auto-Redaction      β”‚  β”‚
β”‚  β”‚ β€’ Taint Enforcement β”‚  β”‚ β€’ Session Taint Marking      β”‚  β”‚
β”‚  β”‚ β€’ Loop & Cost Cap   β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚  β”‚ β€’ HITL Approval UI  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚ Cryptographic Audit Ledger   β”‚  β”‚
β”‚                           β”‚ SHA-256 Chain + HMAC + SQLiteβ”‚  β”‚
β”‚                           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ Safe, Inspected JSON-RPC 2.0
               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Any Local or Remote MCP   β”‚
β”‚  (Postgres, GitHub, Bash…)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

---

## Key Capabilities (Production-Grade, Zero Mock)

1. **Dual-Transport Bidirectional Proxy (`stdio` + `HTTP`)**
   - Wrap any local `stdio` MCP server in 1 line: `mcp-sentry wrap -- npx @modelcontextprotocol/server-postgres`
   - Reverse-proxy remote HTTP MCP servers with a built-in **Live Wireshark-style Firewall Dashboard** (`/sentry/ui`).
2. **Real OWASP MCP Threat Engine**
   - **Tool Poisoning Defense**: Detects hidden `<IMPORTANT>`/`<SYSTEM>` tags, stealth exfil directives, and invisible Zero-Width / BiDi Unicode smuggling in `tools/list`.
   - **Rug-Pull / Schema Drift Hash-Lock**: Pins SHA-256 fingerprints of every tool's `name + description + inputSchema` on first sight and blocks post-approval mutation.
   - **Cross-Server Taint Tracking & DLP**: Scans responses for OpenAI/Anthropic/AWS/GitHub/Stripe/PEM/JWT/DB-URI secrets, **redacts them in-flight**, taints the session, and blocks subsequent outbound network tools (`fetch`, `curl`, `send_email`).
   - **Destructive Command & Path Traversal Blocker**: Blocks `rm -rf`, `DROP TABLE`, `TRUNCATE`, `curl | bash`, reverse shells, and `../` traversal.
3. **Human-in-the-Loop (HITL) Approval Gate**
   - In HTTP proxy mode, high-risk tools (`execute_sql`, `run_command`, `transfer_funds`) are suspended in real time until an operator clicks **APPROVE** or **DENY** in the live dashboard.
4. **Deterministic Infinite-Loop & Budget Circuit Breaker**
   - Halts runaway identical tool-call retry loops and enforces per-minute / per-session hard caps.
5. **Tamper-Evident Cryptographic Audit Ledger (SOC2 / EU AI Act Ready)**
   - Every allow/block/redact decision is hash-chained (`SHA-256`) and signed (`HMAC-SHA256`) into both JSONL and SQLite. Verify zero tampering anytime with `mcp-sentry audit --verify`.
6. **Hot-Reloaded Policy-as-Code (`sentry.yaml`)**
   - Edit tool whitelists, denied paths, allowed domains, and HITL gates without restarting the gateway.

---

## Quick Start

### 1. Install

```
git clone https://github.com/yepinggu66/mcp-sentry.git
cd mcp-sentry
pip install -e .
```

### 2. Run the Built-in 24-Vector Red-Team Benchmark

```
mcp-sentry bench
```

### 3. Wrap Any MCP Server in Cursor / Claude Desktop (`mcp.json`)

```
{
  "mcpServers": {
    "postgres-guarded": {
      "command": "mcp-sentry",
      "args": ["wrap", "--policy", "sentry.yaml", "--", "npx", "-y", "@modelcontextprotocol/server-postgres", "postgresql://..."]
    }
  }
}
```

### 4. Run HTTP Reverse Proxy + Live Firewall & HITL Dashboard

```
mcp-sentry init
mcp-sentry proxy --upstream http://127.0.0.1:9000/mcp --port 8787 --policy sentry.yaml
# Open http://127.0.0.1:8787/sentry/ui
```

### 5. Verify Cryptographic Audit Chain

```
mcp-sentry audit --verify
```

---

## 24-Vector Red-Team Benchmark

Verified directly via `mcp-sentry bench` and `python -m unittest discover -s tests -v`:

| Category | Attack Vectors Tested | Block Rate | Avg Latency |
| --- | --- | --- | --- |
| Tool Poisoning & Unicode Smuggling | Hidden `<IMPORTANT>` exfil, Zero-Width BiDi, stealth directives | **3 / 3 (100%)** | 0.042 ms |
| Rug-Pull Schema Drift | Post-approval SHA-256 tool mutation | **1 / 1 (100%)** | 0.015 ms |
| Destructive & Shell/SQL Injection | `rm -rf /`, `DROP TABLE`, `TRUNCATE`, `curl|bash`, reverse shell, `base64|sh` | **6 / 6 (100%)** | 0.017 ms |
| Secret Theft, DLP & Path Traversal | `.env`, `~/.ssh/id_rsa`, `../`, OpenAI/AWS/GitHub/PEM/Postgres URI | **8 / 8 (100%)** | 0.016 ms |
| Response Redaction & Taint Exfil | In-flight AWS/OpenAI masking + cross-server outbound block | **2 / 2 (100%)** | 0.038 ms |
| Domain Firewall, HITL, Loop & Ledger | Domain deny, HITL suspension, 4th-call loop trip, 1-byte tamper detection | **4 / 4 (100%)** | 0.074 ms |
| **TOTAL** | **24 Real MCP Attack Vectors** | **24 / 24 (100.0%)** | **0.031 ms** |



---

## Live Interactive Sandbox & Enterprise Licensing

- **Online Security Sandbox**: <https://pingguye.cn/stackverdict/agentwall>
- **Commercial / Enterprise License & Source Code Buyout**:
  - Need custom SSO/RBAC, multi-tenant Slack/Teams HITL approval bots, SIEM/OTLP pipelines, or full commercial IP licensing?
  - Contact: **[email protected]**
pingguye10
🟧 echo.github ⭐The GitHub repository README is the primary artifact: β€œMCP-Sentry v2.0 β€” Zero-Trust Security Gateway & Firewall for Model Context Protocol (yepinggu66 (GitHub account pingguye)β€”β€”

Interpretation history

Decision trace