メモリ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
という名前のファイルにメモリを保存します。
ライセンス
マサチューセッツ工科大学
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Claude がローカル 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 -2TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.Last updated -352513MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots in real-time.Last updated -45254JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables Claude to perform advanced web research with intelligent search queuing, enhanced content extraction, and deep research capabilities.Last updated -111TypeScriptMIT License