能力标签
🔌
MCP工具

本地知识图谱

基于 Rust · 让 AI 助手直接操作你的系统与工具
英文名:engraph
⭐ 143 Stars 🍴 13 Forks 💻 Rust 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
ai-agentsknowledge-graphlocal-firstmcpobsidianrust
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,本地知识图谱 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

本地知识图谱 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 本地知识图谱,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。本地知识图谱 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 本地知识图谱 评为 AI 评分 7.5 分,属于同类工具中的优质选择。

📋 工具概览

本地知识图谱 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 143
开发语言
Rust
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
MCP工具
Forks
13

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

本地知识图谱 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 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
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 本地知识图谱 执行以下任务...
Claude: [自动调用 本地知识图谱 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "______": {
      "command": "npx",
      "args": ["-y", "engraph"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 87/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <img src="assets/logo.png" alt="engraph logo" width="180"> </p>

engraph — Vault Intelligence for AI Agents

<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>

CI License: MIT GitHub release

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>

Current capabilities

  • 5-lane hybrid search (semantic + FTS5 + graph + cross-encoder reranker + temporal) with two-pass RRF fusion
  • Temporal search: natural language date queries ("last week", "March 2026", "recent"), date extraction from frontmatter and filenames, smooth decay scoring
  • Confidence % display: search results show normalized 0-100% confidence instead of raw RRF scores
  • LLM research orchestrator: query intent classification + query expansion + adaptive lane weights
  • llama.cpp inference via Rust bindings (GGUF models, Metal GPU on macOS, CUDA on Linux)
  • Intelligence opt-in: heuristic fallback when disabled, LLM-powered when enabled
  • MCP server with 25 tools (8 read, 10 write, 2 identity, 1 index, 1 diagnostic, 3 migrate) via stdio
  • HTTP REST API with 26 endpoints, API key auth (eg_ prefix), rate limiting, CORS — enabled via engraph serve --http
  • User identity with L0/L1 tiered context for AI agent session starts
  • Section-level reading and editing: target specific headings with replace/prepend/append modes
  • Full note rewriting with automatic frontmatter preservation
  • Granular frontmatter mutations: set/remove fields, add/remove tags and aliases
  • Soft delete (archive) and hard delete (permanent) with audit logging
  • Vault health diagnostics: orphan notes, broken wikilinks, stale content, tag hygiene
  • Obsidian CLI integration with circuit breaker (Closed/Degraded/Open) for resilient delegation
  • Real-time file watching with 2s debounce, startup reconciliation, and watcher coordination to prevent double re-indexing
  • Write pipeline: tag resolution, fuzzy link discovery, semantic folder placement
  • Context engine: topic bundles, person bundles, project bundles with token budgets
  • Vault graph: bidirectional wikilink + mention edges with multi-hop expansion
  • Placement correction learning from user file moves
  • Enhanced file resolution with fuzzy Levenshtein matching fallback
  • Content-based folder role detection (people, daily, archive) by content patterns
  • PARA migration: AI-assisted vault restructuring into Projects/Areas/Resources/Archive with preview, apply, and undo workflow
  • Configurable model overrides for multilingual support
  • 426 unit tests, CI on macOS + Ubuntu

From source (requires CMake for llama.cpp)

cargo install --git https://github.com/devwhodevs/engraph


**Index your vault:**
bash engraph index ~/path/to/vault

Prerequisites

  • engraph installed and indexed (engraph index ~/your-vault)
  • A tunnel tool: Cloudflare Tunnel (recommended) or ngrok

Interactive setup — enables HTTP, creates API key, sets CORS

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 ```

Quick start

Install:

```bash

Example usage

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.

Use cases

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.

Step 1: Configure engraph

```bash

Step 3: Update config with tunnel URL

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.

Configuration

Optional config at ~/.engraph/config.toml:

```toml vault_path = "~/Documents/MyVault" top_n = 10 exclude = [".obsidian/", "node_modules/", ".git/"]

Local development without API keys (127.0.0.1 only)

engraph serve --http --no-auth


**API key management:**
bash

Add a new API key (read or write permission)

engraph configure --add-api-key

HTTP REST API

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:

MethodEndpointPermissionDescription
GET/api/health-checkreadServer health check
POST/api/searchreadHybrid search (semantic + FTS5 + graph + reranker + temporal)
GET/api/read/{file}readRead full note content + metadata
GET/api/read-sectionreadRead a specific section by heading
GET/api/listreadList notes with optional tag/folder/created_by filters
GET/api/vault-mapreadVault structure overview (folders, tags, recent files)
GET/api/who/{name}readPerson context bundle
GET/api/project/{name}readProject context bundle
POST/api/contextreadRich topic context with token budget
GET/api/healthreadVault health diagnostics
POST/api/createwriteCreate a new note
POST/api/appendwriteAppend content to existing note
POST/api/editwriteSection-level editing (replace/prepend/append)
POST/api/rewritewriteFull note rewrite (preserves frontmatter)
POST/api/edit-frontmatterwriteGranular frontmatter mutations
POST/api/movewriteMove note to different folder
POST/api/archivewriteSoft-delete (archive) a note
POST/api/unarchivewriteRestore archived note
POST/api/update-metadatawriteUpdate note metadata
POST/api/deletewriteDelete note (soft or hard)
GET/api/identityreadUser identity (L0) and current context (L1)
POST/api/setupwriteFirst-time onboarding setup (detect/apply modes)
POST/api/reindex-filewriteRe-index a single file after external edits
POST/api/migrate/previewwritePreview PARA migration (classify + suggest moves)
POST/api/migrate/applywriteApply PARA migration (move files)
POST/api/migrate/undowriteUndo 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

Step 4: Verify endpoints

```bash

Obsidian CLI integration (auto-detected during init)

[obsidian]

Integration tests (downloads GGUF model)

cargo test --test integration -- --ignored ```

How it compares

engraphBasic RAG (vector-only)Obsidian search
Search method5-lane RRF (semantic + BM25 + graph + reranker + temporal)Vector similarity onlyKeyword only
Query understandingLLM orchestrator classifies intent, adapts weightsNoneNone
Understands note linksYes (wikilink graph traversal)NoLimited (backlinks panel)
AI agent accessMCP server (25 tools) + HTTP REST API (26 endpoints)Custom API neededNo
Write capabilityCreate/edit/rewrite/delete with smart filingNoManual
Vault healthOrphans, broken links, stale notes, tag hygieneNoLimited
Real-time syncFile watcher, 2s debounceManual re-indexN/A
Runs locallyYes, llama.cpp + Metal GPUDependsYes
SetupOne binary, one commandFramework + codeBuilt-in

engraph is not a replacement for Obsidian — it's the intelligence layer that sits between your vault and your AI tools.

🎯 aiskill88 AI 点评 A 级 2026-05-27

高质量的开源MCP工具,实现本地知识图谱搜索

⚡ 核心功能

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

MCP是多智能体通信协议
💡 AI Skill Hub 点评

AI Skill Hub 点评:本地知识图谱 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 本地知识图谱
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 engraph
Topics ai-agentsknowledge-graphlocal-firstmcpobsidianrust
GitHub https://github.com/devwhodevs/engraph
License MIT
语言 Rust
🔗 原始来源
🐙 GitHub 仓库  https://github.com/devwhodevs/engraph

收录时间:2026-05-27 · 更新时间:2026-05-27 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。