@engramlabs/mcp

中文文档
0.6.1发布于 2026/11/05MIT零依赖构建来源已验证近 30 天下载 5404

Local-first agentic memory: the engram MCP server launcher. Memory + knowledge graph + beliefs + code intelligence for any MCP client.

原始使用文档
文档目录7 节
  1. Install
  2. Choose embeddings at startup
  3. Branch-bound code indexing
  4. Code reset (destructive — owner gate required)
  5. Ontology packs
  6. Optional agent workflows
  7. Platforms and configuration

@engramlabs/mcp

Local-first memory, knowledge and code retrieval for AI agents, via MCP. Remember decisions, search documents, and navigate code relationships in one store.

Install

npm install -g @engramlabs/mcp
engram-mcp install --client claude

Other clients: claude-desktop, cursor, codex, pi, copilot. The installer registers the installed package version and defaults storage to ~/.engram. Restart your MCP client after registration.

Choose embeddings at startup

One install, no editions or extra packages:

engram-mcp --storage ~/.engram          # Local embeddings enabled
engram-mcp --storage ~/.engram --slim   # Embeddings off

Local embeddings may download model assets on the first launch; inference then runs on your machine. --slim skips embedding setup and downloads. Memory, knowledge, lexical and graph features remain available, but search ranking can differ. It changes runtime behavior, not installation size.

To configure a client without embeddings:

engram-mcp install --client claude --slim

Restart to switch modes, keeping the same storage path and project. Content added while embeddings are off needs vector backfill using the MCP reindex tool after re-enabling them.

Branch-bound code indexing

Code indexes are pinned to a canonical branch (default refs/heads/main), not your checkout. Indexing reads committed bytes of the bound branch; a dirty working tree or a colleague's feature branch never contaminates the index. One branch per (project, repository).

engram-mcp code --op register --repo myrepo --path /abs/path/to/repo --json
engram-mcp code --op bind    --repo myrepo --branch-ref refs/heads/main --json
engram-mcp code --op rebuild --repo myrepo --request-id <unique-key> --json
engram-mcp code --op status  --repo myrepo --json
engram-mcp code --op refresh --repo myrepo --json

Read tools (search, recall, fetch_content, symbol_context) honor the binding automatically — never pass a branch to read tools. fetch_content returns byte-exact committed content (sha256-verified against the bound revision), even if the file is dirty or deleted locally.

After every merge to main: refresh then rebuild to keep the index current.

Code reset (destructive — owner gate required)

engram-mcp code --op reset-preview --repo myrepo --json > preview.json
# Show the owner: target count, ambiguity list, preservation inventory.
# Get an explicit go-ahead, then:
engram-mcp code --op reset-apply --journal "$(cat preview.json)" --decision "<owner-gate>" --json

Ambiguous legacy targets block the preview. Ordinary memory and knowledge are never touched by a code reset.

Ontology packs

Classify knowledge under a standing domain vocabulary — not ad-hoc tags. Pin an ontology and taxonomy at launch, or install a standard-domain pack:

engram-mcp --storage ~/.engram --project myproject \
  --ontology ~/.engram/myproject-ontology.json \
  --taxonomy ~/.engram/myproject-taxonomy.json

Standard-domain packs (33 pinned: FIBO for banking, schema.org for travel, healthcare, logistics, and 29 more):

engram-mcp pack list                          # browse the catalogue
engram-mcp pack install fibo --storage ~/.engram --project banking
engram-mcp pack status --storage ~/.engram

Installed packs add a vocabulary layer for the engram-distill skill's classification — extracted entities, relationships, and facts are typed against the pack's real-world vocabulary (e.g. a banking Loan, not a generic Concept). No pack is required; the default technical/domain/business ontology ships built-in.

Optional agent workflows

engram-mcp install --agent claude

Adds skills, hooks, review workflows, and the factory specialist subagents. The skill set is derived from the package's authored tree at build time — currently eight: engram-index, engram-know, engram-mem, engram-distill, engram-bound (branch-bound index lifecycle), outcome-reporting, plus the software-factory pair engram-factory and engram-frame. New skills flow to delivery with no installer change; retired skills from older installs are removed automatically unless you replaced them. Uninstall with engram-mcp install --agent <host> --remove — removal is name-tagged, so files you replaced or added yourself are left untouched. engram-factory also delivers its 14 specialist subagents in each host's native dialect (claude, codex, copilot, pi). Use --scope project for a repository installation. Copilot is the exception at user scope: that platform discovers agents only per repository, so install --agent copilot writes its 15 agent files (14 specialists plus red-forman.md, refreshing copies carrying our name tag) into the current repository's .github/agents/ even with --scope user — run it from the repo that should carry them, and expect that side effect in any repo you are standing in. See the setup guide.

Platforms and configuration

Prebuilt binaries: Linux x64/ARM64 (glibc), macOS Apple Silicon, Windows x64. Other platforms require a source build.

For remote embeddings, model caching and safe model changes, see Configuration.

Data stays in your chosen storage directory. No telemetry. Local inference requires no embedding service; configuring a remote provider sends embedding inputs to that service.

GitHub · MIT

版本与发布记录

@engramlabs/mcp 共发布 30 个版本,首次发布于 2026/10/19;过去 12 个月发布了 30 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.6.1latest2026/11/058 天前
0.6.02026/11/0113 天前
0.5.02026/10/2717 天前
0.4.32026/10/2519 天前
0.4.22026/10/2519 天前
0.4.02026/10/2519 天前

其他发布通道:alpha → 0.3.1-alpha。

关于 @engramlabs/mcp 的常见问题

@engramlabs/mcp 是什么?

Local-first agentic memory: the engram MCP server launcher. Memory + knowledge graph + beliefs + code intelligence for any MCP client.

如何安装 @engramlabs/mcp?

在项目目录运行 npm install @engramlabs/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 engram-mcp,可以用 npx engram-mcp 直接运行。

@engramlabs/mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/engramlabs__mcp 是否存在。

@engramlabs/mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@engramlabs/mcp 可以商用吗?

@engramlabs/mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@engramlabs/mcp 的下载量有多少?

根据 npm 官方下载统计,@engramlabs/mcp 在 2026/10/14 – 2026/11/12 这 30 天内被下载 5,404 次,日均约 180 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@engramlabs/mcp 还在维护吗?

最新版本 0.6.1 发布于 2026/11/05(8 天前);至今共发布 30 个版本,其中过去 12 个月发布了 30 个;首次发布于 2026/10/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。