<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuta-nakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yuta-nakata/</author_url>
  <blog_title>Yuta NakataのBlog</blog_title>
  <blog_url>https://www.yuta-nakata.net/</blog_url>
  <categories>
    <anon>生成AI</anon>
    <anon>MCP</anon>
    <anon>Python</anon>
    <anon>IT</anon>
  </categories>
  <description>MCP の概念を押さえたら、次は自分でサーバーを書く番です。以前の記事(MCP/MCPサーバーに入門したい)ではプロトコルの考え方を整理しましたが、今回はその続編として、Python SDK で動くサーバーを作り Claude Code から呼ぶまでを通しでやります。 なお MCP Python SDK は 2026年7月28日にメジャーバージョン v2 が出て、サーバークラスの名前が FastMCP から MCPServer に変わりました。ネット上のサンプルはまだ v1 前提のものが大半なので、この記事は 2026年8月時点の v2(mcp 2.0.0)に沿って書きます。 MCPサーバーが…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2026%2F08%2F02%2F103606&quot; title=&quot;【実践】MCPサーバーを自作する｜Python SDKで作って Claude Code から使うまで - Yuta NakataのBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuta-nakata/20260802/20260802103846.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-08-02 10:36:06</published>
  <title>【実践】MCPサーバーを自作する｜Python SDKで作って Claude Code から使うまで</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2026/08/02/103606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
