Mcp Knowledge Graph
@shaneholloman
关于 Mcp Knowledge Graph
MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Aim-Memory-Bank": {
"command": "npx",
"args": [
"-y",
"mcp-knowledge-graph",
"--memory-path",
"/Users/yourusername/.aim"
]
}
}
}工具
10Store new memories (people, projects, concepts)
Add facts to existing memories
Link two memories together
Search memories by keyword
Retrieve specific memories by exact name
Read all memories in a database
List available databases
Forget memories
Remove specific facts from a memory
Remove links between memories
概览
What is Mcp Knowledge Graph?
Mcp Knowledge Graph is an MCP server that gives AI models persistent memory through a local knowledge graph. It stores and retrieves information across conversations using entities, relations, and observations, and works with Claude Code/Desktop and any MCP‑compatible AI platform.
How to use Mcp Knowledge Graph?
Add the server to your claude_desktop_config.json or .claude.json using npx -y mcp-knowledge-graph --memory-path <path>. Optionally create a .aim directory in a project for project‑local storage. Once configured, the AI can use tools prefixed with aim_ (e.g., aim_memory_store, aim_memory_search) to manage memories.
Key features of Mcp Knowledge Graph
- Master Database used by default for all operations
- Multiple named databases for organizing memories by topic
- Automatic project‑local memory using
.aimdirectories - Location override to force project or global storage
- Safe operations with built‑in file marker protection
- Database discovery to list all available stores
Use cases of Mcp Knowledge Graph
- Remembering user preferences, project details, or personal information across AI conversations
- Organizing memories into separate databases (work, personal, health) by context
- Keeping memory files in a synced folder (e.g., Dropbox) for access across multiple machines
- Project‑local memory that stays within a codebase, with automatic detection via
.aimdirectory
FAQ from Mcp Knowledge Graph
What are the .aim directory and _aim file marker?
The .aim directory is a project‑local folder that triggers automatic memory storage. The _aim marker is a safety line ({"type":"_aim","source":"mcp-knowledge-graph"}) placed at the start of every memory file to prevent accidental overwrites of unrelated JSONL files.
How does storage location work?
If a .aim directory exists in the current project, memory files are stored there. Otherwise, the configured global --memory-path directory is used. You can also force project or global location with an optional location parameter.
How do I use multiple named databases?
Pass a context parameter (e.g., "work", "personal") to memory tools. The system automatically creates new database files (e.g., memory-work.jsonl) alongside the master memory.jsonl. No manual setup is required.
What happens if a file lacks the _aim marker?
The server refuses to write to the file and returns an error: “File does not contain required _aim safety marker”. Either add the marker manually or delete the file and let the system recreate it.
What are the requirements to run this server?
Node.js version 22 or later and an MCP‑compatible AI platform (e.g., Claude Desktop).
记忆与知识 分类下的更多 MCP 服务器
MemoryMesh
CheMiguel23A knowledge graph server that uses the Model Context Protocol (MCP) to provide structured memory persistence for AI models.
Memory Bank MCP Server
alioshrA Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.
Context7 MCP - Up-to-date Docs For Any Cursor Prompt
upstashContext7 Platform -- Up-to-date code documentation for LLMs and AI code editors
Jupyter Notebook MCP Server (for Cursor)
jbenoModel Context Protocol (MCP) server designed to allow AI agents within Cursor to interact with Jupyter Notebook (.ipynb) files
MCP server for Obsidian
MarkusPfundsteinMCP server that interacts with Obsidian via the Obsidian rest API community plugin
评论