<?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: GrahamduesCN</title>
    <description>The latest articles on DEV Community by GrahamduesCN (@grahamduescn).</description>
    <link>https://dev.to/grahamduescn</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3942059%2F16b8d70b-1569-46d1-81de-63c48f003715.jpg</url>
      <title>DEV Community: GrahamduesCN</title>
      <link>https://dev.to/grahamduescn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/grahamduescn"/>
    <language>en</language>
    <item>
      <title>How to build your first MCP server in 10 minutes</title>
      <dc:creator>GrahamduesCN</dc:creator>
      <pubDate>Wed, 20 May 2026 18:00:03 +0000</pubDate>
      <link>https://dev.to/grahamduescn/how-to-build-your-first-mcp-server-in-10-minutes-2afp</link>
      <guid>https://dev.to/grahamduescn/how-to-build-your-first-mcp-server-in-10-minutes-2afp</guid>
      <description>&lt;p&gt;I built my first MCP server last week and it was way simpler than I expected. Here is exactly how, no fluff.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Node.js 20+&lt;/li&gt;
&lt;li&gt;10 minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Scaffold
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-mcp-server my-first-server
&lt;span class="nb"&gt;cd &lt;/span&gt;my-first-server
npm &lt;span class="nb"&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This generates a complete TypeScript project with one example tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Add your tool
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;src/index.ts&lt;/code&gt;. Replace the hello tool with whatever you want:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setRequestHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;CallToolRequestSchema&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;args&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;current_time&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[{&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;text&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;toISOString&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;}]&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`Unknown tool: &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Build and connect
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add to Claude Desktop config and you are done.&lt;/p&gt;

&lt;p&gt;The whole thing took me 8 minutes. Most of that was reading the docs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The MCP SDK handles all the transport layer — you just define tools&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;StdioServerTransport&lt;/code&gt; means your server runs as a subprocess. No HTTP, no port conflicts&lt;/li&gt;
&lt;li&gt;Error handling is important. If your tool crashes, the whole MCP connection breaks&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Want to try it?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; mcp-hub
mcp-hub search mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;em&gt;Built with &lt;a href="https://github.com/GrahamduesCN/mcp-platform" rel="noopener noreferrer"&gt;mcp-hub&lt;/a&gt;. If this helps, &lt;a href="https://paypal.me/GrahamduesCN" rel="noopener noreferrer"&gt;buy me a coffee&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>cli</category>
      <category>typescript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>I built mcp-hub — a CLI to find and install MCP servers without digging through npm</title>
      <dc:creator>GrahamduesCN</dc:creator>
      <pubDate>Wed, 20 May 2026 11:13:17 +0000</pubDate>
      <link>https://dev.to/grahamduescn/i-built-mcp-hub-a-cli-to-find-and-install-mcp-servers-without-digging-through-npm-510</link>
      <guid>https://dev.to/grahamduescn/i-built-mcp-hub-a-cli-to-find-and-install-mcp-servers-without-digging-through-npm-510</guid>
      <description>&lt;p&gt;MCP has 13,000+ servers and 97M monthly SDK downloads. But finding them sucks — you search npm with weird prefixes or dig through GitHub folders.&lt;/p&gt;

&lt;p&gt;So I built &lt;code&gt;mcp-hub&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; mcp-hub
mcp-hub search database
mcp-hub &lt;span class="nb"&gt;install&lt;/span&gt; @modelcontextprotocol/server-postgres
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;mcp-hub search&lt;/code&gt; — find servers by keyword&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mcp-hub install&lt;/code&gt; — one command, real npm package&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mcp-hub popular&lt;/code&gt; — see what is trending&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Terminal-based. TypeScript + Node.js. No framework, just commander + chalk.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I got wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;npm install -g&lt;/code&gt; needs sudo on Linux. Added &lt;code&gt;--method npx&lt;/code&gt; but it is clunky.&lt;/li&gt;
&lt;li&gt;Only 5 servers in the registry. Need a submission system.&lt;/li&gt;
&lt;li&gt;Web dashboard is static HTML loading from a JSON file.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;p&gt;TypeScript + Node.js + commander + chalk. Zero framework.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/GrahamduesCN/mcp-platform" rel="noopener noreferrer"&gt;https://github.com/GrahamduesCN/mcp-platform&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Landing: &lt;a href="https://grahamduescn.github.io/mcp-platform" rel="noopener noreferrer"&gt;https://grahamduescn.github.io/mcp-platform&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Install: &lt;code&gt;npm i -g mcp-hub&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If this helps you, PayPal: paypal.me/GrahamduesCN&lt;br&gt;
If it breaks, open an issue. Feedback welcome.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>cli</category>
      <category>typescript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
