{"id":1635,"date":"2026-06-10T17:36:23","date_gmt":"2026-06-10T08:36:23","guid":{"rendered":"https:\/\/sheltie-garage.xyz\/tech\/?p=1635"},"modified":"2026-06-10T17:36:52","modified_gmt":"2026-06-10T08:36:52","slug":"python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/","title":{"rendered":"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u7121\u8077\u671f\u9593\u3067\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u306e\u5438\u53ce\u3068\u304b\u3001\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\u3092\u3061\u307e\u3061\u307e\u884c\u3063\u3066\u3044\u307e\u3059<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u300cLangChain, MCP\u300d\u3092\u89e6\u3063\u3066\u3044\u304d\u307e\u3059<br>\u7c21\u5358\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30cf\u30f3\u30ba\u30aa\u30f3\u3067\u9032\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f5c\u308b\u3082\u306e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u96fb\u5353\u3067\u8a08\u7b97\u304c\u3067\u304d\u3066\u3001\u5929\u6c17\u3092\u805e\u3051\u3070\u5929\u6c17\u3092\u8fd4\u3057\u3066\u304f\u308c\u308b\u3001\u305d\u3093\u306aAI\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8(\u7121\u80fd\u30fb\u30fb\u30fb)\u3092\u4f5c\u308a\u307e\u3059<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step1.\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6e96\u5099<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u9806\u756a\u306b\u5b9f\u884c\u3057\u307e\u3059<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>mkdir ai-agent-sample\ncd ai-agent-sample\n\nuv init\n\nuv add langchain\nuv add langchain-openai\nuv add mcp\nuv add python-dotenv<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">uv\u306fpython\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406 &amp; \u5b9f\u884c\u74b0\u5883\u3067\u3001pip\u3068venv\u304c\u6df7\u3056\u3063\u305f\u3088\u3046\u306a\u30c4\u30fc\u30eb<br>\u300cuv init\u300d\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u521d\u671f\u5316\u3057\u3001\u521d\u671f\u30d5\u30a1\u30a4\u30eb\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b<br>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306f\u300cuv add\u300d\u3067\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001pyproject.toml\u306b\u4f9d\u5b58\u95a2\u4fc2\u304c\u4fdd\u5b58\u3055\u308c\u308b<br>\u5b9f\u884c\u6642\u306f\u300cuv run xxx.py\u300d\u3067\u5b9f\u884c\u53ef\u80fd<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step2.MCP\u30b5\u30fc\u30d0\u30fc\u4f5c\u6210<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30f3\u30d7\u30eb\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u6210\u3057\u3001\u8d77\u52d5\u3057\u307e\u3059<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u76f4\u4e0b\u306b\u300cserver.py\u300d\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3057\u305f<br>(\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f5c\u6210\u3055\u308c\u308bmain.py\u306f\u524a\u9664)<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>from mcp.server.fastmcp import FastMCP\n\nmcp = FastMCP(&quot;sample-agent&quot;)\n\n# \u8db3\u3057\u7b97\u30c4\u30fc\u30eb\n@mcp.tool()\ndef add(a: int, b: int) -&gt; int:\n    return a + b;\n\n#\u304a\u5929\u6c17\u30c4\u30fc\u30eb\n@mcp.tool()\ndef wether(city: str) -&gt; str:\n    return f&quot;{city}\u306f\u6674\u308c\u3067\u3059&quot;\n\nif __name__ == &quot;__main__&quot;:\n    mcp.run()\n<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">FastMCP\u306b\u6e21\u3055\u308c\u308b\u5f15\u6570\u306f\u3001mcp\u30b5\u30fc\u30d0\u30fc\u306e\u540d\u524d\u306e\u3088\u3046\u306a\u6271\u3044<br>@mcp.tool\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u3067\u3001\u30c4\u30fc\u30eb\u3068\u3057\u3066\u5916\u90e8\u516c\u958b\u3055\u308c\u308b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step3.MCP\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u65bd<br>\u4e00\u5148\u305a\u3001\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3051\u308c\u3070\u8d77\u52d5\u6210\u529f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>uv run python server.py<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u305f\u3089\u3001\u5225\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u3092\u5b9f\u884c<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>npx @modelcontextprotocol\/inspector<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30e9\u30a6\u30b6\u304c\u7acb\u3061\u4e0a\u304c\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u30c4\u30fc\u30eb\u3092\u78ba\u8a8d\u3059\u308b<br>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3092\u884c\u3044\u3001Connect\u30dc\u30bf\u30f3\u3067MCP\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_001-1024x578.png\" alt=\"\" class=\"wp-image-1636\" srcset=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_001-1024x578.png 1024w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_001-300x169.png 300w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_001-768x433.png 768w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_001.png 1439w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">server.py\u3067\u4f5c\u6210\u3057\u305f\u30c4\u30fc\u30eb\u304c\u4e00\u89a7\u3067\u8868\u793a\u3055\u308c\u307e\u3057\u305f<br>add\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u53f3\u5074\u306b\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"741\" src=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002-1024x741.png\" alt=\"\" class=\"wp-image-1637\" srcset=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002-1024x741.png 1024w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002-300x217.png 300w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002-768x556.png 768w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png 1134w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step4.MCP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">client.py\u3092\u4f5c\u6210\u3057\u3066\u3001\u30c4\u30fc\u30eb\u4e00\u89a7\u306e\u53d6\u5f97\u3068add\u306e\u5b9f\u884c\u3092\u884c\u3063\u3066\u307f\u307e\u3059<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>import asyncio\n\nfrom mcp import ClientSession, StdioServerParameters\nfrom mcp.client.stdio import stdio_client\n\nasync def main():\n    server_params = StdioServerParameters(\n        command=&quot;uv&quot;,\n        args=[&quot;run&quot;, &quot;python&quot;, &quot;server.py&quot;]\n    )\n\n    async with stdio_client(server_params) as (read, write):\n        async with ClientSession(read, write) as session:\n            await session.initialize()\n\n            tools = await session.list_tools()\n\n            print(&quot;===== Tooles =====&quot;)\n                  \n            for tool in tools.tools:\n                print(tool.name)\n\n            print(&quot;===== Add =====&quot;)\n\n            result = await session.call_tool(\n                &quot;add&quot;,\n                {\n                    &quot;a&quot;: 1,\n                    &quot;b&quot;: 2,\n                }\n            )\n            print(result)\n                    \n\nif __name__ == &quot;__main__&quot;:\n    asyncio.run(main())<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u7d50\u679c\u4f8b\u3067\u3059<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code> uv run python client.py\nProcessing request of type ListToolsRequest\n===== Tooles =====\nadd\nweather\n===== Add =====\nProcessing request of type CallToolRequest\nmeta=None content=[TextContent(type=&#39;text&#39;, text=&#39;3&#39;, annotations=None, meta=None)] structuredContent={&#39;result&#39;: 3} isError=False<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c11\u3057\u898b\u306b\u304f\u3044\u3067\u3059\u304c\u30011+2\u304c\u8a08\u7b97\u3055\u308c\u30663\u304c\u8fd4\u5374\u3055\u308c\u3066\u3044\u307e\u3059<br>\u73fe\u5728\u306f\u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001python\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u76f4\u63a5mcp\u306eadd\u3092\u8aad\u3093\u3067\u3044\u307e\u3059\u304c\u3001\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067LangChain\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u3001LLM\u3068MCP\u30b5\u30fc\u30d0\u30fc\u306e\u9023\u643a\u304c\u5b9f\u73fe\u3057\u307e\u3059<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step5.LLM\u30e2\u30c7\u30eb\u3092\u547c\u3073\u51fa\u3059<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ed\u30fc\u30ab\u30eb\u306eOllama\u3092\u5229\u7528\u3057\u3066MCP\u3092\u5b9f\u9a13\u3057\u307e\u3059<br>\u307e\u305a\u306fOllama\u306b\u5bfe\u3057\u3066\u30c1\u30e3\u30c3\u30c8\u3092\u9001\u3063\u3066\u307f\u307e\u3059<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">llm_test.py<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>from langchain_ollama import ChatOllama\n\nllm = ChatOllama(\n    model=&quot;gemma4:e2b&quot;\n)\n\nresponse = llm.invoke(&quot;\u3053\u3093\u306b\u3061\u306f&quot;)\n\nprint(response.content)<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308b\u3068\u3001\u300c\u3053\u3093\u306b\u3061\u306f\u3002\u300d\u306e\u3088\u3046\u306a\u6328\u62f6\u304c\u8fd4\u3063\u3066\u304f\u308b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d9a\u3044\u3066\u3001LangChain\u306e\u52d5\u304d\u3082\u898b\u3066\u307f\u307e\u3059<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">tool_test.py<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>from langchain.tools import tool\n\n@tool\ndef weather(city: str) -&gt; str:\n    &quot;&quot;&quot;\u6307\u5b9a\u3057\u305f\u5e74\u306e\u5929\u6c17\u3092\u5e30\u3057\u307e\u3059&quot;&quot;&quot;\n    \n    print(f&quot;[TOOL\u5b9f\u884c] weather({city})&quot;)\n\n    return f&quot;{city}\u306f\u6674\u308c\u3067\u3059&quot;\n\nprint(weather.name)\nprint(weather.description)\nprint(weather.args)<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>weather\n\u6307\u5b9a\u3057\u305f\u5e74\u306e\u5929\u6c17\u3092\u5e30\u3057\u307e\u3059\n{&#39;city&#39;: {&#39;title&#39;: &#39;City&#39;, &#39;type&#39;: &#39;string&#39;}}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">@tool\u3092\u5229\u7528\u3059\u308b\u3068\u3001docstring\u304c\u5fc5\u9808\u3068\u306a\u308b\u3088\u3046\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3057\u305f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u6700\u5c0f\u9650\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u6e96\u5099\u3057\u3066\u3001LLM\u304c\u4f5c\u6210\u3057\u305f\u30c4\u30fc\u30eb\u3092\u9078\u629e\u3059\u308b\u69d8\u5b50\u3092\u89b3\u5bdf\u3057\u307e\u3059<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">agent_test.py<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>from langchain.tools import tool\nfrom langchain_ollama import ChatOllama\n\n@tool\ndef weather(city: str) -&gt; str:\n    &quot;&quot;&quot;\u6307\u5b9a\u3057\u305f\u90fd\u5e02\u306e\u5929\u6c17\u3092\u5e30\u3057\u307e\u3059&quot;&quot;&quot;\n\n    print(f&quot;[Tool\u5b9f\u884c] weather({city})&quot;)\n\n    return f&quot;{city}\u306f\u6674\u308c\u3067\u3059&quot;\n\nllm = ChatOllama(\n    model=&quot;gemma4:e2b&quot;\n)\n\nllm_with_tools = llm.bind_tools([weather])\n\nresponse = llm_with_tools.invoke(\n    &quot;\u6771\u4eac\u306e\u5929\u6c17\u3092\u6559\u3048\u3066&quot;\n)\n\nprint(response)<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>ai-agent-sample) MacBook-Pro ai-agent-sample % uv run python agent_test.py\ncontent=&#39;&#39; additional_kwargs={} response_metadata={&#39;model&#39;: &#39;gemma4:e2b&#39;, &#39;created_at&#39;: &#39;2026-06-10T07:06:42.457207Z&#39;, &#39;done&#39;: True, &#39;done_reason&#39;: &#39;stop&#39;, &#39;total_duration&#39;: 15426462624, &#39;load_duration&#39;: 518820958, &#39;prompt_eval_count&#39;: 64, &#39;prompt_eval_duration&#39;: 1254592000, &#39;eval_count&#39;: 187, &#39;eval_duration&#39;: 13640234000, &#39;logprobs&#39;: None, &#39;model_name&#39;: &#39;gemma4:e2b&#39;, &#39;model_provider&#39;: &#39;ollama&#39;} id=&#39;lc_run--019eb05a-9549-73f0-ae2e-f5d83fdafe93-0&#39; tool_calls=[{&#39;name&#39;: &#39;weather&#39;, &#39;args&#39;: {&#39;city&#39;: &#39;\u6771\u4eac&#39;}, &#39;id&#39;: &#39;90d50f05-c77b-425f-a341-cfe6accac6c3&#39;, &#39;type&#39;: &#39;tool_call&#39;}] invalid_tool_calls=[] usage_metadata={&#39;input_tokens&#39;: 64, &#39;output_tokens&#39;: 187, &#39;total_tokens&#39;: 251}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ec\u30b9\u30dd\u30f3\u30b9\u3067tool_calls\u304c\u8fd4\u5374\u3055\u308c\u3066\u3044\u3066\u3001\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step6.LLM\u304b\u3089\u547c\u3073\u51fa\u3057<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3044\u3088\u3044\u3088LLM\u304b\u3089MCP\u30b5\u30fc\u30d0\u30fc\u306b\u8a2d\u5b9a\u3057\u305f\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3057\u307e\u3059<br>\u307e\u305a\u306f\u624b\u52d5\u3067\u5229\u7528\u3059\u308btool\u3092\u6307\u5b9a\u3059\u308b\u30d1\u30bf\u30fc\u30f3<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>import asyncio\n\nfrom langchain.tools import tool\nfrom langchain_ollama import ChatOllama\n\nfrom mcp import ClientSession, StdioServerParameters\nfrom mcp.client.stdio import stdio_client\n\n@tool\ndef weather(city: str) -&gt; str:\n    &quot;&quot;&quot;\u6307\u5b9a\u3057\u305f\u90fd\u5e02\u306e\u5929\u6c17\u3092\u5e30\u3057\u307e\u3059&quot;&quot;&quot;\n    return &quot;dummy&quot;\n\nasync def main():\n    llm = ChatOllama(\n        model=&quot;gemma4:e2b&quot;\n    )\n\n    llm_with_tools = llm.bind_tools([weather])\n\n    response = llm_with_tools.invoke(\n        &quot;\u6771\u4eac\u306e\u5929\u6c17\u3092\u6559\u3048\u3066&quot;\n    )\n\n    print(response.tool_calls)\n\n    tool_call = response.tool_calls[0]\n\n    server_params = StdioServerParameters(\n        command=&quot;uv&quot;,\n        args=[&quot;run&quot;, &quot;python&quot;, &quot;server.py&quot;],\n    )\n\n    async with stdio_client(server_params) as (read, write):\n        async with ClientSession(read, write) as session:\n            await session.initialize()\n\n            result = await session.call_tool(\n                tool_call[&quot;name&quot;],\n                tool_call[&quot;args&quot;]\n            )\n\n            print(result)\n\nif __name__ == &quot;__main__&quot;:\n    asyncio.run(main())<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308bweather\u30c4\u30fc\u30eb\u306f\u30c0\u30df\u30fc\u95a2\u6570\u3068\u306a\u3063\u3066\u3044\u3066\u3001dummy\u304c\u8fd4\u5374\u3055\u308c\u307e\u3059<br>\u3067\u3082\u3001\u4eca\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3059\u3068<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>ai-agent-sample % uv run python agent_test.py \n[{&#39;name&#39;: &#39;weather&#39;, &#39;args&#39;: {&#39;city&#39;: &#39;\u6771\u4eac&#39;}, &#39;id&#39;: &#39;366711c7-4dfb-4566-9dca-c279b9649423&#39;, &#39;type&#39;: &#39;tool_call&#39;}]\nProcessing request of type CallToolRequest\nProcessing request of type ListToolsRequest\nmeta=None content=[TextContent(type=&#39;text&#39;, text=&#39;\u6771\u4eac\u306f\u6674\u308c\u3067\u3059&#39;, annotations=None, meta=None)] structuredContent={&#39;result&#39;: &#39;\u6771\u4eac\u306f\u6674\u308c\u3067\u3059&#39;} isError=False<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u304d\u3061\u3093\u3068\u300c\u6771\u4eac\u306f\u6674\u308c\u3067\u3059\u300d\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u304c\u8fd4\u5374\u3055\u308c\u3066\u3044\u307e\u3059<br>\u3053\u308c\u306f\u3001@tool\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308bweather\u306f\u300c\u540d\u79f0\u3084\u30d1\u30e9\u30e1\u30fc\u30bf\u306a\u3069\u306e\u547c\u3073\u51fa\u3057\u60c5\u5831\u306e\u307f\u300d\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3055\u308c\u3001\u5b9f\u969b\u306b\u306f\u5229\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3067\u3059<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u306fMCP\u30b5\u30fc\u30d0\u30fc\u306b\u8a2d\u5b9a\u3057\u305fweather\u30c4\u30fc\u30eb\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u6b63\u3057\u3044\u6587\u7ae0\u304c\u8fd4\u5374\u3055\u308c\u3066\u3044\u307e\u3059<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step7.\u30c4\u30fc\u30eb\u306e\u81ea\u52d5\u8a2d\u5b9a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">MCP\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c4\u30fc\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u81ea\u52d5\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>uv add langchain-mcp-adapters<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3068\u3057\u307e\u3057\u305f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">agent_test.py<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>import asyncio\n\nfrom langchain.tools import tool\nfrom langchain_ollama import ChatOllama\nfrom langchain_mcp_adapters.tools import load_mcp_tools\n\nfrom mcp import ClientSession, StdioServerParameters\nfrom mcp.client.stdio import stdio_client\n\n@tool\ndef weather(city: str) -&gt; str:\n    &quot;&quot;&quot;\u6307\u5b9a\u3057\u305f\u90fd\u5e02\u306e\u5929\u6c17\u3092\u5e30\u3057\u307e\u3059&quot;&quot;&quot;\n    return &quot;dummy&quot;\n\nasync def main():\n    llm = ChatOllama(\n        model=&quot;gemma4:e2b&quot;\n    )\n\n    server_params = StdioServerParameters(\n        command=&quot;uv&quot;,\n        args=[&quot;run&quot;, &quot;python&quot;, &quot;server.py&quot;],\n    )\n\n    async with stdio_client(server_params) as (read, write):\n        async with ClientSession(read, write) as session:\n            await session.initialize()\n\n            # \u30c4\u30fc\u30eb\u4e00\u89a7\u306e\u53d6\u5f97\n            tools = await load_mcp_tools(session)\n            llm_with_tools = llm.bind_tools(tools)\n\n            response = llm_with_tools.invoke(\n                &quot;1+2\u3092\u8a08\u7b97\u3057\u3066\u304f\u3060\u3055\u3044&quot;\n            )\n\n            print(&quot;===== Tool Calls =====&quot;)\n            print(response.tool_calls)\n\n            tool_call = response.tool_calls[0]\n\n            result = await session.call_tool(\n                tool_call[&quot;name&quot;],\n                tool_call[&quot;args&quot;]\n            )\n\n            weather_result = result.content[0].text\n\n            print(&quot;===== Tool Result =====&quot;)\n            print(weather_result)\n\n            print(&quot;===== Final Content =====&quot;)\n            final_response = llm.invoke(\n                f&quot;&quot;&quot;\n                \u30e6\u30fc\u30b6\u30fc\u306e\u8cea\u554f:\n                \u8a08\u7b97\u3092\u884c\u3063\u3066\n\n                \u30c4\u30fc\u30eb\u5b9f\u884c\u7d50\u679c\n                {weather_result}\n\n                \u30c4\u30fc\u30eb\u5b9f\u884c\u7d50\u679c\u3092\u4f7f\u3063\u3066\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\n                &quot;&quot;&quot;\n            )\n            print(final_response.content)\n\nif __name__ == &quot;__main__&quot;:\n    asyncio.run(main())<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">LLM\u306b\u6295\u3052\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u306b\u56fa\u5b9a\u306a\u306e\u3067\u3001\u30c6\u30b9\u30c8\u3059\u308b\u3068\u304d\u306f\u76f4\u63a5\u5909\u3048\u3066\u304f\u3060\u3055\u3044\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5929\u6c17\u3092\u805e\u3044\u3066\u898b\u305f\u3068\u304d\u306e\u7d50\u679c<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>MacBook-Pro ai-agent-sample % uv run python agent_test.py  \nProcessing request of type ListToolsRequest\n===== Tool Calls =====\n[{&#39;name&#39;: &#39;weather&#39;, &#39;args&#39;: {&#39;city&#39;: &#39;\u6771\u4eac&#39;}, &#39;id&#39;: &#39;243ede14-c039-4f69-b5d4-840fd12cbec4&#39;, &#39;type&#39;: &#39;tool_call&#39;}]\nProcessing request of type CallToolRequest\n===== Tool Result =====\n\u6771\u4eac\u306f\u6674\u308c\u3067\u3059\n===== Final Content =====\n\u6771\u4eac\u306f\u6674\u308c\u3067\u3059\u3002<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a08\u7b97\u3092\u884c\u308f\u305b\u3066\u307f\u305f\u3068\u304d\u306e\u7d50\u679c<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>MacBook-Pro ai-agent-sample % uv run python agent_test.py\nProcessing request of type ListToolsRequest\n===== Tool Calls =====\n[{&#39;name&#39;: &#39;add&#39;, &#39;args&#39;: {&#39;a&#39;: 1, &#39;b&#39;: 2}, &#39;id&#39;: &#39;ac56a447-3786-41d7-9df9-7dbd5e6f57ce&#39;, &#39;type&#39;: &#39;tool_call&#39;}]\nProcessing request of type CallToolRequest\n===== Tool Result =====\n3\n===== Final Content =====\n\u6050\u308c\u5165\u308a\u307e\u3059\u304c\u3001**\u3069\u306e\u3088\u3046\u306a\u8a08\u7b97\u3092\u3059\u308c\u3070\u826f\u3044\u304b**\u3001\u307e\u305f\u306f**\u8a08\u7b97\u306b\u5fc5\u8981\u306a\u60c5\u5831\uff08\u554f\u984c\u3084\u30c7\u30fc\u30bf\uff09**\u3092\u3054\u63d0\u793a\u304f\u3060\u3055\u3044\u3002\n\n\u300c\u30c4\u30fc\u30eb\u5b9f\u884c\u7d50\u679c\u300d\u3068\u3057\u3066\u300c3\u300d\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u6570\u5b57\u3092\u4f7f\u3063\u3066\u4f55\u3092\u8a08\u7b97\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u304c\u5206\u304b\u308a\u307e\u305b\u3093\u3002\n\n\u5177\u4f53\u7684\u306a\u3054\u8cea\u554f\u3092\u304a\u77e5\u3089\u305b\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u559c\u3093\u3067\u8a08\u7b97\u3044\u305f\u3057\u307e\u3059\u3002<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a08\u7b97\u7d50\u679c\u306e\u5fdc\u7b54\u7d50\u679c\u304c\u304a\u304b\u3057\u3044\u3067\u3059\u304c\u3001\u8a08\u7b97\u81ea\u4f53\u306f\u3042\u3063\u3066\u3044\u307e\u3057\u305f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee5\u4e0a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b7\u30f3\u30d7\u30eb\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\u5185\u5bb9\u3067\u3057\u305f<br>LLM\u304b\u3089MCP\u30b5\u30fc\u30d0\u30fc\u306e\u30c4\u30fc\u30eb\u304c\u547c\u3070\u308c\u308b\u5224\u65ad\u306fLLM\u5074\u3067\u884c\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3061\u3087\u3063\u3068\u9a5a\u304d\u3067\u3057\u305f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MCP\u306e\u4ed5\u7d44\u307f\u306f\u306a\u3093\u3068\u306a\u304f\u7406\u89e3\u3067\u304d\u305f\u306e\u3067\u3001\u6b21\u306fBlenderMCP\u306a\u3069\u306e\u3044\u308d\u3044\u308d\u306aMCP\u304c\u3069\u3046\u3084\u3063\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u8abf\u3079\u3066\u307f\u3066\u3001\u5b9f\u30a2\u30d7\u30ea\u3068\u306e\u9023\u643a\u65b9\u6cd5\u3092\u7406\u89e3\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3057\u305f<\/p>\n\n\n<div id=\"rinkerid1639\" class=\"yyi-rinker-contents  yyi-rinker-postid-1639 yyi-rinker-img-m yyi-rinker-catid-12 \">\n\t<div class=\"yyi-rinker-box\">\n\t\t<div class=\"yyi-rinker-image\">\n\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FMCP%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thumbnail.image.rakuten.co.jp\/@0_mall\/book\/cabinet\/9828\/9784839989828_1_4.jpg?_ex=128x128\" width=\"128\" height=\"128\" class=\"yyi-rinker-main-img\" style=\"border: none;\"><\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/div>\n\t\t<div class=\"yyi-rinker-info\">\n\t\t\t<div class=\"yyi-rinker-title\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FMCP%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\">\u30bc\u30ed\u304b\u3089\u5b66\u3076 MCP&#038;A2A\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580 AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u6642\u4ee3\u3092\u5207\u308a\u958b\u304f\u6b21\u4e16\u4ee3\u30d7\u30ed\u30c8\u30b3\u30eb \uff08Compass Books\u30b7\u30ea\u30fc\u30ba\uff09 [ \u5e03\u7559\u5ddd\u82f1\u4e00 ]<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"yyi-rinker-detail\">\n\t\t\t\t\t\t\t<div class=\"credit-box\">created by&nbsp;<a href=\"https:\/\/oyakosodate.com\/rinker\/\" rel=\"nofollow noopener\" target=\"_blank\" >Rinker<\/a><\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"price-box\">\n\t\t\t\t\t\t\t<span title=\"\" class=\"price\">\u00a53,520<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"price_at\">(2026\/6\/10 17:35:38\u6642\u70b9&nbsp;\u697d\u5929\u5e02\u5834\u8abf\u3079-<\/span><span title=\"\u3053\u306e\u30b5\u30a4\u30c8\u3067\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u306f\u5f53\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u8005\u306b\u3088\u308a\u904b\u55b6\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4fa1\u683c\u3001\u8ca9\u58f2\u53ef\u80fd\u60c5\u5831\u306f\u3001\u5909\u66f4\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u8cfc\u5165\u6642\u306b\u697d\u5929\u5e02\u5834\u5e97\u8217\uff08www.rakuten.co.jp\uff09\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u4fa1\u683c\u304c\u305d\u306e\u5546\u54c1\u306e\u8ca9\u58f2\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002\">\u8a73\u7d30)<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<ul class=\"yyi-rinker-links\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                    <li class=\"amazonlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/gp\/search?ie=UTF8&amp;keywords=MCP&amp;tag=monodon-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339\" rel=\"nofollow\" class=\"yyi-rinker-link\">Amazon<\/a>\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"rakutenlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FMCP%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\" class=\"yyi-rinker-link\">\u697d\u5929\u5e02\u5834<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"yahoolink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3DMCP\" rel=\"nofollow\" class=\"yyi-rinker-link\">Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t                \t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<div id=\"rinkerid1640\" class=\"yyi-rinker-contents  yyi-rinker-postid-1640 yyi-rinker-img-m yyi-rinker-catid-12 \">\n\t<div class=\"yyi-rinker-box\">\n\t\t<div class=\"yyi-rinker-image\">\n\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FClaude%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thumbnail.image.rakuten.co.jp\/@0_mall\/book\/cabinet\/6985\/9784297156985_1_36.jpg?_ex=128x128\" width=\"128\" height=\"128\" class=\"yyi-rinker-main-img\" style=\"border: none;\"><\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/div>\n\t\t<div class=\"yyi-rinker-info\">\n\t\t\t<div class=\"yyi-rinker-title\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FClaude%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\">Claude Code\u3067\u5b66\u3076 Agent Skills\u5165\u9580 [ \u4f50\u85e4 \u4eae ]<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"yyi-rinker-detail\">\n\t\t\t\t\t\t\t<div class=\"credit-box\">created by&nbsp;<a href=\"https:\/\/oyakosodate.com\/rinker\/\" rel=\"nofollow noopener\" target=\"_blank\" >Rinker<\/a><\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"price-box\">\n\t\t\t\t\t\t\t<span title=\"\" class=\"price\">\u00a52,860<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"price_at\">(2026\/6\/10 17:36:05\u6642\u70b9&nbsp;\u697d\u5929\u5e02\u5834\u8abf\u3079-<\/span><span title=\"\u3053\u306e\u30b5\u30a4\u30c8\u3067\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u306f\u5f53\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u8005\u306b\u3088\u308a\u904b\u55b6\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4fa1\u683c\u3001\u8ca9\u58f2\u53ef\u80fd\u60c5\u5831\u306f\u3001\u5909\u66f4\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u8cfc\u5165\u6642\u306b\u697d\u5929\u5e02\u5834\u5e97\u8217\uff08www.rakuten.co.jp\uff09\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u4fa1\u683c\u304c\u305d\u306e\u5546\u54c1\u306e\u8ca9\u58f2\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002\">\u8a73\u7d30)<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<ul class=\"yyi-rinker-links\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                    <li class=\"amazonlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/gp\/search?ie=UTF8&amp;keywords=Claude&amp;tag=monodon-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339\" rel=\"nofollow\" class=\"yyi-rinker-link\">Amazon<\/a>\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"rakutenlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FClaude%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\" class=\"yyi-rinker-link\">\u697d\u5929\u5e02\u5834<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"yahoolink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3DClaude\" rel=\"nofollow\" class=\"yyi-rinker-link\">Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t                \t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7121\u8077\u671f\u9593\u3067\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u306e\u5438\u53ce\u3068\u304b\u3001\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\u3092\u3061\u307e\u3061\u307e\u884c\u3063\u3066\u3044\u307e\u3059 \u4eca\u56de\u306f\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u300cLangChain, MCP\u300d\u3092\u89e6\u3063\u3066\u3044\u304d\u307e\u3059\u7c21\u5358\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30cf\u30f3\u30ba\u30aa\u30f3\u3067\u9032\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f \u4f5c\u308b\u3082\u306e \u96fb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1637,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-1635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12","entry","has-media"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b - Sheltie Garage Tech<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306amcp\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b - Sheltie Garage Tech\" \/>\n<meta property=\"og:description\" content=\"\u7121\u8077\u671f\u9593\u3067\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u306e\u5438\u53ce\u3068\u304b\u3001\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\u3092\u3061\u307e\u3061\u307e\u884c\u3063\u3066\u3044\u307e\u3059 \u4eca\u56de\u306f\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u300cLangChain, MCP\u300d\u3092\u89e6\u3063\u3066\u3044\u304d\u307e\u3059\u7c21\u5358\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30cf\u30f3\u30ba\u30aa\u30f3\u3067\u9032\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f \u4f5c\u308b\u3082\u306e \u96fb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306amcp\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\/\" \/>\n<meta property=\"og:site_name\" content=\"Sheltie Garage Tech\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-10T08:36:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-10T08:36:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1134\" \/>\n\t<meta property=\"og:image:height\" content=\"821\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"monodon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"monodon\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"22\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/\"},\"author\":{\"name\":\"monodon\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#\\\/schema\\\/person\\\/f67942d4a63ae93a823618fc5a09077f\"},\"headline\":\"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\",\"datePublished\":\"2026-06-10T08:36:23+00:00\",\"dateModified\":\"2026-06-10T08:36:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/\"},\"wordCount\":100,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/20260610_002.png\",\"articleSection\":[\"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/\",\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/\",\"name\":\"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b - Sheltie Garage Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/20260610_002.png\",\"datePublished\":\"2026-06-10T08:36:23+00:00\",\"dateModified\":\"2026-06-10T08:36:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#\\\/schema\\\/person\\\/f67942d4a63ae93a823618fc5a09077f\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/20260610_002.png\",\"contentUrl\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/20260610_002.png\",\"width\":1134,\"height\":821},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2026\\\/06\\\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#website\",\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/\",\"name\":\"Sheltie Garage Tech\",\"description\":\"\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u95a2\u9023\u306e\u8a71\u984c\u3092\u307e\u3068\u3081\u305f\u30d6\u30ed\u30b0\u3067\u3059\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#\\\/schema\\\/person\\\/f67942d4a63ae93a823618fc5a09077f\",\"name\":\"monodon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g\",\"caption\":\"monodon\"},\"sameAs\":[\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\"],\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/author\\\/monodon\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b - Sheltie Garage Tech","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306amcp\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\/","og_locale":"ja_JP","og_type":"article","og_title":"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b - Sheltie Garage Tech","og_description":"\u7121\u8077\u671f\u9593\u3067\u30c8\u30ec\u30f3\u30c9\u6280\u8853\u306e\u5438\u53ce\u3068\u304b\u3001\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\u3092\u3061\u307e\u3061\u307e\u884c\u3063\u3066\u3044\u307e\u3059 \u4eca\u56de\u306f\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u300cLangChain, MCP\u300d\u3092\u89e6\u3063\u3066\u3044\u304d\u307e\u3059\u7c21\u5358\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30cf\u30f3\u30ba\u30aa\u30f3\u3067\u9032\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f \u4f5c\u308b\u3082\u306e \u96fb [&hellip;]","og_url":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306amcp\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b\/","og_site_name":"Sheltie Garage Tech","article_published_time":"2026-06-10T08:36:23+00:00","article_modified_time":"2026-06-10T08:36:52+00:00","og_image":[{"width":1134,"height":821,"url":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png","type":"image\/png"}],"author":"monodon","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"monodon","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"22\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#article","isPartOf":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/"},"author":{"name":"monodon","@id":"https:\/\/sheltie-garage.xyz\/tech\/#\/schema\/person\/f67942d4a63ae93a823618fc5a09077f"},"headline":"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b","datePublished":"2026-06-10T08:36:23+00:00","dateModified":"2026-06-10T08:36:52+00:00","mainEntityOfPage":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/"},"wordCount":100,"commentCount":0,"image":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#primaryimage"},"thumbnailUrl":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png","articleSection":["AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/","url":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/","name":"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b - Sheltie Garage Tech","isPartOf":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#primaryimage"},"image":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#primaryimage"},"thumbnailUrl":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png","datePublished":"2026-06-10T08:36:23+00:00","dateModified":"2026-06-10T08:36:52+00:00","author":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/#\/schema\/person\/f67942d4a63ae93a823618fc5a09077f"},"breadcrumb":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#primaryimage","url":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png","contentUrl":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2026\/06\/20260610_002.png","width":1134,"height":821},{"@type":"BreadcrumbList","@id":"https:\/\/sheltie-garage.xyz\/tech\/2026\/06\/python%e3%83%aa%e3%82%b9%e3%82%ad%e3%83%aa%e3%83%b3%e3%82%b0%ef%bc%9a%e7%b0%a1%e5%8d%98%e3%81%aamcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/sheltie-garage.xyz\/tech\/"},{"@type":"ListItem","position":2,"name":"python\u30ea\u30b9\u30ad\u30ea\u30f3\u30b0\uff1a\u7c21\u5358\u306aMCP\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u3063\u3066\u307f\u308b"}]},{"@type":"WebSite","@id":"https:\/\/sheltie-garage.xyz\/tech\/#website","url":"https:\/\/sheltie-garage.xyz\/tech\/","name":"Sheltie Garage Tech","description":"\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u95a2\u9023\u306e\u8a71\u984c\u3092\u307e\u3068\u3081\u305f\u30d6\u30ed\u30b0\u3067\u3059","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sheltie-garage.xyz\/tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/sheltie-garage.xyz\/tech\/#\/schema\/person\/f67942d4a63ae93a823618fc5a09077f","name":"monodon","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g","caption":"monodon"},"sameAs":["https:\/\/sheltie-garage.xyz\/tech"],"url":"https:\/\/sheltie-garage.xyz\/tech\/author\/monodon\/"}]}},"_links":{"self":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts\/1635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/comments?post=1635"}],"version-history":[{"count":2,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts\/1635\/revisions"}],"predecessor-version":[{"id":1641,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts\/1635\/revisions\/1641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/media\/1637"}],"wp:attachment":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/media?parent=1635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/categories?post=1635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/tags?post=1635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}