メモリMCPサーバー
ローカル ファイルに保存されたメモリを保存、取得、管理するためのツールを提供するモデル コンテキスト プロトコル (MCP) サーバー。
特徴
- オプションのタグを使用してテキストメモリを保存する
- テキストまたはタグで思い出を検索
- 保存されたすべての記憶を取得する
- 特定の記憶を削除する
- タグの使用統計を表示する
- ローカルJSONファイルへの永続的な保存
インストール
ソースから
- このリポジトリをクローンする
- 依存関係をインストールします:
- サーバーを構築します。
使用法
サーバーの実行
次のコマンドでサーバーを実行します。
ここで、 storage-path
は、memory ファイルを保存するディレクトリです (デフォルトは現在のディレクトリ)。
Claude for Desktop の設定
このサーバーをClaude for Desktopで使用するには:
- Claude for Desktop の構成ファイルを開きます。
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- サーバー構成を追加します。
- Claude for Desktop を再起動してください。変更を有効にするには、実行中の Claude プロセスを強制終了する必要がある場合があります。
利用可能なツール
サーバーは次のツールを公開します。
store-memory
新しいメモリを保存します。
パラメータ:
content
(文字列、必須): 保存するテキストコンテンツtags
(文字列の配列、オプション): メモリを分類するためのタグ
search-memories
思い出を探します。
パラメータ:
searchTerm
(文字列、オプション): メモリコンテンツ内で検索するテキストtag
(文字列、オプション):このタグで思い出をフィルタリングする
get-all-memories
保存されているすべてのメモリを取得します。
パラメータ: なし
delete-memory
ID でメモリを削除します。
パラメータ:
id
(文字列、必須): 削除するメモリのID
get-tags-summary
使用されたすべてのタグの概要を取得します。
パラメータ: なし
クロードでの使用例
Claude で使用するクエリの例を次に示します。
- 「この情報を保存してください: プロジェクトの締め切りは 2025 年 3 月 15 日です。タグ: 作業、締め切り」
- 「仕事に関連した思い出は何か?」
- 「私の思い出を全部見せて」
- 「ID abc123のメモリを削除」
- 「思い出の中でどんなタグを使ったことがあるだろうか?」
ファイル構造
サーバーは、指定されたストレージ ディレクトリ内のmemories.json
という名前のファイルにメモリを保存します。
ライセンス
マサチューセッツ工科大学
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.Last updated -TypeScript
Rember MCPofficial
-securityAlicense-qualityA Model Context Protocol server that allows Claude to create flashcards for Rember, helping users study and remember information through spaced repetition reviews.Last updated -8816TypeScriptMIT License- -securityAlicense-qualityA Model Context Protocol server that enables Claude to interact directly with Contentful CMS, allowing the AI to fetch content types and entries from a Contentful space.Last updated -1TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables Claude to interact with your Todoist account, allowing you to manage tasks, projects, and labels through natural language.Last updated -1Python