MCP server · Developer tools · official
CTXFW MCP server
by heuristicolab · official
Gives your AI a local safety and tidying helper that trims code context and screens tool output for sneaky instructions.
CTXFW is a small helper program you install on your own computer. It sits between your AI coding assistant and your project, trimming the code your AI reads and checking anything coming back for hidden instructions. It is handy for developers who use AI to edit code and want to keep their files private and their token costs down.
What is an MCP server? The 30-second version
On its own, your AI can only chat with you. An MCP server is a small helper program that gives your AI a new skill or a connection to something else. This one connects your AI to a local safety and tidying tool for your code, so the AI can ask it to trim a file, check a patch, or look up past decisions. Everything stays on your machine, and nothing is sent to a cloud service.
What this MCP server does
You ask your AI to work on a file in your project. The AI calls this helper, which reads the file and its nearby dependencies and strips out the parts that are not needed. It also checks any text coming from tools or documents for hidden instructions that could trick the AI. Then it hands back a shorter, safer version of the code or a clear allow or reject answer. Every decision is written into a local log on your computer.
What you can do with it
- Trim a code file and its dependencies down to a shorter version before your AI reads it
- Build a compact map of the files your target file depends on
- Check a proposed code change against simple size and quality rules
- Screen tool output for hidden instructions or tricky characters
- Score a written specification for completeness
- Look up and verify past decisions in a local log
- Run a check on your project from the command line
Try asking your AI
- “Prune the file src/models/user.py and show me the interface only.”
- “Build a context bundle for src/main.py so I can see what it depends on.”
- “Check this patch and tell me if it is safe to merge.”
- “Look up the audit entry for my last evaluation and confirm it is intact.”
What it gives back to you
You get back shorter code, a list of dependencies, a clear allow or reject answer, or a summary of a past decision. The answers appear in your chat as plain text or small structured lists. Nothing is sent anywhere outside your computer.
Before you start
What you need
- Python 3.10 to 3.13 installed on your computer
- The ctxfw package installed with pip or pipx
- An AI coding assistant that supports MCP, such as Claude Code or Cursor
Good to know
It can reject or change what your AI sees, so if a result looks wrong, check the original file yourself.
Install it with your AI
Add CTXFW MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check CTXFW MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 5,042 MCP servers here for you.
Who it's for
Developers and small teams who use AI coding assistants and want to keep their code local while saving tokens and blocking sneaky instructions.





