
shaneholloman/mcp-knowledge-graph
Productivity workflowЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP-сервер, обеспечивающий постоянную память для Claude через локальный граф знаний — форк, ориентированный на локальную разработку
Обзор
Храните и извлекайте информацию из диалогов с помощью сущностей, отношений и наблюдений. Работает с Claude Code/Desktop и любой совместимой с MCP AI-платформой. AIM расшифровывается как основная концепция этой системы. Три элемента AIM обеспечивают чёткую организацию и безопасность: - : Поддержание структуры и легко идентифицируемых файлов памяти ИИ - : Группирование связанных функций памяти в мультиинструментальных настройках - : Каждый файл памяти начинается с {"type":"_aim","source":"mcp-knowledge-graph"}, чтобы предотвратить случайную перезапись несвязанных JSONL-файлов Такое последовательное наименование AIM делает очевидным, какие каталоги, инструменты и файлы принадлежат системе памяти ИИ. - .aim = (ДОЛЖНО быть именовано точно .aim для работы обнаружения проекта) - _aim = (появляется внутри JSONL-файлов: {"type":"_aim","source":"mcp-knowledge-graph"}) - Каталог ДОЛЖЕН называться .aim в корне проекта - Пример: my-project/.aim/memory.
Обзор (машинный перевод)
Постоянная память для моделей ИИ через локальный граф знаний.
Храните и извлекайте информацию из диалогов с помощью сущностей, отношений и наблюдений. Работает с Claude Code/Desktop и любой совместимой с MCP AI-платформой.
Почему приставки «.aim» и «aim_»?
AIM расшифровывается как AI Memory — основная концепция этой системы. Три элемента AIM обеспечивают чёткую организацию и безопасность:
.aimкаталоги: Сохраняют структуру и легко определяемые файлы памяти ИИaim_префиксы инструментов: Группировать связанные функции памяти в многофункциональные настройки_aimмаркеры безопасности: Каждый файл памяти начинается с{"type":"_aim","source":"mcp-knowledge-graph"}, чтобы предотвратить случайную перезапись несвязанных JSONL-файлов
Такое последовательное наименование AIM делает очевидным, какие каталоги, инструменты и файлы принадлежат системе памяти ИИ.
КРИТИЧНО: Понимание маркера файла .aim dir vs _aim
Две разные вещи с похожими названиями:
.aim= Имя локального каталога проекта (ДОЛЖНО быть точно названо.aimдля работы обнаружения проекта)_aim= Маркер безопасности для файла (появляется внутри файлов JSONL:{"type":"_aim","source":"mcp-knowledge-graph"})
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP Knowledge Graph
Persistent memory for AI models through a local knowledge graph.
Store and retrieve information across conversations using entities, relations, and observations. Works with Claude Code/Desktop and any MCP-compatible AI platform.
Why “.aim” and “aim_” prefixes?
AIM stands for AI Memory - the core concept of this system. The three AIM elements provide clear organization and safety:
.aimdirectories: Keep AI memory files organized and easily identifiableaim_tool prefixes: Group related memory functions together in multi-tool setups_aimsafety markers: Each memory file starts with{"type":"_aim","source":"mcp-knowledge-graph"}to prevent accidental overwrites of unrelated JSONL files
This consistent AIM naming makes it obvious which directories, tools, and files belong to the AI memory system.
CRITICAL: Understanding .aim dir vs _aim file marker
Two different things with similar names:
.aim= Project-local directory name (MUST be named exactly.aimfor project detection to work)_aim= File safety marker (appears inside JSONL files:{"type":"_aim","source":"mcp-knowledge-graph"})
For project-local storage:
- Directory MUST be named
.aimin your project root - Example:
my-project/.aim/memory.jsonl - The system specifically looks for this exact name
For global storage (–memory-path):
- Can be ANY directory you want
- Examples:
~/yourusername/.aim/,~/memories/,~/Dropbox/ai-memory/,~/Documents/ai-data/ - Complete flexibility - choose whatever location works for you
Storage Logic
File Location Priority:
- Project with
.aim- Uses.aim/memory.jsonl(project-local) - No project/no .aim - Uses configured global directory
- Contexts - Adds suffix:
memory-work.jsonl,memory-personal.jsonl
Safety System:
- Every memory file starts with
{"type":"_aim","source":"mcp-knowledge-graph"} - System refuses to write to files without this marker
- Prevents accidental overwrite of unrelated JSONL files
Master Database Concept
The master database is your primary memory store - used by default when no specific database is requested. It’s always named default in listings and stored as memory.jsonl.
- Default Behavior: All memory operations use the master database unless you specify a different one
- Always Available: Exists in both project-local and global locations
- Primary Storage: Your main knowledge graph that persists across all conversations
- Named Databases: Optional additional databases (
work,personal,health) for organizing specific topics
Key Features
- Master Database: Primary memory store used by default for all operations
- Multiple Databases: Optional named databases for organizing memories by topic
- Project Detection: Automatic project-local memory using
.aimdirectories
Установка
npx -y mcp-knowledge-graph --memory-path /Users/yourusername/.aimКонфигурация
{
"mcpServers": {
"Aim-Memory-Bank": {
"command": "npx",
"args": [
"-y",
"mcp-knowledge-graph",
"--memory-path",
"/Users/yourusername/.aim"
]
}
}
}