能力标签
🔌
MCP工具

AI个人记忆引擎

基于 Python · 让 AI 助手直接操作你的系统与工具
英文名:iai-personal-memory-engine
⭐ 136 Stars 🍴 16 Forks 💻 Python 📄 MIT 🏷 AI 8.2分
8.2AI 综合评分
记忆系统MCP工具AI代理向量嵌入Claude集成
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:AI个人记忆引擎 是一款优质的MCP工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

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

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

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

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

📋 工具概览

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

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

📖 中文文档

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

AI个人记忆引擎 是一款遵循 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/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
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 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 生效
📑 README 深度解析 真实文档 完整度 58/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <img src="logo.png" alt="iai-pme" width="600"> </p>

The best open-source personal memory engine for AI coding assistants.

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>

---

About the name

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

  • Independent. Fully local. The local engine runs on your machine, embeddings are computed locally, no telemetry, no cloud dependency. Your memory is your data and stays your data — and it tunes itself over time without you steering it.
  • Autistic. Describes the memory style, not a diagnosis or a metaphor. The memory is built around verbatim recall, attention to specific cues, and a refusal to smooth rare events into typical ones. Most memory systems compress and summarize aggressively, aiming to give the assistant a gist of the past. This one preserves what was actually said and surfaces it on a precise cue. In practice that shows up as: literal preservation over paraphrase; deep focus on the current thread rather than diffuse association; direct, unmasked output; a stable identity that doesn't drift. The trade-off is intentional: more storage and a stricter retrieval interface, in exchange for not losing details.
  • Intelligence. Used in the systems sense — something that observes, adapts, and stays viable over time — not the marketing sense.

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.

---

Prerequisites

  • macOS (Apple Silicon tested)
  • Python 3.11 or 3.12
  • Node.js 18+
  • A Rust toolchain — the native engine builds from source
  • An MCP-compatible CLI host — Claude Code, Codex CLI, Gemini CLI, Cursor CLI, and others
  • ~500 MB free disk

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.

Install

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

Install the capture + recall hooks

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:

  • Copies three hook scripts from 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.
  • Registers iai-mcp in Claude Desktop's config if installed.
  • Idempotent — re-running detects existing entries and makes no changes.
  • No secrets, no tokens, no network calls.

What happens at runtime:

  • Every prompt (per-turn hook): appends new transcript turns to the session buffer. ~5 ms per turn, no embedding, no engine socket.
  • Every session end (Stop hook): rolls the buffer over, captures any remaining turns. Fail-safe exit 0.
  • Every session start (recall hook): assembles the cached memory prefix and pipes it to Claude. Empty store or unreachable local engine → empty stdout.
  • When idle (local engine): drains the buffer through the shield → embed → dedup → encrypted insert pipeline on the WAKE → DROWSY edge (5-min idle) and after every REM cycle.

Notes for AI assistants helping with installation

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.
  • Cold start takes a few seconds. The local engine initializes the store and loads the embedding model into memory. Don't kill it because it hasn't responded in 5 seconds.

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.

---

Quick start

<p align="center"><img src="docs/assets/slides/slide-15.jpg" width="850" alt="iai-pme"></p>

Usage

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>

---

Configuration

VariableDefaultWhat it does
IAI_MCP_STORE~/.iai-mcp/Data directory
IAI_MCP_PYTHONAbsolute 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.

---

Troubleshooting

SymptomCauseFix
Local engine refuses to start, error ends in a build commandThe 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 runStorage 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 CryptoKeyErrorFresh 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 installiai-mcp daemon uninstall first, then install again.
Daemon "active" but no tick eventsFirst-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 addForgot to fully quit — "reload window" is not enoughkillall Claude then relaunch. Check ~/Library/Logs/Claude/*.log for MCP stderr.

---

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

高质量MCP工具,填补AI助手记忆空白。基准测试完善,代码活跃维护,Claude生态适配好,是AI应用开发必备组件。

⚡ 核心功能

👥 适合人群

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

🎯 使用场景

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

⚖️ 优点与不足

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

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

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

📄 License 说明

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

🔗 相关工具推荐

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

❓ 常见问题 FAQ

主要支持Claude和其他MCP兼容的AI编码助手,通过MCP协议集成
💡 AI Skill Hub 点评

总体来看,AI个人记忆引擎 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

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

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

📚 深入学习 AI个人记忆引擎
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 iai-personal-memory-engine
Topics 记忆系统MCP工具AI代理向量嵌入Claude集成
GitHub https://github.com/CodeAbra/iai-personal-memory-engine
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/CodeAbra/iai-personal-memory-engine

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