MCP 2025-03-26 · STREAMABLE HTTP · ZERO AUTH · ZERO LLM CALLS

ContextForge MCP

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.

Connect in 5 Seconds (Zero Install · Zero API Keys)
{
  "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.

Live Edge JSON-RPC 2.0 Playground
Click any button above to run a live deterministic JSON-RPC 2.0 call against https://context-forge-mcp.yashwant938.workers.dev/mcp

Exposed MCP Tools (6 Remote · +1 Local Repo Compiler)

skeletonize_code

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.

compress_logs_and_traces

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

compact_json_and_api

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_and_pack_rag_context

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.

compile_context_pack

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.

simulate_context_budget

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.