<?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: Wajdy Mustafa</title>
    <description>The latest articles on DEV Community by Wajdy Mustafa (@wajdy_mustafa_f2d71f0be44).</description>
    <link>https://dev.to/wajdy_mustafa_f2d71f0be44</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%2F4100793%2F7230fa4e-9dce-45bd-8822-fc3be6e8ba75.png</url>
      <title>DEV Community: Wajdy Mustafa</title>
      <link>https://dev.to/wajdy_mustafa_f2d71f0be44</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wajdy_mustafa_f2d71f0be44"/>
    <language>en</language>
    <item>
      <title>52% of tested MCP server endpoints were completely dead</title>
      <dc:creator>Wajdy Mustafa</dc:creator>
      <pubDate>Sat, 29 Aug 2026 22:09:39 +0000</pubDate>
      <link>https://dev.to/wajdy_mustafa_f2d71f0be44/52-of-tested-mcp-server-endpoints-were-completely-dead-1li1</link>
      <guid>https://dev.to/wajdy_mustafa_f2d71f0be44/52-of-tested-mcp-server-endpoints-were-completely-dead-1li1</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://n8nkit.com/blog-mcp-server-reliability.html" rel="noopener noreferrer"&gt;n8nkit.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A 2026 analysis of over 2,100 remote MCP server endpoints found that more than half were completely dead. Not erroring. Not timing out with a clear signal. Just not working ΓÇö while still accepting a connection.&lt;/p&gt;

&lt;p&gt;That statistic points at a category error most health checks make: treating "connected" and "working" as the same fact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this failure mode is easy to miss
&lt;/h2&gt;

&lt;p&gt;Most monitoring instinct comes from web services, where "connected" and "working" are close enough that conflating them rarely costs you. MCP breaks that assumption.&lt;/p&gt;

&lt;p&gt;The protocol layer (does the connection open) and the application layer (does a real tool call return a correct result) are genuinely separate questions. A server can complete a handshake, report itself as reachable, and still fail every actual tool call it receives. A connection-only check sees a green light. A user sees nothing happen.&lt;/p&gt;

&lt;p&gt;There's a second, quieter problem in the same neighborhood: &lt;strong&gt;MCP stdio servers communicate over stdout.&lt;/strong&gt; A single stray &lt;code&gt;print()&lt;/code&gt; or &lt;code&gt;console.log()&lt;/code&gt; ΓÇö the most natural debugging instinct there is ΓÇö writes directly into the protocol stream and corrupts every message that follows it.&lt;/p&gt;

&lt;p&gt;This is a documented, common mistake rather than an edge case, precisely &lt;em&gt;because&lt;/em&gt; logging to stdout is the default reflex for most developers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a real health check has to do
&lt;/h2&gt;

&lt;p&gt;The fix isn't more monitoring. It's monitoring the right thing.&lt;/p&gt;

&lt;p&gt;A health check that actually catches this has to make a round-trip tool call and verify the response, &lt;strong&gt;separately&lt;/strong&gt; from checking that the connection opened:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_server_health&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;connect_fn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;probe_fn&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout_seconds&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;10.0&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;connection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;connect_fn&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;healthy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;connect failed: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;probe_fn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;connection&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# a real tool call, not a ping
&lt;/span&gt;    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;healthy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;probe failed: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;healthy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;latency_ms&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;monotonic&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The distinction between &lt;code&gt;connect failed&lt;/code&gt; and &lt;code&gt;probe failed&lt;/code&gt; is the entire point. A server that connects but never responds correctly is exactly the case a connection-only check reports as healthy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The third piece: what happens after a connection drops
&lt;/h2&gt;

&lt;p&gt;Connections dropping mid-session is its own documented pattern, and MCP's protocol doesn't specify a standard recovery behavior. Without an explicit reconnection strategy, a dropped connection just means the integration silently stops working until something notices.&lt;/p&gt;

&lt;p&gt;Worth distinguishing two cases when you build this: a &lt;strong&gt;connection error&lt;/strong&gt; should trigger reconnect-and-retry, but a &lt;strong&gt;real application error&lt;/strong&gt; should propagate immediately. Retrying a genuine bug just turns a fast failure into a slow one.&lt;/p&gt;

&lt;h2&gt;
  
  
  If it's useful
&lt;/h2&gt;

&lt;p&gt;We packaged these three pieces ΓÇö health checks that separate connected from working, reconnection with backoff, and a logger that can't corrupt a stdio transport ΓÇö into a small kit, tested with 11 cases including the exact silent-failure scenario above: &lt;a href="https://n8nkitshop.gumroad.com/l/spsyvl" rel="noopener noreferrer"&gt;MCP Server Reliability Kit&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The patterns themselves are straightforward enough to build yourself from the sketch above, and honestly that's a fine outcome too. The 52% number is the part worth taking away.&lt;/p&gt;

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