简介
Wax 是面向 agent 的本地优先记忆层:把检索与记忆放在本机,通过 MCP server 暴露读写接口,减少依赖“提示工程”去模拟记忆。
最适合: 想要私密、低延迟记忆能力的 Apple Silicon 用户
适配: MCP 客户端(Claude Code 等);也可用 SwiftPM 集成(README 有说明)
配置时间: 5–20 分钟
关键事实(已验证)
- README 提供通过
npx -y waxmcp@latest ...安装 MCP 的命令。 - 同时给出 HTTP transport 的启动参数用于远程/团队部署(README 描述)。
- GitHub:731 stars · 42 forks;最近更新 2026-05-13(GitHub API 验证)。
正文
把记忆当成真正的“接口”
写入小而可查询的事实,让写入显式可控,并把读写操作记录进 agent trace。
README 原文节选(verbatim)
Wax is a high-performance, single-file memory layer for AI agents on Apple platforms.
On-device, private, and portable. No server and no cloud dependency.
English · Español · Français · 日本語 · 한국어 · Português · 中文
What is Wax?
Wax is a Swift-native persistence engine for AI agents. It stores documents, embeddings, and structured knowledge in a single portable .wax file.
The goal is simple: keep memory local, keep setup light, and make recall fast enough that it can stay in the loop.
Why Wax?
| Feature | Wax | SQLite (FTS5) | Cloud Vector DBs |
|---|---|---|---|
| Search | Hybrid (Text + Vector) | Text Only* | Vector Only* |
| Latency | ~6ms (p95) | ~10ms (p95) | 150ms - 500ms+ |
| Privacy | 100% Local | 100% Local | Cloud-hosted |
| Setup | Zero Config | Low | Complex (API Keys) |
FAQ
Wax 是 MCP server 还是库? 答:两者都是:README 同时提供 MCP 安装方式与 SwiftPM 集成方式。
需要再配一个向量数据库吗? 答:README 强调本地优先;很多场景可直接当作 on-device 检索层使用。
能远程部署吗? 答:README 给出 HTTP transport;使用前请评估隐私与鉴权。