Mnema

ai.zimac由 zimac.ai 发布v0.2.0更新于 Oct 24, 2026

Local-first, formally verified memory for AI agents: consult/learn/related/list over MCP.

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

为 AI 助手提供本地持久记忆库,可通过 MCP 查询、写入和浏览记忆。

可以做什么
Mnema 为 AI 助手运行一个共享的本地记忆库,并暴露四个 MCP 工具:consult(行动前检索记忆)、learn(记录一条持久事实)、related(遍历图谱邻居)、list(浏览近期条目)。检索结合词法搜索与图谱扩散激活,可选语义嵌入,每个回答都带有置信区间。同一记忆库可被 Claude Code、Claude Desktop、Cursor、脚本和 CI 等多个客户端共享。
适用场景
当你希望助手跨会话、跨客户端记住持久事实,又不愿把这些记忆上传到云端时,值得安装。适合需要在行动前查阅既有经验的助手、脚本和 CI。若只需要单次会话的上下文,则意义不大。
运行要求
以本地进程(stdio)方式在 macOS 或 Linux 上运行,可通过 .mcpb 包或独立二进制安装。默认数据存放在 ~/.mnema,并在 自动启动本地守护进程。将 MNEMA_URL 指向远程存储时,需要 MNEMA_TOKEN 作为 bearer 凭据。可选环境变量:MNEMA_DATA_DIR、MNEMA_URL、MNEMA_TOKEN。
安装前请注意
默认数据保留在本地 ~/.mnema,但把 MNEMA_URL 设为非回环地址后,服务器会变成桥接模式,把记忆发送到该远程存储,因此只应指向你信任的存储。远程存储需要 MNEMA_TOKEN 密钥,请勿写入共享配置。learn 工具会把持久事实写入共享记忆库,任何使用该库的客户端都能看到这些内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mnema,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Mnema

Local-first, formally verified memory for AI agents — one shared store, every client, over MCP.

Your agents rent their intelligence from a lab; their memory should be yours. Mnema is a single, durable store of what your agents have learned — consult it before you act, learn a durable fact, walk the related graph, list what's recent. Data lives in ~/.mnema on your machine and nothing leaves it unless you point it somewhere.

  • Verified engine. The embedded engram database is formally specified and machine-checked (property catalog discharged by 250+ tests, an exhaustive CRDT conformance model checker, Kani proofs, and a TLA⁺ model). Every released binary passed that gate on its exact commit.
  • Local-first. An open, append-only segment format in ~/.mnema. No cloud, no account.
  • One store, every client. Claude Code, Claude Desktop, Cursor, your scripts, and your CI all talk to the same memory. Recall is lexical + graph spreading-activation (plus optional semantic embeddings), with an honest confidence band on every answer.

This repository hosts the public release bundles (.mcpb) and prebuilt binaries. The product, docs, and downloads live at mnema.zimac.ai.

Install

From the MCP Registry (recommended)

Mnema is published to the official MCP Registry as ai.zimac/mnema. Any registry-aware client can install it by name; it pulls the platform .mcpb bundle from this repo's releases and verifies its fileSha256.

.mcpb bundle (manual)

Grab the bundle for your platform from the latest release and open it with an MCP-bundle-aware client (e.g. Claude Desktop → Extensions):

PlatformAsset
macOS (universal)mnema-<version>-macos-universal.mcpb
Linux (x86_64)mnema-<version>-linux-x86_64.mcpb

A .mcpb is a ZIP of a manifest.json, the mnema binary, and this README. Each is dry-run verified (the bundled binary completes an MCP initialize handshake) before release.

Headless binary (curl | sh)

For agents, scripts, and CI — installs the standalone mnema binary:

sh
curl -fsSL https://mnema.zimac.ai/install.sh | sh

(macOS universal + Linux x86_64 prebuilt; anything else builds from source. The macOS GUI app is a separate download at mnema.zimac.ai.)

Give your agents memory

sh
claude mcp add mnema -- mnema mcp

That's the whole setup: mnema mcp auto-starts the shared local store if it isn't running, and the session gets four tools — consult (search before you act), learn (record a durable fact), related (graph neighbours), list (browse). Any MCP client works; the generic config is:

json
{ "mcpServers": { "mnema": { "command": "mnema", "args": ["mcp"] } } }

Point it at a shared / team store

The same binary bridges to a remote Mnema (a token-protected mnema serve or a hosted learnings pod) instead of the local one:

sh
MNEMA_URL=https://memory.example.com MNEMA_TOKEN=<secret> mnema mcp

With a non-loopback URL nothing is auto-started — it's a pure authenticated bridge.

Configuration

EnvDefaultWhat
MNEMA_DATA_DIR~/.mnemaWhere the store lives
MNEMA_URLhttp://127.0.0.1:7077Store the CLI/MCP bridge targets
MNEMA_TOKEN—Bearer credential for a remote store

Links


Mnema is a Zimac project.

来源:README.md,提交 3ad94ce

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。