# @zsc-glitch/knowledge-keeper-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/zsc-glitch/knowledge-keeper-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 215  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zsc-glitch-knowledge-keeper-mcp

## Description
AI Memory & Knowledge Management MCP Server — 32 tools, BM25 R@5=95%, hybrid search (RRF), knowledge graph, analytics, cloud sync, Obsidian compatible. Works with Claude Code, Cursor, Gemini CLI, Windsurf, hermes-agent.

## Tools
Capabilities this server exposes over MCP:

- **knowledge_save** — 保存一条新的知识到知识库。自动检测标题相似的已有知识点并提示。
- **knowledge_search** — 在知识库中搜索知识点
- **knowledge_semantic_search** — 使用语义理解搜索知识库，比关键词搜索更智能
- **knowledge_bm25_search** — 使用 BM25 算法进行关键词检索，精准匹配查询词
- **knowledge_bm25_stats** — 查看 BM25 索引的统计信息（文档数、词汇表大小、平均长度等）
- **knowledge_get** — 根据 ID 获取单个知识点
- **knowledge_update** — 更新现有知识点的内容或标签
- **knowledge_delete** — 删除指定知识点
- **knowledge_tags** — 列出知识库中的所有标签
- **knowledge_versions** — 查询知识点的版本历史记录，支持查看、对比和回滚
- **knowledge_review** — 查看近期知识点统计，支持今天/本周/本月/全部
- **knowledge_link** — 建立知识点之间的关联关系，支持多种关联类型
- **knowledge_unlink** — 删除知识点之间的关联关系
- **knowledge_get_linked** — 查询知识点关联的所有其他知识点
- **knowledge_graph** — 返回知识点及其关联的图谱结构，用于可视化展示
- **knowledge_export** — 将知识库导出为JSON/Markdown/CSV格式
- **knowledge_import** — 从JSON或Markdown格式批量导入知识点
- **knowledge_batch** — 批量删除、添加/移除标签、修改类型
- **knowledge_sync** — 与其他知识库（Obsidian vault）同步
- **knowledge_merge** — 合并相似或重复的知识点
- **knowledge_graph_build** — 从知识点中提取实体和关系，构建知识图谱
- **knowledge_graph_query** — 查询实体及其关系
- **knowledge_graph_visualize** — 导出知识图谱为可视化格式（Mermaid/GraphViz）
- **knowledge_sync_status** — 检查云同步状态（Pro功能）
- **knowledge_cloud_sync** — 执行完整云同步（拉取+推送），端到端加密（Pro功能）
- **knowledge_license** — 查看当前许可证和功能
- **knowledge_analytics_overview** — 获取知识库的整体统计数据：项目数、标签数、链接数、类型分布、健康评分等
- **knowledge_analytics_insights** — 获取知识库质量洞察：孤立项目、未标记项目、过期项目、重复候选、连接性评分等
- **knowledge_analytics_timeline** — 获取知识库的时间线统计：每日/每周/每月创建数量
- **knowledge_hybrid_search** — 混合 BM25 关键词 + 语义搜索，使用 RRF 融合排序（R@5=95%）
- **knowledge_recent** — 获取最近添加或更新的知识点，按时间倒序排列。用于快速回顾最近的工作内容。
- **knowledge_duplicates** — 检测知识库中标题或内容相似的知识点，帮助清理重复内容。返回相似组及合并建议。
- **knowledge_context** — 获取某个知识点的完整上下文：包括自身、关联链接、共享标签、标题相似的知识点。帮助AI Agent快速构建领域上下文。

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "knowledge-keeper-mcp": {
    "command": "npx",
    "args": ["-y","@zsc-glitch/knowledge-keeper-mcp"]
  }
}
```

## Documentation

## What @zsc-glitch/knowledge-keeper-mcp does

@zsc-glitch/knowledge-keeper-mcp provides persistent knowledge management for MCP-compatible agents. It stores entries as Markdown files with frontmatter, keeping the data readable and compatible with Obsidian. The default vault is `~/.knowledge-vault/`, with separate directories for entry types and local index files for general and BM25 searches.

The server covers the full knowledge lifecycle: saving, retrieving, editing, deleting, linking, tagging, importing, exporting, batching, syncing, and merging entries. It also maintains version history with diff and rollback support, checks integrity through a SHA256 hash chain, and offers analytics for collection health, stale entries, duplicates, orphans, and activity over time.

## How it works

Search can use basic keyword matching, TF-IDF semantic matching, BM25 ranking, or hybrid retrieval. Hybrid search combines BM25 and semantic results through reciprocal rank fusion. The default TF-IDF approach does not require an external model or API. A Transformer-based embedding model can be enabled by installing `@xenova/transformers` and setting `EMBEDDING_MODEL=transformers`.

Knowledge can be organized with tags and links, then explored through nearby links, tags, and similar titles. Graph tools build relationships through entity detection, query entities and relations, and produce Mermaid visualizations. Review support provides spaced-repetition workflows for revisiting stored knowledge.

## Setup and configuration

Install the package with npm:

```bash
npm install @zsc-glitch/knowledge-keeper-mcp
```

For Claude Code, register it with:

```bash
claude mcp add knowledge-keeper -- npx @zsc-glitch/knowledge-keeper-mcp
```

Other stdio MCP clients can launch it with `npx @zsc-glitch/knowledge-keeper-mcp`. The vault location can be changed with `KK_VAULT_PATH`. By default, no API key, cloud service, or embedding API is needed.

For optional Pro cloud sync, configure `KK_SYNC_URL`, `KK_API_KEY`, and `KK_ENCRYPTION_KEY`. Sync supports encrypted push and pull across devices, with encryption performed on the client. Obsidian can open the default vault directly, or the vault can be pointed to a custom path.

## Tools and capabilities

The toolset includes:

- Knowledge CRUD, recent-entry retrieval, batch operations, and context exploration.
- Basic, semantic, BM25, and hybrid search, plus duplicate detection and BM25 statistics.
- Tags, links, linked-entry retrieval, graph construction, graph queries, and Mermaid output.
- Version listing, diffs, rollback, spaced repetition review, and SHA256 auditing.
- Overview statistics, health scoring, quality insights, and activity timelines.
- JSON, Markdown, and CSV export; JSON and Markdown import; local sync and vault merging.
- MCP resources for all entries, tags, and concept, decision, todo, note, and project types.

## Limitations and notes

The default data store is local to the machine running the server, so agents on other devices do not share it unless cloud sync or another vault-sharing workflow is configured. Cloud sync is a Pro feature and needs its own server URL, API key, and encryption key. Search quality depends on the selected retrieval method and the contents of the local indexes.

_Full upstream README: https://allmcps.com/mcp/zsc-glitch-knowledge-keeper-mcp/readme_

