Skip to main content
Glama

Memory Custom

by BRO3886

メモリカスタム

このプロジェクトは、MCPチームが提供するメモリサーバーに新機能を追加します。これにより、言語モデル(LLM)を介してインタラクションをキャプチャするナレッジグラフの作成と管理が可能になります。

新機能

1. カスタムメモリパス

  • ユーザーは、さまざまなプロジェクトに対して異なるメモリ ファイル パスを指定できるようになりました。
  • 理由: この機能により、メモリ データの編成と管理が強化され、プロジェクト固有のメモリ ストレージが可能になります。

2. タイムスタンプ

  • サーバーは、インタラクションのタイムスタンプを生成するようになりました。
  • 理由: タイムスタンプにより、各メモリがいつ作成または変更されたかを追跡できるようになり、保存されたデータのコンテキストと履歴が向上します。

はじめる

前提条件

  • Node.js (バージョン 16 以上)

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Knowledge Graph Memory Server を自動的にインストールするには:

npx -y @smithery/cli install @BRO3886/mcp-memory-custom --client claude

インストール

  1. リポジトリをクローンします。
    git clone git@github.com:BRO3886/mcp-memory-custom.git cd mcp-memory-custom
  2. 依存関係をインストールします。
    npm install

構成

サーバーを実行する前に、 MEMORY_FILE_PATH環境変数を設定してメモリファイルのパスを指定できます。設定されていない場合、サーバーはデフォルトでスクリプトと同じディレクトリにあるmemory.jsonを使用します。

サーバーの実行

MCP サーバーの JSON ファイルの更新

これをclaude_desktop_config.json / .cursor/mcp.jsonファイルに追加します。

{ "mcpServers": { "memory": { "command": "node", "args": ["/path/to/mcp-memory-custom/dist/index.js"] } } }

システムプロンプトの変更:

Follow these steps for each interaction: 1. The memoryFilePath for this project is /path/to/memory/project_name.json - always pass this path to the memory file operations (when creating entities, relations, or retrieving memory etc.) 2. User Identification: - You should assume that you are interacting with default_user - If you have not identified default_user, proactively try to do so. 3. Memory Retrieval: - Always begin your chat by saying only "Remembering..." and retrieve all relevant information from your knowledge graph - Always refer to your knowledge graph as your "memory" 4. Memory - While conversing with the user, be attentive to any new information that falls into these categories: a) Basic Identity (age, gender, location, job title, education level, etc.) b) Behaviors (interests, habits, etc.) c) Preferences (communication style, preferred language, etc.) d) Goals (goals, targets, aspirations, etc.) e) Relationships (personal and professional relationships up to 3 degrees of separation) 5. Memory Update: - If any new information was gathered during the interaction, update your memory as follows: a) Create entities for recurring organizations, people, and significant events, add timestamps to wherever required. You can get current timestamp via get_current_time b) Connect them to the current entities using relations c) Store facts about them as observations, add timestamps to observations via get_current_time IMPORTANT: Provide a helpful and engaging response, asking relevant questions to encourage user engagement. Update the memory during the interaction, if required, based on the new information gathered (point 4).
ローカルでサーバーを実行する

Knowledge Graph メモリ サーバーを起動するには、次のコマンドを実行します。

npm run build node dist/index.js

サーバーは標準入出力を介してリクエストをリッスンします。

APIエンドポイント

サーバーは、特定のパラメータで呼び出すことができるいくつかのツールを公開します。

  • 現在の時刻を取得する
  • メモリファイルパスの設定
  • エンティティを作成する
  • リレーションを作成する
  • 観察事項を追加する
  • エンティティの削除
  • 観察結果を削除
  • 関係を削除
  • グラフを読む
  • 検索ノード
  • オープンノード

謝辞

  • Anthropic の Memory サーバーからインスピレーションを得ました。
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

言語モデルを介してインタラクションをキャプチャするためのカスタム メモリ パスやタイムスタンプなどの機能を備えたナレッジ グラフの作成と管理を可能にするカスタマイズされた MCP メモリ サーバー。

  1. 新機能
    1. カスタムメモリパス
    2. タイムスタンプ
  2. はじめる
    1. 前提条件
    2. Smithery経由でインストール
    3. インストール
    4. 構成
    5. サーバーの実行
  3. APIエンドポイント
    1. 謝辞

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        This project is based on the Knowledge Graph Memory Server from the MCP servers repository and retains its core functionality.
        Last updated -
        44
        107
        TypeScript
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        A 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 -
        23
        1
        Python
        MIT License
        • Apple
      • A
        security
        F
        license
        A
        quality
        This MCP server provides persistent memory integration for chat applications by utilizing a local knowledge graph to remember user information across interactions.
        Last updated -
        9
        20,717
        1
        JavaScript
      • -
        security
        F
        license
        -
        quality
        An 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 -
        2
        TypeScript

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/BRO3886/mcp-memory-custom'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server