RAG + 生成 AI であそぼう!の MCP サーバのコード
RAG + 生成AIであそぼう!のウェビナーで使用した MCP サーバー側コードです。
※ REST API 側のコードは https://github.com/Intersystems-jp/RAGandLLM-Asobo にあります。
※ 参考にしたページ:https://qiita.com/Maki-HamarukiLab/items/2f3230d5293beff2ca46
含まれるコンポーネント
ツール
この MCP サーバに含まれるツールは以下の通りです。
- upload_file魚の画像ファイルをUploadすると、魚名と魚IDが返ります。応答JSON例
- get_recipeレシピ生成を依頼できます。upload_file 実行時の応答とユーザの好みの情報や料理経験が入力情報で必要です。POST 要求の Body に指定している実際の JSON は以下の通りです。
- register_choka釣った魚の釣果を登録できます。upload_file で得られた魚名(FishName)と魚ID(FishID)を使用します。POST 要求の Body に指定している実際の JSON は以下の通りです。
Quickstart
Install
Claude Desktop の開発者用設定
- On MacOS
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
設定内容
Claude desktop の ファイル>設定>開発者 を開き「設定を編集」をクリックし設定用JSONに以下指定します。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A simple MCP server that implements a note storage system with RAG capabilities, allowing users to store notes and generate summaries of stored content.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server for managing and persisting notes, offering CRUD operations, note summarization, and resource-based access via a note:// URI scheme.Last updated -47MIT License
- -securityFlicense-qualityA simple note-taking MCP server that allows storing and summarizing notes with custom URI schemes and provides functionality to add notes and generate summaries with different detail levels.Last updated -5
- -securityFlicense-qualityA simple MCP server for creating and managing notes with support for summarization functionality.Last updated -1
- AsecurityFlicenseAqualityA simple MCP server implementing a note storage system with one tool to add notes and one prompt to summarize stored notes.Last updated -42