# Repository Briefing: shaneholloman/mcp-knowledge-graph
> Source: https://repoforai.com/repo/shaneholloman/mcp-knowledge-graph (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/shaneholloman/mcp-knowledge-graph
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: B (53/100 · Maintenance 6/35 · Adoption 16/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v1.3.2 (2025-12-22) — https://github.com/shaneholloman/mcp-knowledge-graph/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, Self-Hosted, CLI
- **Momentum**: 885 ★ total (+0 24h / +0 7d) · 101 forks
- **Topics**: `ai-memory`, `claude-ai`, `knowledge-graph`, `mcp`, `memory-server`, `typescript`
- **When to Use**: Best for: Individual developers who want an MCP client such as Claude Code to recall project decisions, conventions, and named facts across sessions while keeping the files inspectable and under their control. Skip if: You need semantic recall over large unstructured corpora, automatic conversation capture, or a shared store with authenticated access and dependable concurrent writes.

## Overview
```text
### Architecture & Core Mechanics
This is a local MCP server that gives AI clients persistent memory without running a separate database service. The repository has a root `index.ts` and exposes the `mcp-knowledge-graph` CLI on Node.js 22 or later. Its two declared runtime dependencies are `@modelcontextprotocol/sdk` and `minimist`. Claude Code, Claude Desktop, and other MCP-compatible clients use the server through MCP tool calls rather than a database driver.

A tool call selects its storage scope from project detection or an explicit `location`, then selects the default or named store via `context`. The selected JSONL file holds a graph of named, typed entities, observations attached to those entities, and relationships between them. A first-line `_aim` marker identifies the file as a memory store, and writes are refused when the marker is missing. This guards against accidental overwrites; it does not authenticate the file or caller.

### Key Capabilities & Differentiators
The ten `aim_memory_*` tools cover both retrieval and curation. Clients can store entities, add facts, link entities, and remove entities, facts, or links. Retrieval is explicit: `aim_memory_search` finds records by keyword, `aim_memory_get` fetches entities by exact name, and `aim_memory_read_all` returns the selected store in full. This is structured recall, not semantic similarity search or automatic capture of every conversation.

By default, calls target `memory.jsonl` in the active scope. A `context` such as `work` routes calls to a named file such as `memory-work.jsonl`, which can be created on first use without provisioning a separate database. `aim_memory_list_stores` reports project and global stores along with the active location, making it the best first check when a conversation appears to have lost its memory.

### Trade-offs & Limitations
JSONL is straightforward to inspect and back up, and a project-local store keeps project decisions separate from general memory. The price is a narrower retrieval model: keywords and exact names work well for consistently labeled facts, whereas a vector-backed system is a better fit for recall from paraphrases. Named stores are organizational boundaries, not user permissions, and a synced directory copies files without establishing safe concurrent writes. Validate write behavior before pointing multiple active clients at the same store.

There is no GPU inference workload in the server. Size it by testing with realistic store sizes and access patterns; full-store reads can send more data to the client than a targeted search or lookup. Local storage also does not guarantee end-to-end privacy: retrieved facts can reach the model through the client. The MIT license permits commercial use, but secret handling, client approval policies, and model-side data handling remain deployment decisions.

### Hardware & Deployment Guide
Run with Node.js 22 or later and an MCP-compatible client. Configure the client to launch `npx -y mcp-knowledge-graph --memory-path /absolute/path/to/memory`. That flag sets the global directory; creating an exact `.aim` directory at the project root enables project-local storage and makes it take precedence by default. The server keeps its files locally and does not need a separate database or model API for storage. The `npx` launch may still fetch the package if it is not already available, so offline installations should stage it in advance.

Version 1.3.0 renamed the tools to `aim_memory_*`; 1.3.1 corrected stale names in search and get descriptions; 1.3.2 updated configuration examples and tool references. Pin a tested version when reproducibility matters, and update any tool allowlists or prompt references carried over from pre-1.3 setups.
```

## Key Capabilities
```text
- Runtime: A Node.js 22+ CLI with two declared runtime dependencies: `@modelcontextprotocol/sdk` and `minimist`.
- Data model: Named, typed entities carry observations; explicit relationships link entities.
- Store routing: An exact `.aim` directory name enables project-local scope, while `--memory-path` sets the global directory.
- Store naming: Each scope has a default `memory.jsonl`; `context` selects a named file such as `memory-work.jsonl`.
- Retrieval: Keyword search, exact-name lookup, whole-store reads, and store discovery are separate MCP tools.
- Write protection: The first-line `_aim` marker guards against accidental writes to unrelated JSONL files; it is not an access control.
```

## Quick Start / Clone
```bash
mkdir .aim
```
