Most developers judge coding agents by the model name while ignoring how much context the tool layer consumes before prompt zero.

Across November, I probed all 25 official and reference MCP servers in our public ledger over default stdio startup profiles using ctxvitals and canimcp. Together, those 25 servers expose 688 tools totaling 1,246,594 schema bytes, or 311,658 estimated tokens (ceil(schema_bytes / 4) per server; dividing the aggregate byte total once yields 311,648.5).

This tutorial walks through how to reproduce those measurements locally, where the biggest bloat hides, and which schema bugs actually break clients.

Requires Node.js 18+.

# Audit every MCP server and always-loaded skill file in your local agent configs
npx ctxvitals

# Run static config checks only without spawning stdio server processes
npx ctxvitals --no-probe

# Export JSON or an HTML scorecard
npx ctxvitals --json
npx ctxvitals --html report.html

To check JSON schemas directly for client compatibility bugs (such as missing root "type": "object", enum inside anyOf/ oneOf, and oversized outputSchema payloads):

npx canimcp

Two servers generate 42.6% of the entire 25-server footprint before a single user message enters context:

@sentry/mcp-server@0.51.0) get_issue_details alone costs 17,194 bytes (4,299 tokens).@tacticlaunch/mcp-linear@1.4.6) firecrawl-mcp@3.41.0) github/github-mcp-server)--toolsets=all expands GitHub to 94 tools and 67,910 estimated tokens (271,637 bytes).@brave/brave-search-mcp-server@2.2.0)@notionhq/notion-mcp-server@2.6.1) Tool count alone gives a false signal. Cloudflare (@cloudflare/mcp-server-cloudflare@0.2.0) ships 89 tools in 7,838 tokens (31,349 bytes), nearly four times smaller than Brave Search's 9 tools. Five servers stay under 650 tokens total: Postgres (@modelcontextprotocol/server-postgres@0.6.2, 1 tool, 33 tokens), SQLite ( mcp-server-sqlite@2025.4.25, 6 tools, 321 tokens), GitLab (@modelcontextprotocol/server-gitlab@2025.4.25, 9 tools, 356 tokens), Fetch Reference ( mcp-server-fetch@2026.11.18, 1 tool, 363 tokens), and Puppeteer (@modelcontextprotocol/server-puppeteer@2025.5.12, 7 tools, 612 tokens).

Input parameters were not the biggest driver of schema weight. Across 7 servers, 330 of 688 tools declare outputSchema definitions totaling 417,621 bytes (33.50% of the entire 25-server corpus):

outputSchema (150,839 bytes, 52.13% of server schema).brave_place_search at 86,181 total bytes where 80,058 bytes are Every outputSchema declaration inflates startup context and requires the server to return matching structuredContent alongside text at runtime.

$defs duplication (src/openapi-mcp-server/openapi/parser.ts. Only 6 tools ( API-patch-block-children, API-post-page, API-query-data-source, API-update-a-data-source, API-create-a-data-source, and API-move-page) contain a $ref pointing to canimcp 0.1.0 corpus 2026.10.16) oneOf checks, yet GitLab MCP (@modelcontextprotocol/server-gitlab@2025.4.25) omitted "type": "object" at the input schema root across all 9 tools, causing claude-code 2.1.295 to drop the entire server tool list. Four tools across Notion (API-post-search, API-update-page-markdown), Brave Search ( brave_llm_context), and Firecrawl ( firecrawl_search) also triggered Codex 0.162.0 enum-in-composition warnings.mcp-server-sqlite@2025.4.25 crashed on bare startup under mcp 2.x (AttributeError on missing list_resources) until pinned to mcp>=1.6.0,<2.0.0.@stripe/agent-toolkit@0.9.x / @stripe/mcp@0.3.4) and Vercel ( mcp.vercel.com) now proxy remote OAuth endpoints that return HTTP 401 unauthenticated, so the corpus measures @stripe/agent-toolkit@0.7.12 (22 tools, 5,403 tokens) and next-devtools-mcp@0.4.2 (4 tools, 1,744 tokens).ceil(schema_bytes / 4) over default stdio lists rather than a model-specific BPE tokenizer, and canimcp findings reflect static schema checks. Source code and full notes live at github.com/princejain756/ctxvitals, github.com/princejain756/canimcp, and the canonical essay on Medium.

原文来源:dev.to