MCP Quality Benchmark

MCP Quality Benchmark

MCP responses were reaching 30–40k tokens per query, inflating cost, slowing generation, and degrading retrieval accuracy. I benchmarked eight MCP configurations to find the best metadata format and chunking strategy. The winner reached 92% retrieval accuracy and cut token use by 88%, and is now the MCP ingestion standard.

Role
Lead Designer & AI Systems Architect
Project Type
Design System AI Infrastructure
Team
Led end-to-end with 1 engineer + 1 design technologist partner
Contribution
Benchmarking strategy, implementation, analysis, and final recommendation
Tools
Cursor, Claude, MCP, React, TypeScript, Anthropic API, GitLab
Duration
2 months

The Problem

The MCP had generated 4,000+ prototypes, but trivial queries grew to 30–40k tokens. That inflated cost and latency and reduced retrieval accuracy. No one knew whether the cause was the metadata format, the chunking strategy, or the infrastructure, so we could not standardize AI input or scale prototype automation reliably.

This directly caused:

  • Higher token consumption
  • Higher cost
  • Context window pressure
  • Poor signal-to-noise ratio
  • Slower responses
Design system MCP responses burning tokens: a single query returning tens of thousands of tokens

Decision and Outcome

Which MCP configuration produces the highest quality input?

Semantic Chunker and Experiment A both performed well, but Semantic Chunker is the better value. It reached the highest retrieval accuracy (92%) and cut token use by 88% against the in-production baseline.

At 4,000 prototypes a month (about 240,000 queries a year), that saves roughly $12,000 annually and improves retrieval accuracy by 3 points. Semantic Chunking JSON is now the MCP ingestion standard.

MCP configurations ranked by token savings, cost savings and retrieval accuracy
RankConfigurationToken SavingsCost SavingsRetrieval
1Semantic ChunkerChunking at ingestion88%$0.05/query92%
2In-ProductionBaselineBaselineBaseline89%
3Experiment APre-chunked JSON87%$0.05/query86%

The Method

I built eight MCPs with distinct metadata pipelines, ran each on identical prompts, and isolated them on separate local ports to prevent cross-contamination. Learn more about the AIMS pipeline.

  1. Cloned the in-production MCP repository

  2. Generated metadata for each MCP experiment

  3. Ingested each MCP with the new data locally

  4. Verified all 8 MCP configurations running

Screen recording of the eight MCP configurations running side by side on separate local ports

8 MCP Configurations, Same Knowledge

In-Production MCP

Monolithic and verbose JSON

Semantic Chunker

Optimized MCP ingester (Infra level)

Experiment A

Pre-chunked and monolithic JSON

Experiment B

Original documentation MDX for humans

Experiment C

Only MD

Experiment D

Hybrid MD + JSON

Experiment E

Domain-separated JSON

Experiment F

TOON (Token-Oriented Object Notation)

The Framework

Benchmark framework: MCP input quality, LLM output quality for retrieval, and LLM output quality for prototypes

Why this matters: a benchmark means nothing without a definition of quality. I defined three dimensions, because quality is three things in balance:

  1. MCP Input Quality: is the MCP optimized for LLM reasoning?
  2. LLM Output Quality (Retrieval): can the LLM find correct information?
  3. LLM Output Quality (Prototype): can the LLM produce Indeed code?

Benchmark Evidence

Structured. Chunked. Smart. Coherent.

Benchmark dashboard comparing retrieval accuracy and token use across the eight MCP configurations
✓ Structured - JSON > Markdown

In this benchmark, JSON outperformed Markdown for LLM retrieval. Machine-parseable beats human-readable.

  • Finding: Top performers (Semantic 92%, Exp A 86%) both use structured JSON formats.
✓ Chunked - Chunked > Monolithic

Breaking data into focused chunks improves retrieval. Monolithic dumps bury the signal in noise.

  • Finding: Both top performers chunk their data (semantic or pre-chunked) and use deterministic JSON.
✓ Smart - Semantic > Pre-chunk

It matters how you chunk, not just whether you do. Concept-aligned boundaries preserve meaning better than arbitrary splits.

  • Finding: Semantic chunking reached 92% against 86% for pre-chunked JSON: same format, different chunking strategy.
✓ Coherent - One format > Hybrid

Keep related information together, one file per component, in one consistent format. Silos fragment context. Mixed formats exhaust processing.

  • Finding: Domain-separated (Exp E) reached only 20% retrieval coverage: the information was there, but siloed. The hybrid format (Exp D) hit 27% completion: the LLM could not finish.

Next Steps

This research extends beyond a single benchmark. The findings inform:

  1. Prototype Benchmark: Complete full quality framework evaluation before production rollout.
  2. Mobile Design System Documentation for MCP: Implement semantic chunking for the Mobile DS MCP.
  3. Design System AI Infrastructure: Work with AI leadership to integrate MCP ingestion standards into long-term AI platform strategy.

Prompt → Prototype

The prototype benchmark is the missing piece. I will complete the full framework over the coming weeks.

A prototype generated from a prompt through the design system MCPThe prototype viewer showing a generated prototype

Selected Work