メモリカスタム
このプロジェクトは、MCPチームが提供するメモリサーバーに新機能を追加します。これにより、言語モデル(LLM)を介してインタラクションをキャプチャするナレッジグラフの作成と管理が可能になります。
新機能
1. カスタムメモリパス
- ユーザーは、さまざまなプロジェクトに対して異なるメモリ ファイル パスを指定できるようになりました。
- 理由: この機能により、メモリ データの編成と管理が強化され、プロジェクト固有のメモリ ストレージが可能になります。
2. タイムスタンプ
- サーバーは、インタラクションのタイムスタンプを生成するようになりました。
- 理由: タイムスタンプにより、各メモリがいつ作成または変更されたかを追跡できるようになり、保存されたデータのコンテキストと履歴が向上します。
はじめる
前提条件
- Node.js (バージョン 16 以上)
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Knowledge Graph Memory Server を自動的にインストールするには:
インストール
- リポジトリをクローンします。
- 依存関係をインストールします。
構成
サーバーを実行する前に、 MEMORY_FILE_PATH
環境変数を設定してメモリファイルのパスを指定できます。設定されていない場合、サーバーはデフォルトでスクリプトと同じディレクトリにあるmemory.json
を使用します。
サーバーの実行
MCP サーバーの JSON ファイルの更新
これをclaude_desktop_config.json
/ .cursor/mcp.json
ファイルに追加します。
システムプロンプトの変更:
ローカルでサーバーを実行する
Knowledge Graph メモリ サーバーを起動するには、次のコマンドを実行します。
サーバーは標準入出力を介してリクエストをリッスンします。
APIエンドポイント
サーバーは、特定のパラメータで呼び出すことができるいくつかのツールを公開します。
- 現在の時刻を取得する
- メモリファイルパスの設定
- エンティティを作成する
- リレーションを作成する
- 観察事項を追加する
- エンティティの削除
- 観察結果を削除
- 関係を削除
- グラフを読む
- 検索ノード
- オープンノード
謝辞
- Anthropic の Memory サーバーからインスピレーションを得ました。
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
言語モデルを介してインタラクションをキャプチャするためのカスタム メモリ パスやタイムスタンプなどの機能を備えたナレッジ グラフの作成と管理を可能にするカスタマイズされた MCP メモリ サーバー。
Related Resources
Related MCP Servers
- -securityAlicense-qualityThis project is based on the Knowledge Graph Memory Server from the MCP servers repository and retains its core functionality.Last updated -44107TypeScriptMIT License
- AsecurityAlicenseAqualityA custom Memory MCP Server that acts as a cache for Infrastructure-as-Code information, allowing users to store, summarize, and manage notes with a custom URI scheme and simple resource handling.Last updated -231PythonMIT License
- AsecurityFlicenseAqualityThis MCP server provides persistent memory integration for chat applications by utilizing a local knowledge graph to remember user information across interactions.Last updated -920,7171JavaScript
- -securityFlicense-qualityAn MCP server that allows Claude and other LLMs to manage persistent memories across conversations through text file storage, enabling commands to add, search, delete and list memory entries.Last updated -2TypeScript