KuzuMem MCP Server

MCP tool for distributed graph memory bank storage in KuzuDB for coding agents

Local serverstdioTypeScript

What is the KuzuMem MCP Server?

MCP tool for distributed graph memory bank storage in KuzuDB for coding agents

The short version

A TypeScript implementation of a distributed memory bank as an MCP (Model Context Protocol) tool, storing memories in a KùzuDB graph database with repository and branch filtering capabilities. Branch isolation is achieved by using a graph-unique identifier for entities, enabling a centralized memory bank while allowing repository-specific and branch-specific views. Fully compliant with MCP specification for seamless integration with IDEs and AI agents.

  • 🧠 AI-Powered Memory Optimization — - Advanced reasoning models (OpenAI o3/o4-mini, Claude 4) with MCP sampling for intelligent memory management
  • 🛡️ Production-Ready Safety — - Automatic snapshot system with guaranteed rollback capabilities
  • 🎯 Context-Aware Intelligence — - MCP sampling analyzes actual memory state for adaptive optimization strategies
  • 🔧 Unified Tool Architecture — - 12 consolidated tools covering all memory bank operations
  • 🧵 Thread-Safe Singleton Pattern — - Ensures each resource is instantiated only once, with proper thread safety
  • 📊 Distributed Graph Structure — - Follows the advanced memory bank specification using a KùzuDB graph

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the KuzuMem MCP Server

{
  "mcpServers": {
    "KuzuMem-MCP": {
      "command": "npx",
      "args": [
        "-y",
        "ts-node",
        "/absolute/path/to/kuzumem-mcp/src/mcp-stdio-server.ts"
      ],
      "env": {
        "PORT": "3000",
        "HOST": "localhost",
        "DB_FILENAME": "memory-bank.kuzu",
        "HTTP_STREAM_PORT": "3001"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
PORTDeclared in the maintainer’s client configuration.Check documentation
HOSTDeclared in the maintainer’s client configuration.Check documentation
DB_FILENAMEDeclared in the maintainer’s client configuration.Check documentation
HTTP_STREAM_PORTDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use KuzuMem MCP to Features.”

Frequently asked questions

MCP tool for distributed graph memory bank storage in KuzuDB for coding agents Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.