# mcp-context-condenser

> mcp-context-condenser is an open-source MCP server for developer tools. MCP server that trims source files and logs down to the parts an AI coding assistant needs. It is available on CLI, Self-hosted and VS Code.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, VS Code
- **Website:** https://rafi860.gumroad.com/l/mcp-context-condenser
- **Repository:** https://github.com/rafim-dev/mcp-context-condenser
- **GitHub stars:** 0
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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.

## 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.

## Alternatives

- [Compress-token](https://ai-powered.com/mcp/compress-token): Compress-token is an open-source MCP server for developer tools.
- [mcp-injector](https://ai-powered.com/mcp/mcp-injector): mcp-injector is a freemium MCP server for ai models and llm tooling.
- [terse](https://ai-powered.com/mcp/terse): terse is an open-source MCP server for developer tools.
- [Smart Context MCP](https://ai-powered.com/mcp/smart-context-mcp): Smart Context MCP is an open-source MCP server for developer tools.
- [TokenSlim MCP — verifiable token reduction for agents](https://ai-powered.com/mcp/tokenslim-mcp-verifiable-token-reduction-for-agents): TokenSlim MCP — verifiable token reduction for agents is an open-source MCP server for developer tools.
- [Diogenes Context Compression & Code Solvers MCP](https://ai-powered.com/mcp/diogenes-context-compression-and-code-solvers-mcp): Diogenes Context Compression & Code Solvers MCP is a freemium MCP server for developer tools.
- [MCP Token Optimizer](https://ai-powered.com/mcp/mcp-token-optimizer-2): MCP Token Optimizer is an open-source MCP server for developer tools.
- [slimproof](https://ai-powered.com/mcp/slimproof): slimproof is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-context-condenser
