mcpbeat Sign in

Ctxfw MCP Server

local only

Ctxfw runs on your own machine — the client starts it, so there is no endpoint to ping. 343 installs a week from pypi. Last commit 6 Nov 2026.

Zero-egress AI Agent Firewall: SARA prompt injection defense, AST context pruning & MCP governance.

Installs per day peak 328 · avg 91 · -52% w/w
a month agotoday
343
Installs / week
pypi · ctxfw
7
Stars
0 open issues
6 Nov 2026
Last commit
from GitHub
Apache-2.0
License
Python

What the code does

We read the source, 23 h ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

        p = subprocess.run(cmd, shell=True, capture_output=True, text=True)
    r"|(?<![a-zA-Z0-9_./-])(?:\.env(?:\.[a-zA-Z0-9_-]+)?|\.ssh/[a-zA-Z0-9_.-]+|\.aws/[a-zA-Z0-9_.-]+))",

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add ctxfw -- uvx ctxfw
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ctxfw": {
      "command": "uvx",
      "args": [
        "ctxfw"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.ctxfw]
command = "uvx"
args = ["ctxfw"]
.cursor/mcp.json
{
  "mcpServers": {
    "ctxfw": {
      "command": "uvx",
      "args": [
        "ctxfw"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "ctxfw": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ctxfw"
      ]
    }
  }
}

Alternatives to Ctxfw

same job, measured the same way
AI Firewall MCP
by akhilucky

Multi-agent LLM security layer detecting prompt injection and jailbreaks.

167 installs/wk local only
Injectshield
by bch1212

Prompt-injection firewall for AI agents — scan untrusted text before LLM calls.

42 installs/wk local only
Trentina
by crunchtools

Secure MCP gateway and quarantine for AI agent traffic — three-layer prompt injection defense

347 installs/wk local only
Tork Governance
by torkjacobs

AI agent governance for MCP: PII detection, policy enforcement, compliance, and kill switch.

60 installs/wk local only
sqz
by ojuschugh1

Pre-injection context compression for coding agents. Zero LLM calls, zero telemetry, offline-safe.

local only
MCP Output Firewall
by tangfei7777-cell

Three-layer firewall for MCP: content, egress and action policy. Proxy or server.

50 installs/wk local only
Gsep MCP
by gsepcore

AI agent security via MCP: C3 firewall, C4 immune system, C5 action guard, self-evolving prompts.

87 installs/wk local only
Zyrax Guard
by tiagosilva07

Audit AI agent configs for prompt injection & rogue MCP servers; vet packages

75 installs/wk local only

Ctxfw — questions

Answers built from our own checks of this server.

Why is there no uptime for Ctxfw?
Ctxfw runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package ctxfw was installed 343 times last week.
How do I connect Ctxfw?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls ctxfw straight from pypi; nothing to host, nothing to sign up for.
How many people use Ctxfw?
The pypi package ctxfw was installed 343 times in the last week. Week over week that is -52%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Ctxfw open source?
Yes — it is published under the Apache-2.0 licence, written in Python and 7 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.