Zero-egress AI Agent Firewall: SARA prompt injection defense, AST context pruning & MCP governance.
MCPpedia last refreshed this data
io.github.heuristicolab/ctxfw is an MCP server that zero-egress AI Agent Firewall: SARA prompt injection defense, AST context pruning & MCP governance. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 59/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-heuristicolab-ctxfw": {
"args": [
"ctxfw"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Zero-egress AI Agent Firewall: SARA prompt injection defense, AST context pruning & MCP governance.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'ctxfw' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked ctxfw against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in security / ai-ml
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for io.github.heuristicolab/ctxfw and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Local firewall and Tree-sitter AST pruner for AI coding agents.
Strips indirect prompt injections from untrusted MCP tool outputs and compacts peripheral dependencies into typed interfaces before context hits your LLM.
No cloud proxy · No vector DB · No telemetry · Pure local stdio
| -70.4% AST tokens pruned (80-mod core) | 0.87 ms P50 prompt-injection check | 0 / 571 leaks on live HTTP fuzzer | 0 B outbound code egress | 743 / 743 offline tests (v4.2.3) |
Quickstart • How It Works • Empirical Benchmarks • MCP & CLI Reference • Architecture • Editions • Docs Index • Changelog
pip install ctxfw # Core MCP server, prompt-injection firewall & CLI (Python 3.10-3.13)
pipx install ctxfw # Isolated CLI install
pip install "ctxfw[polyglot,proxy]" # Add TypeScript/Go/Java Tree-sitter + loopback proxy
Standalone zero-Python executables (v4.2.3) for Linux, macOS, and Windows are published on GitHub Releases.
Configure Claude Code, Claude Desktop, Cursor, and Windsurf in one idempotent command (.bak.<timestamp> backups created automatically):
ctxfw init # Auto-detect and wire installed IDEs
ctxfw install --claude # Wire Claude Code / Desktop specifically
ctxfw init --repo . # Install deterministic pre-commit specification gate
ctxfw doctor # Verify installation & local SQLite WAL integrity
Reusable Agent Skill (SKILL.md) and guided walkthroughs for Claude Code, Cursor, and Antigravity: skills/ctxfw/SKILL.md · AGENTS.md · CLAUDE.md.
For non-MCP agents (Aider, OpenCode Interpreter, Continue.dev), start the local loopback proxy:
ctxfw proxy --port 8765
export ANTHROPIC_BASE_URL="http://localhost:8765/v1"
export OPENAI_BASE_URL="http://localhost:8765/v1"
Coding agents fail in predictable ways when reading unfiltered repositories