Skip to content

docs(benchmarks): measured context-overhead comparison vs official server#32

Merged
awkoy merged 1 commit into
mainfrom
docs/context-benchmark
Jul 3, 2026
Merged

docs(benchmarks): measured context-overhead comparison vs official server#32
awkoy merged 1 commit into
mainfrom
docs/context-benchmark

Conversation

@awkoy

@awkoy awkoy commented Jul 3, 2026

Copy link
Copy Markdown
Owner

What

Replaces the README's unsourced "~90% less context overhead" with a measured, reproducible number — and ships the benchmark that produces it.

Result

Static tool-schema footprint (what every MCP client loads into the model's context at connection, and keeps there all session):

Server Tools Tool-schema tokens
Official @notionhq/notion-mcp-server 24 17,163
This server 2 422

97.5% smaller — 40.7× less. Realistic multi-operation sessions stay 85–95% lighter, since operation schemas load on demand via notion_describe (see benchmarks/README.md for the scenario table and the honest worst case).

Method

Drive each server through the MCP stdio handshake, capture the real tools/list payload, serialize each tool to the {name, description, input_schema} shape a client forwards to the model, count tokens with tiktoken o200k_base. No Notion token needed (schema listing is unauthenticated). Fully reproducible — commands in benchmarks/README.md.

Changes

  • benchmarks/ — harness (list-tools.mjs, describe-all.mjs), token counter (count.py), and README.md with results + reproduction steps
  • Generated *.json gitignored
  • README: two claims updated to the measured figure, linked to benchmarks/

🤖 Generated with Claude Code

…rver

Reproducible benchmark: drives each MCP server through the stdio
handshake, captures the real tools/list payload, counts tokens
(o200k_base). Result — static tool-schema footprint at connection:
official 17,163 tokens (24 tools) vs 422 (2 tools) = 97.5% smaller.
Realistic multi-op sessions stay 85-95% lighter via on-demand
notion_describe.

Updates the README's '~90%' claim to the measured figure with a link
to benchmarks/ for reproduction.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@awkoy awkoy merged commit fdd5375 into main Jul 3, 2026
1 check passed
@awkoy awkoy deleted the docs/context-benchmark branch July 3, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant