
mcp-context-condenser
MCP server that trims source files and logs down to the parts an AI coding assistant needs
The repository was last updated 85 days ago and is published under MIT.
mcp-context-condenser is an open-source MCP server for developer tools. It is available on CLI, Self-hosted and VS Code.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, VS Code
- GitHub stars
- 0
- Last commit
- Language
- TypeScript
- License
- MIT
Similar MCP servers
About mcp-context-condenser
Feeding a full source file into an AI coding assistant spends many tokens on implementation details the model rarely needs. This MCP server reads code and reduces it: it produces a skeleton that keeps imports, types and signatures while collapsing function bodies, pulls out a single named class, interface or function with its relevant imports, and condenses noisy test or build logs down to failing assertions and compiler errors.
It runs as a stdio MCP server for clients such as Claude Desktop, Cursor and Cline, and it can also be called from a terminal with outline, symbol, log and budget commands. A token budget check estimates the size of a file before it is sent to a model, so oversized inputs can be flagged in advance.
The package is bundled into a single JavaScript file, so it needs no installed dependencies at runtime. It suits developers who use AI coding tools on large TypeScript codebases and want to reduce prompt size.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 4 names don't say.
From the server's own tool labels and tool names; not verified by us.
- condense_source
- Generates a condensed type-safe outline of source code, optionally preserving docstrings.
- extract_symbol
- Extracts a named class, interface, function or type with its file imports.
- compress_log
- Reduces raw test, compiler or build output to isolated failures and root-cause messages.
- token_budget
- Estimates tokens for a file and flags whether it is oversized.
What it does
- Code skeleton outline
- Produces a condensed outline of a source file that keeps imports, types and method signatures.
- Single symbol extraction
- Returns one named class, interface or function along with the file imports it relies on.
- Log compression
- Strips repetitive output from test and build logs and highlights failing assertions and errors.
- Token budget estimation
- Estimates token weight for a file and warns when it is likely too large for the context window.
- Terminal CLI mode
- Runs the same outline, symbol, log and budget operations directly from the command line.
- Standalone bundle
- Ships as one pre-bundled JavaScript file with no runtime dependencies to install.
Good for
- Give an assistant the exported interfaces of a large module without the full implementation
- Pull one function into a prompt when only that helper needs review
- Shorten long failing test output before asking an assistant to diagnose it
- Check whether a file is too large to send to a model in one request
Pricing
Open source
MIT-licensed and free from GitHub; optional pay-what-you-want download of $5.00+ on Gumroad.
Prices change. Check rafi860.gumroad.com before you buy.
mcp-context-condenser FAQ
How do I install mcp-context-condenser in Claude Desktop or Cursor?
Add a mcpServers entry to the client configuration that runs node on the dist/index.js file of the cloned repository, using its absolute path.
Which tools does the server expose?
It exposes condense_source, extract_symbol, compress_log and token_budget, each with its own inputs and outputs.
What license is mcp-context-condenser released under?
The project is released under the MIT License.
Can I use mcp-context-condenser without an MCP client?
Yes, it has a terminal CLI with outline, symbol, log and budget commands.
Is mcp-context-condenser free?
Yes. mcp-context-condenser is open source, so you can use and self-host it for free.
What are the best alternatives to mcp-context-condenser?
The closest alternatives to mcp-context-condenser are Compress-token, mcp-injector, terse, Smart Context MCP and TokenSlim MCP — verifiable token reduction for agents.
Where this comes from
- Description: written from the project's README and the project's website.

