Dev open-sources contextwise: BM25-routed MCP wrapper cuts 40k tokens to 7k
b-dub-d · reddit · 2026-09-09
A Reddit dev running Qwen 3.8 locally got tired of MCPs dumping all their tool definitions into the system prompt, so they built contextwise (on npm):
- Add it as the ONLY MCP in your project and it acts as a wrapper for all others, routing tool calls via BM25 + trigram scoring — no extra LLM involved — giving near-unlimited MCP access without context bloat.
- In practice, a massive Robinhood MCP (40k tokens in the system prompt) dropped to 7k; the agent got faster and even stopped Muse Spark 1.3 looping through Robinhood tools to fetch an options chain.
- Includes push/pull cloud syncing of MCP configs across machines, with a vault for securely syncing secrets and API keys.
Open-sourced and especially useful for local-model setups.
More from coding & agent
- Coordinating multiple coding agents with nothing but tmux and codex — viksit · 2026-09-09
- One chief-of-staff agent beats a 27-agent workforce, argues AI founder — evielync · 2026-09-09
- LangChain's OpenWiki draws early praise from community — hwchase17 · 2026-09-09
- Econometrician: every agent-driven econometrics task still needs manual standard-error fixes — danielrock · 2026-09-09
- Meta's Muse AI agent can now search, compare and book travel via Duffel connector — chetanp · 2026-09-09
- OpenAI's Navier–Stokes run: train-while-deploying and 10,000 coordinated agents — DataLearnerAI · 2026-09-09