CTXFW // CONTEXT FIREWALL
Local MCP firewall that compacts code context with AST pruning and blocks prompt injection.
Tested on Linux
Use it
Linux x86_64
Install ctxfw via uv tool install
uv tool install ctxfw
Check that it works
ctxfw --version 2>&1The output should contain “ctxfw 4.1.1”.
Add it to your agent
claude mcp add ctxfw -- ctxfw mcpJSON for Claude Desktop, Cursor and other clients
{
"mcpServers": {
"ctxfw": {
"command": "ctxfw",
"args": [
"mcp"
]
}
}
}Add ctxfw mcp as an MCP server command in your MCP client, and its tools appear there.
What it does
- Shrink peripheral code into interface stubsTested
How to use it
- Connect your MCP client to the server started with
ctxfw mcp. - Call the
prune_filetool with the path of a source file, for example{"path": "<file>"}. - Use the returned text, which holds the compacted version of the file.
- Connect your MCP client to the server started with
- Block indirect prompt injection attacksNot tested
- Check specs against their axiomsNot shown working
How far pickfit got
Linux x86_64
- Installs
- Connects
- 1 of 3 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- compact peripheral code into interface stubs to reduce tokens
- inspect tool observations for indirect prompt injection
- validate environment readiness with health diagnostic
An alternative to Lakera Guard, Palo Alto Networks Prisma AIRS, Protect AI Guardian and Cloudflare Firewall for AI.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
An MCP client called one of its tools
- Replayed from scratch
- Works offline
- Checked on 31 Oct 2026
- Version 4.1.1
An MCP client handshake over stdio listed 5 tools, and a call to prune_file returned a result.