经 AI Skill Hub 精选评估,本地知识图谱 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
本地知识图谱 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
本地知识图谱 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/devwhodevs/engraph
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"------": {
"command": "npx",
"args": ["-y", "engraph"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 本地知识图谱 执行以下任务... Claude: [自动调用 本地知识图谱 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"______": {
"command": "npx",
"args": ["-y", "engraph"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="assets/logo.png" alt="engraph logo" width="180"> </p>
<p align="center"><strong>Turn your Obsidian vault into a knowledge API.</strong> 5-lane hybrid search, MCP server, HTTP REST API, ChatGPT Actions — all local, all offline.</p>
engraph turns your markdown vault into a searchable knowledge graph that any AI agent can query — Claude Code via MCP, ChatGPT via Actions, or any tool via REST API. It combines semantic embeddings, full-text search, wikilink graph traversal, temporal awareness, and LLM-powered reranking into a single local binary. Same model stack as qmd. No API keys, no cloud — everything runs on your machine.
<p align="center"> <img src="assets/demo.gif" alt="engraph demo: 4-lane hybrid search with LLM intelligence, person context bundles, Metal GPU" width="800"> </p>
eg_ prefix), rate limiting, CORS — enabled via engraph serve --httpcargo install --git https://github.com/devwhodevs/engraph
**Index your vault:**
bash engraph index ~/path/to/vault
engraph index ~/your-vault)engraph configure --setup-chatgpt
Or configure manually in `~/.engraph/config.toml`:
toml [http] enabled = true port = 3000 host = "127.0.0.1" rate_limit = 60 cors_origins = ["https://chat.openai.com", "https://chatgpt.com"]
[[http.api_keys]] key = "eg_your_key_here" # generate with: engraph configure --add-api-key --key-name chatgpt --key-permissions write name = "chatgpt" permissions = "write" # "read" for search-only, "write" to also create/edit notes
[http.plugin] name = "My Vault" description = "Search and manage my Obsidian vault" public_url = "https://your-tunnel-url.trycloudflare.com" # set after starting tunnel ```
Install:
```bash
4-lane search with intent classification:
engraph search "how does authentication work" --explain 1. [97%] 01-Projects/API-Design.md > # API Design #e3e350
All endpoints require Bearer token authentication...
Intent: Conceptual
--- Explain ---
01-Projects/API-Design.md
RRF: 0.0387
semantic: rank #2, raw 0.38, +0.0194
rerank: rank #2, raw 0.01, +0.0194
02-Areas/Development/Auth-Architecture.md
RRF: 0.0384
semantic: rank #1, raw 0.51, +0.0197
rerank: rank #4, raw 0.00, +0.0187
The orchestrator classified the query as Conceptual (boosting semantic lane weight). The reranker scored each result for relevance as the 4th RRF lane.
Rich context for AI agents:
engraph context topic "authentication" --budget 8000
Returns a token-budgeted context bundle: relevant notes, connected people, related projects — ready to paste into a prompt or serve via MCP.
Person context:
engraph context who "Sarah Chen"
Returns Sarah's note, all mentions across the vault, connected notes via wikilinks, and recent activity.
Vault structure overview:
engraph context vault-map
Returns folder counts, top tags, recent files — gives an AI agent orientation before it starts searching.
Create a note via the write pipeline:
engraph write create --content "# Meeting Notes\n\nDiscussed auth timeline with Sarah." --tags meeting,auth
engraph resolves tags against the registry (fuzzy matching), discovers potential wikilinks ([[Sarah Chen]]), suggests the best folder based on semantic similarity to existing notes, and writes atomically.
Edit a specific section:
engraph write edit --file "Meeting Notes" --heading "Action Items" --mode append --content "- [ ] Follow up with Sarah"
Targets the "Action Items" section by heading, appends content without touching the rest of the note.
Rewrite a note (preserves frontmatter):
engraph write rewrite --file "Meeting Notes" --content "# Meeting Notes\n\nRevised content here."
Replaces the entire body while keeping existing frontmatter (tags, dates, metadata) intact.
Edit frontmatter:
engraph write edit-frontmatter --file "Meeting Notes" --op add_tag --value "actionable"
Granular frontmatter mutations: set, remove, add_tag, remove_tag, add_alias, remove_alias.
Delete a note:
engraph write delete --file "Old Draft" --mode soft # moves to archive
engraph write delete --file "Old Draft" --mode hard # permanent removal
Check vault health:
engraph context health
Returns orphan notes (no links in or out), broken wikilinks, stale notes, and tag hygiene issues.
AI-assisted knowledge work — Give Claude or Cursor deep access to your personal knowledge base. Instead of copy-pasting context, the agent searches, reads, and cross-references your notes directly.
Developer second brain — Index architecture docs, decision records, meeting notes, and code snippets. Search by concept across all of them.
Research and writing — Find connections between notes that you didn't explicitly link. The graph lane surfaces related content through shared wikilinks and mentions.
Team knowledge graphs — Index a shared docs vault. AI agents can answer "who knows about X?" and "what decisions were made about Y?" by traversing the note graph.
```bash
Edit ~/.engraph/config.toml and set public_url to your tunnel URL:
[http.plugin]
public_url = "https://abc-xyz.trycloudflare.com"
Then restart engraph (Ctrl+C and re-run engraph serve --http). This ensures the OpenAPI spec points to the correct public URL.
Optional config at ~/.engraph/config.toml:
```toml vault_path = "~/Documents/MyVault" top_n = 10 exclude = [".obsidian/", "node_modules/", ".git/"]
engraph serve --http --no-auth
**API key management:**
bash
engraph configure --add-api-key
engraph serve --http adds a full REST API alongside the MCP server, exposing the same capabilities over HTTP for web agents, scripts, and integrations.
26 endpoints:
| Method | Endpoint | Permission | Description |
|---|---|---|---|
| GET | /api/health-check | read | Server health check |
| POST | /api/search | read | Hybrid search (semantic + FTS5 + graph + reranker + temporal) |
| GET | /api/read/{file} | read | Read full note content + metadata |
| GET | /api/read-section | read | Read a specific section by heading |
| GET | /api/list | read | List notes with optional tag/folder/created_by filters |
| GET | /api/vault-map | read | Vault structure overview (folders, tags, recent files) |
| GET | /api/who/{name} | read | Person context bundle |
| GET | /api/project/{name} | read | Project context bundle |
| POST | /api/context | read | Rich topic context with token budget |
| GET | /api/health | read | Vault health diagnostics |
| POST | /api/create | write | Create a new note |
| POST | /api/append | write | Append content to existing note |
| POST | /api/edit | write | Section-level editing (replace/prepend/append) |
| POST | /api/rewrite | write | Full note rewrite (preserves frontmatter) |
| POST | /api/edit-frontmatter | write | Granular frontmatter mutations |
| POST | /api/move | write | Move note to different folder |
| POST | /api/archive | write | Soft-delete (archive) a note |
| POST | /api/unarchive | write | Restore archived note |
| POST | /api/update-metadata | write | Update note metadata |
| POST | /api/delete | write | Delete note (soft or hard) |
| GET | /api/identity | read | User identity (L0) and current context (L1) |
| POST | /api/setup | write | First-time onboarding setup (detect/apply modes) |
| POST | /api/reindex-file | write | Re-index a single file after external edits |
| POST | /api/migrate/preview | write | Preview PARA migration (classify + suggest moves) |
| POST | /api/migrate/apply | write | Apply PARA migration (move files) |
| POST | /api/migrate/undo | write | Undo last PARA migration |
Authentication:
All requests require an API key via the Authorization header:
curl -H "Authorization: Bearer eg_abc123..." http://localhost:3000/api/vault-map
Keys have either read or write permission. Write keys can access all endpoints; read keys are restricted to read-only endpoints. Use --no-auth for local development without keys (127.0.0.1 only).
curl examples:
```bash
```bash
[obsidian]
cargo test --test integration -- --ignored ```
| engraph | Basic RAG (vector-only) | Obsidian search | |
|---|---|---|---|
| Search method | 5-lane RRF (semantic + BM25 + graph + reranker + temporal) | Vector similarity only | Keyword only |
| Query understanding | LLM orchestrator classifies intent, adapts weights | None | None |
| Understands note links | Yes (wikilink graph traversal) | No | Limited (backlinks panel) |
| AI agent access | MCP server (25 tools) + HTTP REST API (26 endpoints) | Custom API needed | No |
| Write capability | Create/edit/rewrite/delete with smart filing | No | Manual |
| Vault health | Orphans, broken links, stale notes, tag hygiene | No | Limited |
| Real-time sync | File watcher, 2s debounce | Manual re-index | N/A |
| Runs locally | Yes, llama.cpp + Metal GPU | Depends | Yes |
| Setup | One binary, one command | Framework + code | Built-in |
engraph is not a replacement for Obsidian — it's the intelligence layer that sits between your vault and your AI tools.
高质量的开源MCP工具,实现本地知识图谱搜索
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:本地知识图谱 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | engraph |
| Topics | ai-agentsknowledge-graphlocal-firstmcpobsidianrust |
| GitHub | https://github.com/devwhodevs/engraph |
| License | MIT |
| 语言 | Rust |
收录时间:2026-05-27 · 更新时间:2026-05-27 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端