{
  "id": 19298735,
  "title": "Your MCP Server Burns Tokens Before It Does Anything: How to Measure and Trim It",
  "url": "https://urgent.news/2026/11/10/your-mcp-server-burns-tokens-before-it-does-anything-how-to-measure",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-10T07:00:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/lycore/your-mcp-server-burns-tokens-before-it-does-anything-how-to-measure-and-trim-it-37ll"
  },
  "original_language": "en",
  "account": "When a client establishes a connection to an MCP server, it initiates a call to tools/list. In response, the server returns a list of tools, each accompanied by its name, description, and inputSchema. This information is then incorporated into the client's request, providing context for the model on which tools are available. This process of including tool definitions in the request is a fundamental aspect of the MCP protocol, and it raises concerns about the potential cost in terms of token usage.\n\nThere are three primary factors that contribute to the increased token consumption: each enabled server has its own tool list, the same tool list is repeated in every request, and the inclusion of numerous similar tools can lead to ambiguity and inaccurate predictions. As the number of tools grows, the likelihood of selecting the incorrect one increases, further exacerbating the issue. To address this problem, it is crucial to measure the actual token cost associated with the tool definitions.\n\nA script has been developed to measure the real token cost incurred by the server's tool definitions. The script initiates the server using the official Python SDK and utilizes the Anthropic token counting endpoint to determine the number of input tokens added by the definitions. By comparing the token count with and without the tool definitions, the script provides a clear picture of the impact on the context window. This measurement allows for an informed assessment of the server's tool list and facilitates the identification of areas for optimization.\n\nThe script provides a breakdown of the token usage for each tool, enabling developers to pinpoint the most resource-intensive tools. By focusing on these high-cost tools, developers can make targeted adjustments to reduce the overall token consumption without compromising the functionality and usability of the MCP server. This strategic approach to tool management not only optimizes token usage but also enhances the model's accuracy and efficiency, ensuring a more productive interaction between the client and the server.",
  "summary": "TL;DR: Every tool your MCP server exposes has a name, a description and a JSON Schema, and most clients send all of them to the model on every request, before the user's question is even read. Stack a few servers and the tool list alone can eat a large slice of the context window. Below: a script that measures your server's real token cost, the four things that usually bloat it, and how to design…",
  "key_points": [
    "MCP server includes tool definitions in each request, increasing token usage",
    "Script measures real token cost of tool definitions to optimize MCP server performance"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}