DEV Community

I Audited 25 Official MCP Servers: 688 Tools, 311,658 Tokens, and Where 417,621 Bytes Hide

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.

Run the local audit in one command

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

Tool count does not predict token cost

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

  • Sentry MCP (@sentry/mcp-server@0.51.0): 72,333 estimated tokens across 76 tools (289,330 bytes). get_issue_details alone costs 17,194 bytes (4,299 tokens).
  • Linear MCP (@tacticlaunch/mcp-linear@1.4.6): 60,582 estimated tokens across 198 tools (242,328 bytes).
  • Firecrawl MCP (firecrawl-mcp@3.41.0): 35,416 estimated tokens across 34 tools (141,662 bytes).
  • GitHub MCP (github/github-mcp-server): 31,697 estimated tokens across 46 tools on default startup (126,788 bytes). Enabling --toolsets=all expands GitHub to 94 tools and 67,910 estimated tokens (271,637 bytes).
  • Brave Search MCP (@brave/brave-search-mcp-server@2.2.0): 31,231 estimated tokens across 9 tools (124,923 bytes).
  • Notion MCP (@notionhq/notion-mcp-server@2.6.1): 19,054 estimated tokens across 24 tools (76,215 bytes).

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).

Where 417,621 bytes hid: outputSchema payloads

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):

  • Sentry MCP: 69 of 76 tools declare outputSchema (150,839 bytes, 52.13% of server schema).
  • Linear MCP: all 198 tools declare outputSchema (115,763 bytes, 47.77% of server schema).
  • Brave Search MCP: 3 of 9 tools declare outputSchema (85,091 bytes, 68.11% of server schema), led by brave_place_search at 86,181 total bytes where 80,058 bytes are outputSchema.
  • Firecrawl MCP: all 34 tools declare outputSchema (56,077 bytes, 39.59% of server schema).
  • Memory Reference, Filesystem Reference, and Sequential Thinking: 9 tools (5,961 bytes), 16 tools (3,471 bytes), and 1 tool (419 bytes).

Every outputSchema declaration inflates startup context and requires the server to return matching structuredContent alongside text at runtime.

Two parser bugs caught by inspecting raw tool lists

  • Notion's unreferenced $defs duplication (@notionhq/notion-mcp-server@2.6.1): Every single one of Notion's 24 tool definitions embeds the shared $defs block emitted by 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 $defs. The other 18 tools carry zero $ref references inside their operation schemas yet still ship the $defs object (2,326 bytes per tool counting key and value, or 2,317 bytes value-only). Stripping the unreferenced property saves 41,868 bytes, roughly 10,467 tokens or 54.9% of Notion's total schema cost.
  • Client-breaking schema drift (canimcp 0.1.0 corpus 2026.10.16): All 25 audited servers passed root 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.

Setup caveats and limits

  • 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 (@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).
  • Token counts reflect 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.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.