Knowledge Graph Memory

v1.0.0Knowledge & Memorystable

A persistent memory server that implements a local knowledge graph using the Kuzu embedded database to store entities, relationships, and observations. It enables AI models to maintain structured long-term context through searchable nodes and compreh

knowledge-graph-memory-servermcpai-integration
Share:
51
Stars
0
Downloads
0
Weekly
0/5

What is Knowledge Graph Memory?

Knowledge Graph Memory is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to persistent memory server that implements a local knowledge graph using the kuzu embedded database to store entities, relationships, and observations. it enables ai models to maintain structured long-t...

A persistent memory server that implements a local knowledge graph using the Kuzu embedded database to store entities, relationships, and observations. It enables AI models to maintain structured long-term context through searchable nodes and compreh

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A persistent memory server that implements a local knowledge

Use Cases

Store entities, relationships, and observations in a persistent local knowledge graph using Kuzu database.
T1nker-1220

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMar 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx knowledge-graph-memory-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Knowledge Graph Memory

Knowledge Graph Memory Server gives AI assistants a persistent, structured memory layer backed by a local Kuzu embedded graph database, allowing Claude to remember entities, relationships, and observations across separate chat sessions. It extends the basic entity-relation model with a dedicated lesson system that captures error patterns, their solutions, verification steps, and success rates — so the AI can learn from past mistakes, not just recall facts. Developers and power users deploy it to give Claude durable context about their codebase, team, ongoing projects, and recurring technical problems.

Prerequisites

  • Node.js 18 or higher
  • npm or npx available on your PATH
  • An MCP-compatible client such as Claude Desktop or Claude Code
  • Local write access for the Kuzu database file (stored in the project directory by default)
1

Clone the repository

Clone the memories-with-lessons-mcp-server repository from GitHub.

git clone https://github.com/T1nker-1220/memories-with-lessons-mcp-server.git
cd memories-with-lessons-mcp-server
2

Install dependencies

Install the Node.js dependencies including the Kuzu embedded database client.

npm install
3

Build the server

Compile the TypeScript source to JavaScript.

npm run build
4

Configure your MCP client

Add the server to your MCP client's configuration file. The server uses npx to run; adjust the path if running from a local build. No API keys or external services are required — the graph database is stored locally.

{
  "mcpServers": {
    "knowledge-graph-memory": {
      "command": "npx",
      "args": ["knowledge-graph-memory-server"]
    }
  }
}
5

Restart your MCP client

Restart Claude Desktop or your client after saving the configuration. The memory tools (create_entities, create_relations, add_observations, search_nodes, create_lesson, etc.) will appear in the available tools list.

Knowledge Graph Memory Examples

Client configuration (Claude Desktop)

Full claude_desktop_config.json entry for the Knowledge Graph Memory server. For a local build, replace the npx command with the path to your built dist/index.js file.

{
  "mcpServers": {
    "knowledge-graph-memory": {
      "command": "npx",
      "args": ["knowledge-graph-memory-server"]
    }
  }
}

Prompts to try

These prompts demonstrate entity creation, observation tracking, relationship building, and lesson capture across the available tools.

- "Remember that John Smith works at Anthropic and prefers morning meetings"
- "Create an entity for my project 'auth-refactor' and note that it depends on the users table"
- "Search the knowledge graph for anything related to authentication errors"
- "Show me everything you remember about my team members"
- "Record a lesson: when npm install fails with ERESOLVE, the fix is to add --legacy-peer-deps"

Troubleshooting Knowledge Graph Memory

npx fails with 'package not found' or the server does not start

Try installing the package globally first with 'npm install -g knowledge-graph-memory-server', then use the global binary in your config instead of npx. Alternatively, clone and build locally and point the config at your 'dist/index.js' file.

Entities created in one session are not visible in a new chat

The Kuzu database file must persist on disk between sessions. Check that the server writes to a fixed path (not a temp directory). Confirm the same server process reads from the same data directory on restart.

add_observations fails with 'entity does not exist'

Observations can only be added to entities that already exist in the graph. Use create_entities first to create the entity, then add_observations. Use read_graph or search_nodes to confirm the entity name before adding observations.

Frequently Asked Questions about Knowledge Graph Memory

What is Knowledge Graph Memory?

Knowledge Graph Memory is a Model Context Protocol (MCP) server that persistent memory server that implements a local knowledge graph using the kuzu embedded database to store entities, relationships, and observations. it enables ai models to maintain structured long-term context through searchable nodes and compreh It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Knowledge Graph Memory?

Follow the installation instructions on the Knowledge Graph Memory GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Knowledge Graph Memory?

Knowledge Graph Memory works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Knowledge Graph Memory free to use?

Yes, Knowledge Graph Memory is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "knowledge-graph-memory-server": { "command": "npx", "args": ["-y", "knowledge-graph-memory-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Knowledge Graph Memory?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides