AI Skill Hub 强烈推荐:AI个人记忆引擎 是一款优质的MCP工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
AI个人记忆引擎 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
AI个人记忆引擎 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/CodeAbra/iai-personal-memory-engine
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"ai------": {
"command": "npx",
"args": ["-y", "iai-personal-memory-engine"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 AI个人记忆引擎 执行以下任务... Claude: [自动调用 AI个人记忆引擎 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"ai______": {
"command": "npx",
"args": ["-y", "iai-personal-memory-engine"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="logo.png" alt="iai-pme" width="600"> </p>
Every claim ships with the harness that proves it. Run the benchmarks yourself.
<p align="center"> <img src="https://img.shields.io/badge/release-v1.0.0-1f6feb?style=flat-square" alt="Release v1.0.0"> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-1f6feb?style=flat-square" alt="License: MIT"></a> <img src="https://img.shields.io/badge/python-3.11%20|%203.12-3776ab?style=flat-square&logo=python&logoColor=white" alt="Python 3.11 | 3.12"> <img src="https://img.shields.io/badge/platform-macOS-555?style=flat-square&logo=apple&logoColor=white" alt="Platform: macOS"> <img src="https://img.shields.io/badge/engine-Rust%20native-dea584?style=flat-square&logo=rust&logoColor=black" alt="Rust-native engine"> </p> <p align="center"> <img src="https://img.shields.io/badge/LongMemEval%20R%405-0.962-2ea043?style=flat-square" alt="LongMemEval R@5 0.962"> <img src="https://img.shields.io/badge/Rescue%4010-1.000-2ea043?style=flat-square" alt="Rescue@10 1.000"> <img src="https://img.shields.io/badge/at%20rest-AES--256--GCM-2ea043?style=flat-square" alt="AES-256-GCM"> <img src="https://img.shields.io/badge/local--only-no%20telemetry-2ea043?style=flat-square" alt="Local only, no telemetry"> <img src="https://img.shields.io/badge/MCP-compatible-8957e5?style=flat-square" alt="MCP compatible"> <a href="https://glama.ai/mcp/servers/CodeAbra/iai-mcp"><img src="https://glama.ai/mcp/servers/CodeAbra/iai-mcp/badges/score.svg" alt="Glama MCP score"></a> </p>
---
The project is iai — a personal memory engine. The short name is an acronym; the descriptor says what it is.
IAI — Independent Autistic Intelligence (the memory style):
Personal memory engine (what it is): not a chatbot feature or a cloud add-on, but a memory engine — its own storage, clustering, hyperdimensional substrate and native core — that belongs to one person and runs on one machine. See Built our own.
It's an operational design choice about how memory should behave, not a clinical claim.
---
Windows and Linux aren't supported yet — the engine and its native core are macOS-only for now. Contributions are very welcome: if you'd like to port iai-mcp to Linux or Windows, open an issue or PR and I'll help however I can.
git clone https://github.com/CodeAbra/iai-personal-memory-engine.git
cd iai-personal-memory-engine
python3.12 -m venv .venv && source .venv/bin/activate
pip install .
pip install builds the native Rust engine (iai_mcp_native — the embedder + graph kernels) automatically, as part of the package build, via setuptools-rust. There's no separate build script. If you change the Rust source later and need to rebuild it by hand, there's an escape hatch:
iai-mcp build-native # rebuild the native engine in place
Then build the MCP wrapper and set up the local engine (it runs in the background):
cd mcp-wrapper && npm install && npm run build && cd ..
iai-mcp daemon install # launchd on macOS, systemd on Linux
iai --version
This is what makes memory ambient. Without these hooks iai-mcp reads memory but never writes conversation content and never injects recall at session start. One command wires all three:
iai-mcp capture-hooks install # copies all three hooks + patches ~/.claude/settings.json
iai-mcp capture-hooks status # verify: should print "status: ACTIVE"
iai-mcp capture-hooks uninstall # clean removal if ever needed
For Codex:
iai-mcp capture-hooks install --target codex
To install both:
iai-mcp capture-hooks install --target all
What the install does:
deploy/hooks/ to ~/.claude/hooks/ (chmod +x):iai-mcp-turn-capture.sh (UserPromptSubmit, timeout 5s) — appends each prompt + the preceding assistant turn(s) to a per-session buffer as pure file IO. Zero engine RPC during the session.iai-mcp-session-capture.sh (Stop, timeout 35s) — at session end, rolls the buffer over for the local engine to drain, and runs iai-mcp capture-transcript --no-spawn as a safety net.iai-mcp-session-recall.sh (SessionStart, timeout 30s) — calls iai-mcp session-start and pipes the assembled memory prefix to stdout, which Claude Code injects as additionalContext before the first prompt. Fail-safe: empty store or unreachable local engine yields empty stdout — session start is never blocked.What happens at runtime:
If you're an AI model helping a user install or debug iai-mcp, read this before diagnosing anything.
Terminology note: this doc calls the background component the local engine. Its process, CLI subcommands and doctor check labels still use the original name daemon — e.g. iai-mcp daemon status, pgrep -f iai_mcp.daemon, and the (a) daemon process alive check. "Local engine" and "daemon" refer to the same process.
The local engine has four FSM states: WAKE, TRANSITIONING, SLEEP, DREAMING. Separately, the wrapper-layer lifecycle has four states: WAKE, DROWSY, SLEEP, HIBERNATION. These are two different state machines in two different files. Don't confuse them.
Things that look broken but are not:
last_tick_at hasn't changed in hours. This is a sleep-cycle tick timestamp, not a process heartbeat. The daemon can be alive and healthy with a stale last_tick_at. Check iai-mcp daemon status instead.fsm_state: DREAMING for hours. Normal. The local engine is running a sleep cycle. Wake transitions are event-driven (a new session arriving wakes it), not time-driven.status: deferred in the capture log. This is the only path the Stop hook takes. It writes captures to ~/.iai-mcp/.deferred-captures/ and the local engine picks them up on its next tick. This is by design, not a failure.iai-mcp doctor drops the socket check during SLEEP or DREAMING. The socket is intentionally unresponsive during consolidation passes. This is healthy.Actual problems look like: iai-mcp daemon status returning ok: False, doctor showing multiple FAIL results, or the daemon process not existing at all (pgrep -f iai_mcp.daemon returns nothing).
When in doubt, run iai-mcp doctor and read what it says. The output is self-explanatory.
---
<p align="center"><img src="docs/assets/slides/slide-15.jpg" width="850" alt="iai-pme"></p>
You do not call iai-mcp directly during a session. Once it's connected:
Capture is automatic. Every turn, yours and the assistant's, is recorded verbatim with timestamps and session metadata. You don't say "remember this."
Recall is automatic. When a new session starts, the local engine assembles a small relevant slice of your history and injects it into the conversation prefix. You don't say "what did we say."
Consolidation runs idle. Between sessions, the local engine merges duplicates, strengthens recall pathways for things retrieved often, and prunes weak edges. The system gets quietly better at remembering you over time.
After a few weeks of regular use the difference becomes noticeable. The assistant stops asking the same orientation questions, references things you mentioned in passing, and adapts to your style without being told.
There's also a CLI — you don't need it for normal use, but when you want to query or add to your memory straight from the terminal, iai is there: recall, capture, ask (LLM synthesis grounded in your memory), status, and last.
<p align="center"> <img src="docs/assets/iai-cli.png" alt="iai — terminal memory for your agent" width="600"> </p>
---
| Variable | Default | What it does |
|---|---|---|
IAI_MCP_STORE | ~/.iai-mcp/ | Data directory |
IAI_MCP_PYTHON | — | Absolute path to the venv Python (for the MCP host config) |
The old IAI_MCP_EMBED_MODEL knob is gone — the embedder is a single built-in English-only model. There are many internal tuning knobs (IAI_MCP_*), but you shouldn't need to touch them.
---
| Symptom | Cause | Fix |
|---|---|---|
| Local engine refuses to start, error ends in a build command | The native Rust engine isn't built (mandatory — no fallback) | Run the build command the error prints (the installer normally does this). |
keyring.errors.NoKeyringError on first run | Storage is file-backed at ~/.iai-mcp/.crypto.key. Older setups referenced a Keychain-only path. | iai-mcp crypto init (idempotent). iai-mcp daemon install calls this automatically on fresh installs. |
Daemon crashes on first start with CryptoKeyError | Fresh install bypassed daemon install — no .crypto.key exists yet. | iai-mcp crypto init, then restart the daemon. |
iai-mcp daemon install says "launchd bootstrap failed" | Existing plist from previous install | iai-mcp daemon uninstall first, then install again. |
| Daemon "active" but no tick events | First-week bootstrap (no quiet-window data yet) | Wait 2 h of MCP idle, or force: iai-mcp daemon force-rem |
Claude Code doesn't show iai-mcp tools after claude mcp add | Forgot to fully quit — "reload window" is not enough | killall Claude then relaunch. Check ~/Library/Logs/Claude/*.log for MCP stderr. |
---
高质量MCP工具,填补AI助手记忆空白。基准测试完善,代码活跃维护,Claude生态适配好,是AI应用开发必备组件。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,AI个人记忆引擎 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | iai-personal-memory-engine |
| Topics | 记忆系统MCP工具AI代理向量嵌入Claude集成 |
| GitHub | https://github.com/CodeAbra/iai-personal-memory-engine |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-05 · 更新时间:2026-06-05 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端