<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ondrej</title>
    <description>The latest articles on DEV Community by ondrej (@ondrej_ulehla).</description>
    <link>https://dev.to/ondrej_ulehla</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4243617%2Ffbce1017-5081-4945-9dd8-be35b5832ccc.png</url>
      <title>DEV Community: ondrej</title>
      <link>https://dev.to/ondrej_ulehla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ondrej_ulehla"/>
    <language>en</language>
    <item>
      <title>I counted the exact token cost of 35,633 MCP servers. 45 of them do not fit in a 200k context window</title>
      <dc:creator>ondrej</dc:creator>
      <pubDate>Fri, 20 Nov 2026 21:45:55 +0000</pubDate>
      <link>https://dev.to/ondrej_ulehla/i-counted-the-exact-token-cost-of-35633-mcp-servers-45-of-them-do-not-fit-in-a-200k-context-window-59lj</link>
      <guid>https://dev.to/ondrej_ulehla/i-counted-the-exact-token-cost-of-35633-mcp-servers-45-of-them-do-not-fit-in-a-200k-context-window-59lj</guid>
      <description>&lt;p&gt;An MCP server costs you tokens before you ask it anything. The client sends the model every tool definition, name, description and schema, and those definitions take space in every request of the session, used or not.&lt;/p&gt;

&lt;p&gt;Last month Sarvar Nadaf wrote a good post about this from the inside: he &lt;a href="https://dev.to/aws-builders/mcp-token-cost-i-cut-my-mcp-server-from-15-tools-to-4-cek"&gt;cut one server from 15 tools to 4&lt;/a&gt; and measured what changed. I happen to have the other half of that picture. Not one server measured closely, but 35,633 of them measured the same way.&lt;/p&gt;

&lt;p&gt;The short version: &lt;strong&gt;the typical server is cheap, and the average is a lie.&lt;/strong&gt; The median is 2,518 tokens. The average is 8,059, more than three times that, because of a long tail.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I counted
&lt;/h2&gt;

&lt;p&gt;I run a probe on the official MCP registry, &lt;a href="https://mcpcost.ulehla.dev" rel="noopener noreferrer"&gt;mcpcost&lt;/a&gt;. Once a day it connects to every remote server and asks for &lt;code&gt;tools/list&lt;/code&gt;. Servers that ship as a package get started in a container once a week. It keeps every answer.&lt;/p&gt;

&lt;p&gt;For the count I did not want an estimate, so I use Anthropic's &lt;code&gt;count_tokens&lt;/code&gt; endpoint. It returns the number of input tokens the model will see and runs no model. I send one request with the server's tools plus a tiny marker tool, and one request with the marker only. The difference is what the server's tools cost. The model is Claude Opus 5.5.&lt;/p&gt;

&lt;p&gt;In the run of 14 November 2026, 35,633 servers listed their tools and got a count.&lt;/p&gt;

&lt;h2&gt;
  
  
  The middle is fine
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The median server costs 2,518 tokens.&lt;/strong&gt; That is 1.3 % of a 200k window. Five median servers together take about 12,600 tokens, around 6 %. You can live with that.&lt;/p&gt;

&lt;p&gt;Half of all servers have 8 tools or fewer. More than one in five costs under 1,000 tokens.&lt;/p&gt;

&lt;p&gt;If the story ended here, "MCP eats your context" would be a myth.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tail is not
&lt;/h2&gt;

&lt;p&gt;It does not end here.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Tokens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Median&lt;/td&gt;
&lt;td&gt;2,518&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;90th percentile&lt;/td&gt;
&lt;td&gt;17,043&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;99th percentile&lt;/td&gt;
&lt;td&gt;54,779&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Largest&lt;/td&gt;
&lt;td&gt;1,633,624&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One server in ten costs more than 17,000 tokens. Put five of those in a config and over 40 % of the window is gone before the first prompt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3,167 servers cost more than 20,000 tokens. 133 cost more than 100,000. And 45 cost more than 200,000&lt;/strong&gt;, so their tool list alone does not fit in the window they are supposed to work in.&lt;/p&gt;

&lt;p&gt;The largest one has 73 tools and costs 1.6 million tokens. That is eight full context windows of tool definitions.&lt;/p&gt;

&lt;p&gt;The top 1 % of servers, 356 of them, hold 16 % of all the tokens in the registry.&lt;/p&gt;

&lt;h2&gt;
  
  
  It is the number of tools. Almost always.
&lt;/h2&gt;

&lt;p&gt;A server can be heavy for two reasons: it has many tools, or its tools are fat. I checked which one it is. It is nearly always the first.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tools on the server&lt;/th&gt;
&lt;th&gt;Servers&lt;/th&gt;
&lt;th&gt;Average cost&lt;/th&gt;
&lt;th&gt;Per tool&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 to 3&lt;/td&gt;
&lt;td&gt;7,236&lt;/td&gt;
&lt;td&gt;872&lt;/td&gt;
&lt;td&gt;425&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 to 10&lt;/td&gt;
&lt;td&gt;13,932&lt;/td&gt;
&lt;td&gt;2,394&lt;/td&gt;
&lt;td&gt;375&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11 to 25&lt;/td&gt;
&lt;td&gt;7,090&lt;/td&gt;
&lt;td&gt;6,577&lt;/td&gt;
&lt;td&gt;402&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;26 to 50&lt;/td&gt;
&lt;td&gt;5,941&lt;/td&gt;
&lt;td&gt;21,314&lt;/td&gt;
&lt;td&gt;548&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;51 to 100&lt;/td&gt;
&lt;td&gt;979&lt;/td&gt;
&lt;td&gt;33,160&lt;/td&gt;
&lt;td&gt;520&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;over 100&lt;/td&gt;
&lt;td&gt;455&lt;/td&gt;
&lt;td&gt;91,804&lt;/td&gt;
&lt;td&gt;428&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Look at the last column. It hardly moves. &lt;strong&gt;The median server pays about 320 tokens per tool, and nine servers in ten pay under 855&lt;/strong&gt;, whether they have three tools or three hundred.&lt;/p&gt;

&lt;p&gt;So there is a rule of thumb that works surprisingly well: count the tools, multiply by 320.&lt;/p&gt;

&lt;p&gt;It also puts a number next to something from Sarvar's post. The AWS guidance he quotes says a tool schema runs 550 to 1,400 tokens. In the registry most servers pay less per tool than the bottom of that range.&lt;/p&gt;

&lt;p&gt;There are exceptions, and they are extreme. 293 servers average more than 2,000 tokens &lt;em&gt;per tool&lt;/em&gt;. The 1.6-million server is one of them: 22,000 tokens per tool. I have not read all 73 of its schemas. I am not sure anybody has.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your estimate is probably low by 1.75x
&lt;/h2&gt;

&lt;p&gt;Before I had exact counts, I estimated. I serialized each tool as compact JSON and counted it with the &lt;code&gt;o200k_base&lt;/code&gt; tokenizer, which is what a lot of scripts do.&lt;/p&gt;

&lt;p&gt;Then I ran both on every server. &lt;strong&gt;The exact count is 1.75 times the estimate at the median.&lt;/strong&gt; Not a few percent off. Almost double. And it is consistent: for eight servers in ten the ratio sits between 1.62 and 1.87.&lt;/p&gt;

&lt;p&gt;So if you measured your tool list with &lt;code&gt;tiktoken&lt;/code&gt; and felt fine, multiply by 1.75 and feel again.&lt;/p&gt;

&lt;p&gt;One smaller thing. Claude Code renames every tool to &lt;code&gt;mcp__&amp;lt;server&amp;gt;__&amp;lt;tool&amp;gt;&lt;/code&gt;. I count that variant too. It adds about 3.5 % at the median, 89 tokens. Not nothing, not a problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these numbers do not tell you
&lt;/h2&gt;

&lt;p&gt;This is the part I would want to read first if somebody else had written this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only servers that answer without credentials are in it.&lt;/strong&gt; 13,140 servers in the registry ask for auth, and I cannot list their tools. That group includes many of the hosted servers of big vendors. The GitHub server from Sarvar's post, 55,000 tokens across 93 tools, is one I cannot check. It works out to about 590 per tool, which fits what I see elsewhere, but I did not measure it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One publisher bends the curve.&lt;/strong&gt; There is a bump between 10,000 and 20,000 tokens that looked like a real pattern. It is 2,343 registry entries from a single publisher on a single host, each between 12,600 and 13,200 tokens. With them, 22 % of servers cost over 10,000. Without them, 16 %. Both numbers are true. Pick the one that matches your question.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is the worst case, not always the bill.&lt;/strong&gt; Some clients now load tool definitions on demand instead of all at the start. For those, these numbers are what you would pay if everything loaded. And it is definitions only. What a tool &lt;em&gt;returns&lt;/em&gt; can cost far more, and I do not measure that at all. Sarvar's post is the better read for that side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One model.&lt;/strong&gt; These are counts for one Claude model. Another model has another tokenizer and wraps tools in its own way. Do not carry the numbers over.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And I got it wrong for a week.&lt;/strong&gt; In October the counting endpoint started to refuse my API key. My code stored each refusal as "this server's schema was rejected". So for seven days the board blamed servers for a fault that was mine, and it took me days to see it. The lesson was boring and useful: a refusal of the key and a refusal of the schema need different names in the code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I take from it
&lt;/h2&gt;

&lt;p&gt;Three things.&lt;/p&gt;

&lt;p&gt;Count tools before you count tokens. Eight tools is normal. Forty is a decision that somebody should make on purpose.&lt;/p&gt;

&lt;p&gt;Do not trust an average in this ecosystem. Median and 90th percentile, side by side, or nothing.&lt;/p&gt;

&lt;p&gt;And the fix sits with the publisher more often than with the protocol. Sarvar's rebuild from 15 tools to 4 is the proof for one server. The table above says the same thing for 35,000.&lt;/p&gt;

&lt;p&gt;I am curious about the other side of this. If you publish a server with more than 50 tools: do your users need all of them loaded at once, or is that just how the SDK made it easy? And if you have measured your own setup, how far off was your first guess?&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>llm</category>
      <category>discuss</category>
    </item>
    <item>
      <title>I install every PyPI server in the MCP registry each week. 932 of them stop on the same SDK upgrade</title>
      <dc:creator>ondrej</dc:creator>
      <pubDate>Sat, 14 Nov 2026 21:14:13 +0000</pubDate>
      <link>https://dev.to/ondrej_ulehla/i-install-every-pypi-server-in-the-mcp-registry-each-week-932-of-them-stop-on-the-same-sdk-upgrade-1b48</link>
      <guid>https://dev.to/ondrej_ulehla/i-install-every-pypi-server-in-the-mcp-registry-each-week-932-of-them-stop-on-the-same-sdk-upgrade-1b48</guid>
      <description>&lt;p&gt;Once a week a job of mine installs every Python MCP server in the official registry, starts it, and asks it for its tools. There are 4,881 of them. In the newest run &lt;strong&gt;2,200 started. 932 did not, and all 932 fail for the same reason&lt;/strong&gt;: they were written for version 1 of the &lt;code&gt;mcp&lt;/code&gt; SDK, and a fresh install now gets version 2.&lt;/p&gt;

&lt;p&gt;Most of them need one line to work again. Here is how I found that out, the one line, and the part of the number I do not trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  It started as a pile of "crashed"
&lt;/h2&gt;

&lt;p&gt;I run &lt;a href="https://mcpcost.ulehla.dev" rel="noopener noreferrer"&gt;mcpcost&lt;/a&gt;, an open-source probe of the MCP registry. Remote servers get a connection once a day. Package servers get installed in a container with no version pins, the same thing &lt;code&gt;uvx&lt;/code&gt; does on your laptop, and then started with the network off.&lt;/p&gt;

&lt;p&gt;At first the board had a status I did not look at closely: &lt;em&gt;crashed&lt;/em&gt;. The process exits before it answers &lt;code&gt;initialize&lt;/code&gt;. A server can crash for a hundred reasons, so I treated it as noise.&lt;/p&gt;

&lt;p&gt;At the end of October I finally grouped the crashes by the last line of their output. I expected a long tail. I got this, 762 times:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ModuleNotFoundError: No module named 'mcp.server.fastmcp'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Half of all crashed PyPI servers. One line.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened on 28 July
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;mcp&lt;/code&gt; 2.0.0 went to PyPI on 28 July 2026. It renamed &lt;code&gt;FastMCP&lt;/code&gt; to &lt;code&gt;MCPServer&lt;/code&gt; and moved it to a new module. &lt;code&gt;from mcp.server.fastmcp import FastMCP&lt;/code&gt; is the first line of a lot of Python MCP servers, and these packages declare the dependency as &lt;code&gt;mcp&amp;gt;=1.something&lt;/code&gt;. No upper bound. So &lt;code&gt;pip&lt;/code&gt; and &lt;code&gt;uv&lt;/code&gt; now pick 2.x, and the first import fails.&lt;/p&gt;

&lt;p&gt;When I grouped the rest of the errors yesterday, four more texts turned out to be the same upgrade:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Error&lt;/th&gt;
&lt;th&gt;Servers&lt;/th&gt;
&lt;th&gt;What changed in mcp 2.0&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;No module named 'mcp.server.fastmcp'&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;787&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;FastMCP&lt;/code&gt; is now &lt;code&gt;MCPServer&lt;/code&gt; in &lt;code&gt;mcp.server.mcpserver&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;'Server' object has no attribute 'list_tools'&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;131&lt;/td&gt;
&lt;td&gt;The lowlevel &lt;code&gt;Server&lt;/code&gt; has no decorators. Handlers go to the constructor as &lt;code&gt;on_list_tools=...&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cannot import name 'FastMCP' from 'mcp.server'&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;The same rename&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cannot import name 'McpError'&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;It is &lt;code&gt;MCPError&lt;/code&gt; now&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cannot import name 'streamablehttp_client'&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Removed. Use &lt;code&gt;streamable_http_client&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is 932 servers, &lt;strong&gt;19 % of the Python servers in the registry&lt;/strong&gt;, three and a half months after the release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does a pin fix it? I made the probe try
&lt;/h2&gt;

&lt;p&gt;A count of broken things is not much use. I wanted to know if the obvious fix works, so I changed the probe: when a package stops at the FastMCP import, install it one more time with &lt;code&gt;mcp&amp;lt;2&lt;/code&gt; and start it again.&lt;/p&gt;

&lt;p&gt;The first test run had nine packages. Eight started.&lt;/p&gt;

&lt;p&gt;The packages are checked in a weekly cycle, so the full answer took a week to arrive. It is in now: &lt;strong&gt;694 of the 787 start and list their tools with the pin&lt;/strong&gt;. That is 88 %. The other 93 still do not start.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you only want the server to start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx --with &lt;span class="s2"&gt;"mcp&amp;lt;2"&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;package&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In a client config, put &lt;code&gt;--with&lt;/code&gt; and &lt;code&gt;mcp&amp;lt;2&lt;/code&gt; in front of the package name in the &lt;code&gt;args&lt;/code&gt; of &lt;code&gt;uvx&lt;/code&gt;. With pip it is &lt;code&gt;pip install "mcp&amp;lt;2"&lt;/code&gt; in the server's environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you publish the server
&lt;/h2&gt;

&lt;p&gt;One line in your dependencies, then a release:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;dependencies&lt;/span&gt; &lt;span class="err"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"mcp&amp;gt;=1.2,&amp;lt;2"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The SDK's own &lt;a href="https://py.sdk.modelcontextprotocol.io/v2/migration/" rel="noopener noreferrer"&gt;migration guide&lt;/a&gt; says the same thing: keep a &lt;code&gt;&amp;lt;2&lt;/code&gt; bound until you have moved your code. For a FastMCP server the move itself is small:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# before&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mcp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fastmcp&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;FastMCP&lt;/span&gt;
&lt;span class="n"&gt;mcp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;FastMCP&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Demo"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# after&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mcp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mcpserver&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;MCPServer&lt;/span&gt;
&lt;span class="n"&gt;mcp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MCPServer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Demo"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;@mcp.tool()&lt;/code&gt;, &lt;code&gt;@mcp.resource()&lt;/code&gt; and &lt;code&gt;@mcp.prompt()&lt;/code&gt; did not change. If you use the lowlevel &lt;code&gt;Server&lt;/code&gt; with &lt;code&gt;@server.list_tools()&lt;/code&gt;, the change is bigger, because the decorators are gone. I put the before and after for each of the five errors, with the list of servers that hit it, on &lt;a href="https://mcpcost.ulehla.dev/errors" rel="noopener noreferrer"&gt;one page per error&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part of the number I do not trust
&lt;/h2&gt;

&lt;p&gt;932 is the number of &lt;em&gt;registry entries&lt;/em&gt; that stop. It is not the number of broken projects, and the difference matters.&lt;/p&gt;

&lt;p&gt;A registry entry names one version of a package. The probe installs that version, because that is what a client that reads the registry gets. But publishers do not always update the entry when they release.&lt;/p&gt;

&lt;p&gt;So I took the 21 entries with the most GitHub stars and checked each one by hand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;10 have a newer release on PyPI&lt;/strong&gt; than the version in the registry. At least 3 of those releases already have the fix, a pin or a real migration. The package is fine. The registry entry is old.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3 more had the problem in their own issue tracker&lt;/strong&gt;, open or already closed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6 showed no sign that anybody knew.&lt;/strong&gt; The newest release still breaks, and nobody had reported it. I opened an issue for each of them today.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2 I could not judge.&lt;/strong&gt; One repository does not hold the server's code, and one package does not start with the pin either.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Twenty-one entries is a small sample, and the most-starred repositories are the best maintained ones, so do not stretch it over the other 900. But it changed how I read my own number. Some of it is a Python problem. Some of it is a stale registry problem that only looks like one.&lt;/p&gt;

&lt;p&gt;Two more limits. The probe retries with &lt;code&gt;mcp&amp;lt;2&lt;/code&gt; only for the FastMCP error, so for the 131 &lt;code&gt;list_tools&lt;/code&gt; servers I do not know yet how many a pin saves. And everything runs in a container with the network off. A server that needs the network at start-up gets a different status and is not in these numbers at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why almost nobody notices
&lt;/h2&gt;

&lt;p&gt;This is the part I find interesting.&lt;/p&gt;

&lt;p&gt;The publisher's machine still has &lt;code&gt;mcp&lt;/code&gt; 1.x in an environment from last spring. Their tests pass. Their own client config works. The server only fails for somebody who installs it &lt;em&gt;today&lt;/em&gt;, and that person usually shrugs and tries the next server in the list.&lt;/p&gt;

&lt;p&gt;The SDK team did react. About a month after the release they made the error say more. It does not stop at &lt;code&gt;No module named&lt;/code&gt; now. The full text says that this is mcp 2.x, that FastMCP was renamed, and it links to the migration guide. It is a good error message. It just goes to the wrong person: the user reads it, and the user is not the one who can publish a fix.&lt;/p&gt;

&lt;p&gt;That is the reason for the six issues. An error message cannot reach a publisher. A person can.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check yours
&lt;/h2&gt;

&lt;p&gt;Every server in the registry has a page with its newest result at &lt;code&gt;https://mcpcost.ulehla.dev/s/&amp;lt;registry name&amp;gt;&lt;/code&gt;. If your assistant speaks MCP you can also ask it: the board is an MCP server too, at &lt;code&gt;https://mcpcost.ulehla.dev/mcp&lt;/code&gt;, with no sign-in (&lt;a href="https://mcpcost.ulehla.dev/connect" rel="noopener noreferrer"&gt;how to add it&lt;/a&gt;). The probe and the data are open source: &lt;a href="https://github.com/ondraulehla/mcpcost" rel="noopener noreferrer"&gt;github.com/ondraulehla/mcpcost&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you publish a Python MCP server, I would like to know two things. Did you pin, or did you migrate? And what broke that the guide did not warn you about? The lowlevel &lt;code&gt;Server&lt;/code&gt; change looks like the hard one from here, and I have 131 servers that say so, but I have not done that migration myself.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>python</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
