1. Conduid
  2. Data
  3. Duckdb Memory Server
MCP server · Data

Duckdb Memory Server

MCP Memory Server with DuckDB backend

Unclaimed MIT last commit 6 months ago model-context-protocoldatamcpmcp-serverduckdb
80Excellent

Scored 11 hours ago · breakdown

About Duckdb Memory Server

Duckdb Memory Server is an MCP server published by IzumiSy in the Data category: mCP Memory Server with DuckDB backend.

The repository has 59 stars and 11 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/IzumiSy/mcp-duckdb-memory-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (8)

add_observationsAdd new observations to existing entities in the knowledge graph

Parameters not published.

create_entitiesCreate multiple new entities in the knowledge graph

Parameters not published.

create_relationsCreate multiple new relations between entities in the knowledge graph. Relations should be in active voice

Parameters not published.

delete_entitiesDelete multiple entities and their associated relations from the knowledge graph

Parameters not published.

delete_observationsDelete specific observations from entities in the knowledge graph

Parameters not published.

delete_relationsDelete multiple relations from the knowledge graph

Parameters not published.

open_nodesOpen specific nodes in the knowledge graph by their names

Parameters not published.

search_nodesSearch for nodes in the knowledge graph based on a query

Parameters not published.

Ask AI

✦

Ask AI about Duckdb Memory Server

Powered by Claude · Grounded in docs

I know everything about Duckdb Memory Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 11 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.1.10v1.1.10 · 15 Feb 2026Patch Changes d1ccfb9: Updated @modelcontextprotocol/sdk (^1.25.2 -> ^1.25.3) 4d2aced: Updated @modelcontextprotocol/sdk…
v1.1.9v1.1.9 · 13 Jan 2026Patch Changes 45c4e6e: Updated @modelcontextprotocol/sdk (^1.25.1 -> ^1.25.2)
v1.1.8v1.1.8 · 6 Jan 2026Patch Changes d5749ea: Updated @modelcontextprotocol/sdk (^1.20.1 -> ^1.25.1)
v1.1.7v1.1.7 · 31 Dec 2025Patch Changes c60d42e: Fix main field in package.json
v1.1.6v1.1.6 · 31 Dec 2025Patch Changes e56192f: Bump vitest from 3.2.4 to 4.0.16 b5340ca: Bump @types/node from 24.10.0 to 24.10.1 6115511: Bump prettier from 3.6.2 to 3.7.4 f225ad6: Bump tsup from 8.5.0 to 8.5.1 3b7f881: Bump @changesets/cli from 2.29.7 to 2.29.8…

README

MCP DuckDB Knowledge Graph Memory Server

Test smithery badge NPM Version NPM License

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:
     a) Create entities for recurring organizations, people, and significant events
     b) Connect them to the current entities using relations
     b) Store facts about them as observations

Motivation

This project enhances the original MCP Knowledge Graph Memory Server by replacing its backend with DuckDB.

Why DuckDB?

The original MCP Knowledge Graph Memory Server used a JSON file as its data store and performed in-memory searches. While this approach works well for small datasets, it presents several challenges:

  1. Performance: In-memory search performance degrades as the dataset grows
  2. Scalability: Memory usage increases significantly when handling large numbers of entities and relations
  3. Query Flexibility: Complex queries and conditional searches are difficult to implement
  4. Data Integrity: Ensuring atomicity for transactions and CRUD operations is challenging

DuckDB was chosen to address these challenges:

  • Fast Query Processing: DuckDB is optimized for analytical queries and performs well even with large datasets
  • SQL Interface: Standard SQL can be used to execute complex queries easily
  • Transaction Support: Supports transaction processing to maintain data integrity
  • Indexing Capabilities: Allows creation of indexes to improve search performance
  • Embedded Database: Works within the application without requiring an external database server

Implementation Details

This implementation uses DuckDB as the backend storage system, focusing on two key aspects:

Database Structure

The knowledge graph is stored in a relational database structure as shown below:

erDiagram
    ENTITIES {
        string name PK
        string entityType
    }
    OBSERVATIONS {
        string entityName FK
        string content
    }
    RELATIONS {
        string from_entity FK
        string to_entity FK
        string relationType
    }

    ENTITIES ||--o{ OBSERVATIONS : "has"
    ENTITIES ||--o{ RELATIONS : "from"
    ENTITIES ||--o{ RELATIONS : "to"

This schema design allows for efficient storage and retrieval of knowledge graph components while maintaining the relationships between entities, observations, and relations.

Fuzzy Search Implementation

The implementation combines SQL queries with Fuse.js for flexible entity searching:

  • DuckDB SQL queries retrieve the base data from the database
  • Fuse.js provides fuzzy matching capabilities on top of the retrieved data
  • This hybrid approach allows for both structured queries and flexible text matching
  • Search results include both exact and partial matches, ranked by relevance

Development

Setup

pnpm install

Testing

pnpm test

License

This project is licensed under the MIT License - see the LICENSE file for details.

README fetched from the repository 11 hours ago. The original is authoritative.

Questions

About Duckdb Memory Server

How do I install Duckdb Memory Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Duckdb Memory Server safe to use with an AI agent?

Its trust score is 80 out of 100 (excellent). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Duckdb Memory Server still maintained?

The last commit was 6 months ago and 15 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.