<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>optim-riku-kataoka</author_name>
  <author_url>https://blog.hatena.ne.jp/optim-riku-kataoka/</author_url>
  <blog_title>OPTiM TECH BLOG</blog_title>
  <blog_url>https://tech-blog.optim.co.jp/</blog_url>
  <categories>
    <anon>Kotlin</anon>
    <anon>Spring</anon>
    <anon>LLM</anon>
    <anon>Advent Calendar</anon>
  </categories>
  <description>本記事では、Anthropicが提唱する MCP（Model Context Protocol） を Kotlin で実装する方法を紹介しています。MCPはLLMアプリケーションと外部ツール・データソースを接続するための標準プロトコルで、JSON-RPCを用いた通信を特徴とします。記事では Spring AI を利用し、Spring BootベースでMCPサーバーとクライアントを構築する手順を解説。サーバー側では@Toolアノテーションを使ったツール定義、クライアント側ではOpenAI APIとの連携を実装し、ツール呼び出しの流れやSpring AI内部の仕組みも詳しく説明しています。最後に、Spring AIの利点と現状の課題についてまとめ、LLMとMCPを活用した開発の可能性を示しています。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.optim.co.jp%2Fentry%2F2025%2F12%2F18%2F100000&quot; title=&quot;【Kotlin/Spring Boot】LLM×外部ツール連携をSpring AIで実現！MCP実装のガイド - OPTiM TECH 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/o/optim-tech/20251127/20251127102646.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-18 10:00:00</published>
  <title>【Kotlin/Spring Boot】LLM×外部ツール連携をSpring AIで実現！MCP実装のガイド</title>
  <type>rich</type>
  <url>https://tech-blog.optim.co.jp/entry/2025/12/18/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
