Skip to content
mcp-cage: Open-Source Security Firewall for AI Coding Agents and MCP Servers

mcp-cage: Open-Source Security Firewall for AI Coding Agents and MCP Servers

First seen 30 Nov 2026, 03:20 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 30, 2026 at 03:21 UTC
  • •mcp-cage is an open-source, zero-dependency Python firewall that wraps MCP servers and agent lifecycle hooks for AI coding tools.
  • •The project targets the 'Lethal Trifecta' pattern: private data access, untrusted content ingestion, and external egress in one agent session.
  • •Claimed capabilities include secret scrubbing for 11+ credential types, tool schema pinning, and blocking of sampling hijacks.
  • •The reporting describes a product release and educational material; no active exploitation or affected-user incident is reported.
  • •Effectiveness claims are the project's own and have not been independently verified in these sources.

mcp-cage is a Python package (version 0.4.3.post16, published to PyPI) that presents itself as a security firewall for AI coding agents including Claude Code, Cursor, OpenAI Codex CLI, Gemini CLI, Google Antigravity, and Claude Desktop.

The project describes its design as a zero-dependency, Python 3.10+ standard-library tool that wraps stdio MCP servers and plugs into native agent lifecycle hooks.

Its stated purpose is to address the risk when an agent combines access to private data, ingestion of untrusted content, and external egress in one session, which the project calls the 'Lethal Trifecta'.

The project claims to scrub more than 11 credential classes from MCP traffic, pin tool schemas via an mcp-lock.json file, block sampling/createMessage hijacks, and share a cross-process SQLite WAL taint and secret store across hooks.

The project's own pages describe it as addressing indirect prompt injection and poisoned MCP tool definitions, citing MCPTox and CVE-2025-54135 (CurXecute) as examples of the threat.

The articles do not report any attack or incident affecting users; the content is a product description and educational material. The articles do not state any measured effectiveness of the tool.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini
Updated 14h ago How this analysis works

Timeline

2025-08-05
CVE-2025-54135 published
Vulnerability assigned a CVE identifier and published in the National Vulnerability Database.
MITRE
2026-11-30
mcp-cage 0.4.3.post16 published on PyPI
The package listing describes a security firewall for Claude Code, Cursor, Codex, Gemini CLI and MCP servers.
Pypi
2026-11-30
Educational overview page published
The project site describes two-door attack patterns between MCP tools and native hooks and how mcp-cage addresses them.
nagarajulu.github.io

More articles in this cluster (5)

Following this threat?

Track Cursor and CVE-2021-42574 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Is there an active threat that this tool responds to?
The sources cite prompt injection and poisoned MCP tool definitions, including CVE-2025-54135, as background risks. The articles do not report a specific active campaign tied to this release.
Does mcp-cage have independently verified effectiveness?
The articles contain only the project's own claims about its features. No third-party testing or audit is referenced.
What should a defender do with this information?
Evaluate the package's source code and claims before deployment, and treat it as one control alongside existing MCP server and agent permission reviews.