ctxfw

ctxfw is a MCP server by heuristicolab that deterministic Layer-0 AST context firewall and zero-egress local stdio MCP gatekeeper for AI coding agents (-42.9% to -90.2% peripheral tokens via Tree-sitter, SARA indirect.

Updated 2026-12-01

What is ctxfw?

ctxfw is a MCP server by heuristicolab that deterministic Layer-0 AST context firewall and zero-egress local stdio MCP gatekeeper for AI coding agents (-42.9% to -90.2% peripheral tokens via Tree-sitter, SARA indirect. It is listed under Developer tools and has 8 GitHub stars.

TypeMcp server
Authorheuristicolab
Repositoryheuristicolab/ctxfw
Popularity8 GitHub stars
CategoryDeveloper tools
SecurityLow risk (96/100)
Rank#2,040 of 5,098 MCP servers; #443 in Developer tools
LicenseApache-2.0
Last commit2026-12-01
RunsLocally
LanguagePython
PlatformsmacOS, Windows, Linux

Is ctxfw safe to install?

ctxfw scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 5 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Published by the service itselfPass
Runs on your machine onlyPass
Needs an API key or account loginNote
Read-only by descriptionPass
No code executionPass
Source on GitHubPass

How do I install ctxfw?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/heuristicolab/ctxfw
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add ctxfw -- <command from README>
    claude mcp add --transport http ctxfw <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs ctxfw for you:

Add the "ctxfw" MCP server from https://github.com/heuristicolab/ctxfw to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.