Open-Source Local Firewall for MCP

Simple-Factor-2165 · reddit · 2026-07-14

A developer has created MCP-Shield, an open-source local firewall designed to protect AI agents' MCP tool calls.

The core pain point: once an agent gets shell or tool permissions, it can be tricked by a single prompt injection into executing unintended actions. Existing permission systems often rely on the client, so the author chose to build a local proxy one layer below the MCP transport layer.

Design goals:

The author explicitly states this doesn't "solve" prompt injection; if an attacker operates entirely within tools you already trust, the proxy can only do so much. However, it provides a unified layer of protection for clients like Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and Codex CLI.

Project commitments:

Original post →

More from coding & agent

coding & agent channel →