原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Ctxfw

作者:heuristicolab版本 4.1.1i★ –i在你的电脑上运行
注册名称io.github.heuristicolab/ctxfw

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "ctxfw": {
      "command": "uvx",
      "args": [
        "ctxfw",
        "mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add ctxfw -- uvx ctxfw mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "ctxfw": {
      "command": "uvx",
      "args": [
        "ctxfw",
        "mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "ctxfw": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ctxfw",
        "mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 heuristicolab 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32709 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32709 个服务器的 74% 更新
  • 基础检查结果等于或优于此分类中其他 32709 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Ctxfw 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(4.1.1)于12天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, SwarmMemo

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

SwarmMemo

作者:Hugo0

Talk with agent swarms: rooms, private messages and paid tasks for AI agents

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

CTXFW // CONTEXT FIREWALL

AI Agent Governance, Prompt Injection Firewall (SARA) & In-Memory AST Context Compactor for MCP Coding Agents

-10b981?style=for-the-badge)

The deterministic Zero-Egress boundary between probabilistic LLM hallucination, indirect prompt injection, and production infrastructure.

Installation • Benchmarks • CTXFW vs. Cloud WAFs • Diagnostic • Architecture • Enterprise Governance

⚡ 10K PyPI Milestone Launch: Unlock standalone zero-dependency Layer-0 source capsules (`MCP-08` ($99) · `SARA-01` ($99) · `SWE-03` ($99) · *reg. $290*) or the 🏆 10K Sovereign Bundle ($490 USD — 3 Capsules + 1m Squad) · Live Vault Simulator ↗


Executive Abstract

Autonomous coding agents (Claude, Gemini, Cursor, Antigravity) consume massive context windows with bloated peripheral dependencies, triggering token exhaustion, context drift, and security degradation.

CTXFW is an open-core context firewall and Model Context Protocol (MCP) gatekeeper. It combines an in-memory polyglot AST pruner with a deterministic axiomatic intake sieve:

  1. Compacts Peripheral Code (72.4% token reduction): Replaces distance-1 and distance-2+ module implementations with clean interface signatures, type definitions, and functional stubs.
  2. Enforces Axiomatic Integrity (ACI $\ge$ 0.9000): Rejects ungrounded or deficient architecture briefs missing negative invariants ($N \ge 5$), bounded variable domains, deterministic state machines, or formal error taxonomies.
  3. Zero Telemetry Egress: Guaranteed local execution with zero network telemetry leakage on standard operating mode.

AST Pruning Benchmarks

CTXFW operates directly at the syntax tree layer using native polyglot grammars:

Benchmark DimensionRaw Context IngestionCTXFW Topological CompactorPerformance Gain / Impact
Token Consumption100% (Raw Files)27.6% (Interface Stubs)72.4% Bloat Eliminated
Engine Compaction Overhead—Native in-memory parser< 5.0 ms
Warm Cache Hit Overhead—SQLite WAL semantic cache< 0.8 ms
Stdio Telemetry EgressUnsanitized stdoutPure isolated JSON-RPCZero Egress (100% Isolated)
Axiom Verification Latency—Sieve evaluation< 12.0 ms
CI/CD Pre-Commit Latency—Headless git sentry< 85.0 ms
Empirical Case Study: ctxfw/cli.py Core Dependency Graph

Empirical context reduction metrics generated via ctxfw.resolve_context_bundle running against 16 internal dependencies:

DimensionRaw Context IngestionCTXFW Topological SievePerformance Delta
Total Context Size49,096 tokens20,014 tokens-59.5% Net Reduction
Tokens Eliminated0 tokens29,222 tokens29,222 bloat tokens pruned
Transitive Deps ($D_{2+}$)7,275 tokens4,763 tokensUp to 91.9% reduction
FinOps Cost ImpactBase CostReduced by $0.0877 USD / prompt~$87.70 USD saved per 1K calls
AST Compaction Latency—1,407.96 msIn-memory Tree-Sitter parsing
Attestation IntegrityNoneSHA-256 sealedStrict interface preservation

Topological Hierarchy Breakdown:

  • $D_0$ Target (`ctxfw/cli.py`): 100% Full Implementation preserved.
  • $D_1$ Direct Deps (e.g. `gatekeeper.py`, `mcp.py`): Implementation truncated to typed stubs (...). Token savings: 73% – 86%.
  • $D_2$ Transitive Deps (e.g. `polyglot.py`): Compact typed interface signatures. Token savings: 91.9%.
  • $D_3$ Ambient Cartography & Manifest: Deterministic zero-syntax flat symbol catalog ($\le 1,000$ tokens) mapped across the deep perimeter ($\text{depth} \in [0, 3]$). Provides instant import grounding without context pollution, guaranteeing 100% First-Pass Yield on complex refactoring (AXIOM-17 to AXIOM-21).
The Empirical Validation Trilogy (Multi-Repository Destructive A/B)

Audited on remote Linux environments (root@isolated-runner, Ubuntu 24.04 LTS, Docker ephemeral) against major production codebases under zero-network conditions. Full forensic dossier: docs/benchmarks/TRILOGY_EMPIRICAL_BENCHMARK.md.

Target RepositoryArchitectural ArchetypeActive Focal $D_0$Peripheral Perimeter $D_1$Raw Context ($D_0 + D_1$)Pruned Context ($D_0 + D_1^*$)$D_1$ Perimeter SavingsAggregate Context SavingsMCP LeaksSyntactic AST PassLatency / Throughput

| [`zulip/zulip`](https://github.com/zulip/zulip) | Coupled Django Monolith | users.py (12.9k tok) | realms.py, clients.py, prereg_users.py (16.8k tok) | 29,689 | 22,481 | -42.96% *(Interface)* -78.20% *(Nominal)* | -24.28% *(Interface)* -44.20% *(Nominal)* | 0 B | 100% PASS | 44.1 ms ~380k tok/s | | [`PostHog/posthog`](https://github.com/PostHog/posthog) | Modern COSS / Data OS | team.py (14.3k tok) | organization.py, user.py, project.py (20.6k tok) | 34,894 | 22,637 | -59.53% *(Interface)* | -35.13% *(Interface)* | 0 B | 100% PASS | 50.2 ms ~410k tok/s | | [`apache/airflow`](https://github.com/apache/airflow) | Async Orchestration Monorepo | dag.py (9.4k tok) | baseoperator.py, taskinstance.py, dagrun.py (60.4k tok) | 69,861 | 29,433 | -66.90% *(Interface)* -90.26% *(Nominal)* | -57.87% *(Interface)* -78.08% *(Nominal)* | 0 B | 100% PASS | 138.2 ms 437,351 tok/s |

Key Empirical Highlights:

  • Compression Scaling ($43\% \to 60\% \to 67\%$): Larger real-world codebases yield greater perimeter reduction ($60.4\text{k} \to 20.0\text{k}$ tokens in Airflow D1, eliminating 40,428 bloat tokens net).
  • Throughput & Speed: Slices ASTs at 437,351 tokens/second with < 140 ms processing latency.
  • Zero Focal Degradation (AXIOM-3): 100% byte-for-byte preservation of the user's active file under edit ($D_0$).
  • Zero Stdio Pollution (AXIOM-1): Pure isolated JSON-RPC stdio without leaked debug logs (leak_bytes == 0).

AI Agent Governance & Prompt Injection Defense: CTXFW vs. Cloud Runtime WAFs

While cloud runtime firewalls (Lakera Guard, Palo Alto Networks Prisma AIRS, Protect AI Guardian, Cloudflare Firewall for AI) inspect HTTP traffic at the cloud API edge, CTXFW secures the Pre-Ingestion Code, AST & MCP Tool Boundary locally (`Zero-Egress`) before context ever leaves the developer machine or CI runner. Full comparative dossier: docs/benchmarks/SECURITY_VS_CLOUD_WAFS.md.

Capability / Security DimensionCTXFW (`Context Firewall v4.1.0`)Lakera Guard (Check Point)Palo Alto Prisma AIRSProtect AI / Cloudflare AI WAF
Enforcement BoundaryPre-Ingestion Local AST & MCP Tool `stdio` / ProxyCloud HTTP Prompt APICloud Network & Runtime APICloud Edge / ML Inference Proxy
Code & Data Sovereignty100% Zero-Egress (Air-Gapped Local RAM & SQLite WAL)Requires Cloud API EgressCloud / Appliance InspectionCloud Proxy Egress
Indirect Prompt Injection (`MCP` / Tools)Deterministic `ctxfw.sara`: 100.0% Recall / 0.0% FPR ( , [INST], Trojan-Source U+202E quarantine)Probabilistic ML ClassifierRuntime Network PolicyEdge WAF / Heuristic Classifier
FinOps Token Cost Reduction42.96% – 90.26% $D_1$ AST Bloat Pruned (~$87.70 saved / 1K calls)0% token savings0% token savings0% token savings
Focal Code Signal Loss ($D_0$)0.00% Loss (`AXIOM-3`: 100% byte-for-byte $D_0$ preservation)N/A (Pass-through)N/A (Pass-through)N/A (Pass-through)
Inspection Latency (P50 / P95)0.33 ms P50 / 1.72 ms P95 (SARA) · < 0.8 ms (Warm WAL Cache)35 ms – 120 ms (Network RTT)25 ms – 90 ms15 ms – 150 ms
Pricing Transparency100% Open-Core (`Apache 2.0` Free CLI/MCP) + Public Fixed Pricing (`$99` 10K Launch Capsule · `$490` 3-Capsule Bundle · `$199/mo` Squad)Opaque Enterprise Quote (*"Contact Sales"*)Opaque Enterprise Contract (*"Contact Sales"*)Bundled Enterprise Add-on
Deployment Complexity1 Command (< 10s): pipx install ctxfw && ctxfw initSDK wrapper + API keysTLS decryption + routingDNS / Proxy routing

Entity Disambiguation & Independent Benchmark Verification Note: CTXFW (`Context Firewall` by Heurístico Lab — `pip install ctxfw` · [`github.com/heuristicolab/ctxfw`](https://github.com/heuristicolab/ctxfw) · [`heuristicolab.com`](https://heuristicolab.com)) is an open-core Python/Tree-Sitter AST & MCP governance engine. It is not affiliated with ContextWall (contextwall.io). Every CTXFW token-reduction (-59.5% on ctxfw/cli.py, -66.90% $D_1$ on apache/airflow, -72.4% interface stub compaction) and security recall (100.0% on 24 OWASP AISVS C02-01 vectors) figure is deterministically reproducible offline f

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx