# mcp-knowledge-graph

> MCP Server

This repository provides a knowledge graph memory server, a fork of the original Memory Server, that allows Claude to remember user information across chats using local, persistent storage with customizable memory paths.

## Overview

- **Category:** AI
- **Language:** JavaScript
- **Stars:** 884
- **Forks:** 23
- **Owner:** shaneholloman
- **GitHub:** https://github.com/shaneholloman/mcp-knowledge-graph
- **Created:** 2024-12-09T22:41:07+00:00
- **Updated:** 2025-03-28T15:13:34+00:00
- **Source:** https://model-context-protocol.com/servers/local-knowledge-graph-memory-server-claude

## Setup

## Setup
Add this to your claude_desktop_config.json:

```json
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ]
    }
  }
}
```

You can specify a custom path for the memory file:

```json
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory", "--memory-path", "/path/to/your/memory.jsonl"]
    }
  }
}
```

If no path is specified, it will default to memory.jsonl in the server's installation directory.

The prompt for utilizing memory depends on the use case and an example prompt for chat personalization is provided.

## Tools

## Available Tools

1.  **create_entities** (Create multiple new entities in the knowledge graph.)
2.  **create_relations** (Create multiple new relations between entities.)
3.  **add_observations** (Add new observations to existing entities.)
4.  **delete_entities** (Remove entities and their relations.)
5.  **delete_observations** (Remove specific observations from entities.)
6.  **delete_relations** (Remove specific relations from the graph.)
7.  **read_graph** (Read the entire knowledge graph.)
8.  **search_nodes** (Search for nodes based on query.)
9.  **open_nodes** (Retrieve specific nodes by name.)
