mcp-context-dedup
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-context-dedup deduplicate this repetitive output"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-context-dedup
Zero-dependency semantic context stream compression & token deduplication engine for MCP tools (achieving 60%–80% LLM token savings).
🚀 Key Features
💰 60%–80% Token Savings: Saves LLM prompt token costs on verbose stdout streams and repetitive log outputs.
⚡ Zero External Dependencies: Built 100% on Python Standard Library.
🧹 Traceback & Log Deduplication: Collapses repeated traceback frames and identical log lines into
[Repeated Nx]count blocks.🗜️ JSON Array Summarization: Truncates large homogeneous JSON arrays while preserving top/bottom schema context.
🛠️ Stdio MCP Server: Ready for instant integration into Claude Desktop, Cursor, and Windsurf via
uvx.
Related MCP server: MCP Squeeze
🏗️ Architecture
+-------------------+ +--------------------------+ +------------------------+
| Verbose MCP Output| --> | mcpcontextdedup Engine | --> | Compressed Stream |
| (14k Tokens) | | (Deduplication & JSON) | | (2.8k Tokens / 80% Off)|
+-------------------+ +--------------------------+ +------------------------+📦 Quickstart
uvx mcp-context-dedupPython Library Usage
from mcpcontextdedup import compress_context
raw_log = "error: connection reset\nerror: connection reset\nerror: connection reset\n"
res = compress_context(raw_log)
print(f"Reduction: {res.reduction_percentage}%")
print(res.text)
# Output:
# Reduction: 66.7%
# error: connection reset [Repeated 3x]⚙️ Claude Desktop & Cursor Setup
Add to your claude_desktop_config.json:
{
"mcpServers": {
"context-dedup": {
"command": "uvx",
"args": ["mcp-context-dedup"]
}
}
}⚡ Performance Benchmarks
Output Type | Original Tokens | Compressed Tokens | Token Savings | Execution Time |
Repeated Log Stream (1,000 lines) | 14,200 tokens | 280 tokens | 98.0% Savings | 1.8 ms |
Large JSON API Array (500 items) | 28,500 tokens | 4,200 tokens | 85.3% Savings | 3.4 ms |
Python Traceback Burst (50 frames) | 8,400 tokens | 1,600 tokens | 81.0% Savings | 1.1 ms |
🔒 Privacy & Security
100% Local & Offline: Operates strictly over local stdio with zero network calls.
Zero Telemetry: No analytics, no tracking, and no phone-home mechanisms.
📄 License
MIT © Abhishek Prasad
Available Tools
1 toolcompress_mcp_outputA
Compress verbose tool outputs and deduplicate log lines to save LLM prompt tokens.
Inputs: raw_text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlapping purposes. The tool's unique function is clear.
The single tool follows a clear verb_noun pattern (compress_mcp_output), and with only one tool, there are no inconsistencies to evaluate.
The server has a single tool, which feels borderline for a typical server. However, the narrow purpose of context deduplication makes one tool arguably sufficient, but it is still on the thin side.
The tool fully addresses the server's stated purpose of compressing MCP outputs and deduplicating logs. There are no obvious missing operations for this narrowly defined domain.
Maintenance
Related MCP Connectors
Compress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.
Compress prose for LLM context windows. Per-call USDC billing, signed receipt.
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Single-connection meta-router indexing 500+ MCP servers & A2A tools with 85% token compression and
Related MCP Servers
- AlicenseAqualityCmaintenanceCompacts noisy test, build, and cloud-log output before an AI agent reads it — dedupes repeats, collapses stack frames, folds Playwright retries, and renders CloudWatch/GCP JSON logs down to the signal. Typically 80–95% fewer tokens on failures. Tool: compact_output. Run: npx -y logslim logslim-mcp120 npm5MIT
- AlicenseNot gradedqualityBmaintenanceDrop-in MCP proxy that deduplicates and truncates large or repeated tool-call results to cut agent token usage, reporting token savings.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables MCP-compatible clients and autonomous agents to dynamically compress long-horizon context by pruning verbose tool outputs, HTML boilerplate, and semantic redundancy by 40-70%. It reduces token burn and latency through deterministic, zero-dependency processing.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible developer environments to shrink verbose tool outputs—test logs, git diffs, directory listings, and file dumps—before they reach the context window, preserving compiler errors, failure signatures, and decisive anchors. It runs either as direct callable tools or as a transparent proxy wrapping other MCP servers such as filesystem, git, or terminal providers.1MIT