IM

izumisy/mcp-duckdb-memory-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

59 stars 12 forks 品質 67 トレンド 13MIT

DuckDB バックエンドの MCP メモリ サーバー

概要

公式のナレッジグラフ・メモリ・サーバーのフォーク版。 インストールするには DuckDB ナレッジ グラフ メモリ サーバー Claude デスクトップ 自動的にスミサリーを介して: それ以外の場合は、 claude desktop config.json に @IzumiSy/mcp-duckdb-memory-server を手動で追加します(MEMORY FILE PATH はオプションです) そのパスに保存されたデータはDuckDBデータベースファイルです。 このプロジェクトは、DuckDB でバックエンドを交換することで、元の MCP ナレッジ グラフ メモリ サーバーを強化します。 元の MCP ナレッジ グラフ メモリ サーバーは、JSON ファイルをデータストアとして使用し、メモリ内検索を実行しました。 このアプローチは小さなデータセットでうまく機能しますが、いくつかの課題があります。 1. : データセットが成長するにつれて、インメモリー検索のパフォーマンスが劣化します。 : 大量のエンティティティとリレーションを扱う場合、メモリ使用量が大幅に増加します。 3. : 複雑なクエリと条件付き検索は4を実装するのは困難です.

概要(AI 翻訳)

公式のナレッジグラフ・メモリ・サーバーのフォーク版。

インストール

##Smitheryでインストールする

インストールするには DuckDB ナレッジ グラフ メモリ サーバー Claude デスクトップ 自動的にスミサリーを介して:

マニュアルインストール

それ以外の場合は、手動で[[claude_desktop_config.json]]に[[MEMORY_FILE_PATH]]を追加してください。

そのパスに保存されたデータはDuckDBデータベースファイルです。

ドッカー

ビルド

ログイン

使用法

以下の例の指示を使用してください。

モチベーション

このプロジェクトは、DuckDB でバックエンドを交換することで、元の MCP ナレッジ グラフ メモリ サーバーを強化します。

##DuckDBの理由

元の MCP ナレッジ グラフ メモリ サーバーは、JSON ファイルをデータストアとして使用し、メモリ内検索を実行しました。 このアプローチは小さなデータセットでうまく機能しますが、いくつかの課題があります。

1.Performance:データセットが成長するにつれて、メモリ内検索性能が低下します 2.Scalability:多数の実体および関係を扱う場合の記憶使用法は著しく増加します 3.Flexibility:複雑なクエリと条件付き検索は実装が困難 4.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP DuckDB Knowledge Graph Memory Server

A forked version of the official Knowledge Graph Memory Server.

Installation

Installing via Smithery

To install DuckDB Knowledge Graph Memory Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @IzumiSy/mcp-duckdb-memory-server --client claude

Manual install

Otherwise, add @IzumiSy/mcp-duckdb-memory-server in your claude_desktop_config.json manually (MEMORY_FILE_PATH is optional)

{
  "mcpServers": {
    "graph-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@izumisy/mcp-duckdb-memory-server"
      ],
      "env": {
        "MEMORY_FILE_PATH": "/path/to/your/memory.data"
      }
    }
  }
}

The data stored on that path is a DuckDB database file.

Docker

Build

docker build -t mcp-duckdb-graph-memory .

Run

docker run -dit mcp-duckdb-graph-memory

Usage

Use the example instruction below

Follow these steps for each interaction:

1. User Identification:
   - You should assume that you are interacting with default_user
   - If you have not identified default_user, proactively try to do so.

2. Memory Retrieval:
   - Always begin your chat by saying only "Remembering..." and search relevant information from your knowledge graph
   - Create a search query from user words, and search things from "memory". If nothing matches, try to break down words in the query at first ("A B" to "A" and "B" for example).
   - Always refer to your knowledge graph as your "memory"

3. 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)

4. Memory Update:
   - If any new information was gathered during the interaction, update your memory as follows:
GitHub で README 全文を見る

インストール

npx -y @izumisy/mcp-duckdb-memory-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "graph-memory": { "command": "npx", "args": [ "-y", "@izumisy/mcp-duckdb-memory-server" ], "env": { "MEMORY_FILE_PATH": "/path/to/your/memory.data" } } } }