← Reddit

I actually measured the codebase-memory MCP's token savings with /context instead of trusting the "99%" claim. It's real but nuanced

Reddit · jokiruiz · July 2, 2026
A test of the codebase-memory-mcp tool revealed approximately 40% token reduction on a small Flask API project, significantly less than the advertised 99% savings. The 99% figure originates from the tool authors' best-case scenario on a multi-service repository, published in an unreviewed preprint written by the developers themselves. Token savings scale with project size, indicating larger codebases would likely achieve greater improvements than the modest gains demonstrated on smaller projects.

Detailed Analysis

A community-driven experiment on r/ClaudeAI has put a widely circulated performance claim to the test, and the results illustrate both the promise and the hype-inflation common in the fast-moving Claude Code MCP (Model Context Protocol) ecosystem. The tool in question, codebase-memory-mcp, indexes a project's codebase into a knowledge graph so that Claude Code can query structural relationships directly rather than repeatedly grepping and opening files to build context. Its documentation advertises a "99% fewer tokens" figure, a number the author of this analysis found suspicious enough to verify independently using Claude Code's built-in /context command, which reports token usage before and after a query. Running an identical "give me an architecture overview" prompt against a small Flask API project, once with the MCP enabled and once without, the tester measured a real but far more modest improvement: roughly 40% fewer tokens (13k versus 21k) and about half the wall-clock time (37 seconds versus 1m12s), driven by replacing six file reads and several greps with three graph calls.

The gap between the marketed 99% and the observed 40% turns out to have a clear explanation: the headline figure comes from the tool's own best-case example on a large multi-service repository, sourced from a preprint paper written by the tool's own authors and not yet peer-reviewed. This is a useful case study in how benchmark claims in the AI tooling space are often generated under favorable conditions and then generalized without caveats. The tester's own framing — that savings scale with how much file-reading is avoided in the first place — suggests the 99% number may be legitimate for large legacy monorepos where an agent would otherwise need to open dozens of files, but is simply not representative for smaller codebases where the baseline exploration cost is already low. That distinction matters enormously for developers deciding whether to adopt the tool: a 40% reduction is still valuable, but it's a very different value proposition than "99% fewer tokens," especially when factoring in the overhead of maintaining a knowledge graph index.

This episode reflects a broader dynamic in the Claude Code and MCP ecosystem, where third-party tools built on Anthropic's Model Context Protocol proliferate rapidly, often with self-reported performance metrics that shape adoption before independent verification catches up. As agentic coding tools like Claude Code become central to how developers work with large codebases, context window management and token efficiency have become key differentiators — and also key marketing levers. The fact that a user felt compelled to reproduce a benchmark with actual tooling (/context) rather than trust a README is itself telling: it signals a maturing, more skeptical user base within the Claude developer community that treats third-party MCP servers the way one might treat any unverified academic claim, demanding reproducibility before wholesale adoption.

More broadly, this kind of grassroots benchmarking is becoming an important check on the MCP ecosystem's credibility. As Anthropic's Model Context Protocol standard grows into a de facto interface for connecting Claude to external tools, memory systems, and structured data sources, the quality and honesty of these community-built integrations increasingly affects perceptions of Claude Code's overall reliability and cost-efficiency. The unresolved question the author poses — whether token savings truly approach 99% on large, file-heavy monorepos — points to a genuine opportunity for further testing, and underscores that real-world validation, not vendor-supplied benchmarks, is what will ultimately determine which MCP tools earn a permanent place in developers' Claude Code workflows.

Read original article →