TokenMS open-source local MCP server cuts coding-agent token burn by ~40-50%

nexxismyname · reddit · 2026-12-04

TokenMS is an open-source local MCP server that filters codebase noise before it hits the LLM, targeting 5-hour/weekly quota drain on Antigravity, Cursor, and Claude Desktop. Key mechanisms: prefix-stable context assembly (deterministic static prefix + append-only suffix to keep provider KV/prompt caches warm), a minimal 7-tool surface with on-demand discovertools/dispatch routing to cut the tools-schema tax, a SQLite delta ledger that avoids resending unchanged symbols and detects agent loops, TOON compact wire format, an async job runner that distills test logs to <400-token failure summaries, and multi-project isolation. Author reports 40-50% quota savings with no accuracy loss.

Related event: Open-source MCP server TokenMS cuts coding agent token use by ~half(3 posts)→

Original post →

More from coding & agent

coding & agent channel →