
shaneholloman/mcp-knowledge-graph
Productivity workflowこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ローカルナレッジグラフを通じてClaudeの永続メモリを可能にするMCPサーバー - ローカル開発に特化したフォーク
概要
エンティティ、関係、観察を用いて会話間で情報を保存・取得できます。Claude Code/Desktopおよび任意のMCP互換AIプラットフォームで動作します。 AIMはこのシステムのコアコンセプトの略です。3つのAIM要素は明確な組織と安全性を提供します。 - : AIメモリファイルを整理し、識別しやすく保つ - : 関連するメモリ機能をマルチツールセットアップでまとめる - : 各メモリファイルは{"type":"_aim","source":"mcp-knowledge-graph"}で始まり、無関係なJSONLファイルの誤って上書きを防ぐ この一貫したAIMの命名により、どのディレクトリ、ツール、ファイルがAIメモリシステムに属しているかが明確に判明します。 - .aim = (プロジェクト検出が機能するためには正確に.aimと名付けられている必要があります) - _aim = (JSONLファイル内に現れます: {"type":"_aim","source":"mcp-knowledge-graph"}) - ディレクトリはプロジェクトのルートで必ず .aim に指定してください。例:my-project/.aim/memory。
概要(AI 翻訳)
ローカルナレッジグラフによるAIモデルの永続メモリ。
エンティティ、関係、観察を用いて会話間で情報を保存・取得できます。Claude Code/Desktopおよび任意のMCP互換AIプラットフォームで動作します。
なぜ「.aim」と「aim_」接頭辞を使うのですか?
AIMはAIメモリの略で、このシステムの中核概念です。AIMの3つの要素は明確な組織と安全性を提供します。
.aimディレクトリ:AIメモリファイルを整理し、簡単に識別できる状態に保つaim_ツールプレフィックス:マルチツールセットアップで関連するメモリ機能をまとめる_aim安全マーカー:各メモリファイルは{"type":"_aim","source":"mcp-knowledge-graph"}で始まり、無関係なJSONLファイルの誤って上書きを防ぐためです
この一貫したAIMの命名により、どのディレクトリ、ツール、ファイルがAIメモリシステムに属しているかが明確に判明します。
重要:.aim dir と _aim ファイルマーカーの理解
似た名前の二つの異なるもの:
.aim= プロジェクトローカルディレクトリ名(プロジェクト検出が機能するには正確に.aim)でなければなりません)_aim= ファイル安全マーカー(JSONLファイル内に現れる:{"type":"_aim","source":"mcp-knowledge-graph"})
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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"
]
}
}
}