Deterministic Token Compressor, Multi-Language Code Skeletonizer, Drain-Style Log & JSON Compactor, RAG Encoder-Overflow Auditor, and BM25 Context-Window Compiler — cut 60–90% of context bloat across Claude Code, Cursor, Antigravity, Windsurf, and Codex.
{
"mcpServers": {
"context-forge": {
"url": "https://context-forge-mcp.yashwant938.workers.dev/mcp"
}
}
}
For full local repository BM25 packing (compile_repo_context), run the local stdio server from
github.com/yashwant938/context-forge-mcp.
Click any button above to run a live deterministic JSON-RPC 2.0 call against https://context-forge-mcp.yashwant938.workers.dev/mcp
Deterministically compress JS/TS, Python, C/C++, Go, Rust, or Java source code into a line-indexed signature skeleton (or symbol-focus view that expands only matching functions), cutting 65-88% tokens while preserving imports, types, signatures, and exact Lstart-Lend ranges.
Drain-style deterministic log template clusterer and stack-trace deduplicator. Normalizes timestamps, UUIDs, IPs, hex pointers, and numbers to collapse 1,000+ noisy CI/server/test lines into frequency-ranked ERROR/WARN clusters + unique stack traces (70-95% token reduction).
Deterministically compact huge JSON payloads, DB query dumps, or OpenAPI 3.x/Swagger specs into an inferred typed schema with field cardinality, numeric min/max ranges, enum distributions, and a trimmed sample item (75-92% token reduction).
Audit retrieved RAG passages against embedding encoder hard limits (MiniLM 256, BGE/E5 512, Nomic 2048, OpenAI 8191, Voyage 32k), eliminate silent truncation via sentence-bounded re-chunking, remove Jaccard near-duplicates, and apply Lost-in-the-Middle U-shaped attention ordering inside a strict token budget.
BM25-ranked, token-budgeted multi-artifact context compiler. Ranks source files, logs, JSON dumps, and docs against a taskQuery, keeping top files verbatim, skeletonizing supporting dependencies, clustering logs, and outputting a strict XML context pack + dropped-file manifest.
Deterministic multi-turn agent context-window and cost economics simulator. Computes exact MCP schema tax, turn-by-turn token growth, Lost-in-the-Middle degradation cliff turn, 85% compaction wall turn, prompt-cache economics, and monthly USD savings across 8 frontier models.