# CodeAbra/iai-personal-memory-engine [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/CodeAbra/iai-personal-memory-engine  
**GitHub Stars:** 926  
**Views:** 10  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/codeabra-iai-personal-memory-engine

## Description
Local memory daemon for any MCP-over-stdio client with three-tier storage (episodic/semantic/procedural). Own SQLite + hnswlib store (Hippo) with bge-small-en-v1.5, MIT-licensed community-detection reranking (MOSAIC), and sleep-cycle consolidation. AES-256-GCM encrypted at rest, no telemetry. Verbatim recall >=99% and post-contradiction Rescue@10 1.000 at honest scale. Ambient capture via shell hooks. Windows support in beta.

## Tools
Capabilities this server exposes over MCP:

- **memory_recall** — Cue-based recall — returns hits **and anti-hits**: memories that *contradict* the cue surface next to the ones that match, so a stale fact can't masquerade as current.
- **memory_temporal_recall** — Time-anchored recall — *"what did I say about pricing in May?"*
- **memory_recall_structural** — Retrieve by the *shape* of a memory (the HD substrate), not just its embedding.
- **memory_search** — Plain text search over the store.
- **memory_capture** — Write a memory explicitly (ambient capture normally does this for you).
- **memory_contradict** — Record that a fact changed. The old version is archived, not erased — both stay retrievable. That's the Rescue@10 and historical-verbatim story in the [benchmarks](#benchmarks).
- **memory_reinforce** — Strengthen a memory's recall pathways.
- **memory_consolidate** — Run a consolidation pass now instead of waiting for idle.
- **profile_get_set** — The eleven sealed procedural knobs the engine learns about you.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/CodeAbra/iai-personal-memory-engine), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
python3.12 -m pip install -U iai-pme
```

2. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/CodeAbra/iai-personal-memory-engine/main/scripts/bootstrap.sh | bash
```

3. Check the setup:

```sh
curl -fsSL https://raw.githubusercontent.com/CodeAbra/iai-personal-memory-engine/main/scripts/bootstrap.sh | bash -s -- --dry-run
```

4. Configure:

```sh
iai-mcp crypto init
```

5. Install:

```sh
iai-mcp daemon install
```

6. Add to your MCP client:

```sh
iai-mcp capture-hooks install --target codex
```

## Documentation

## What CodeAbra/iai-personal-memory-engine does

CodeAbra/iai-personal-memory-engine is a local MCP memory daemon designed for AI coding workflows. It stores conversation material in three layers: timestamped episodic records, semantic summaries created from related episodes, and procedural parameters learned from behavior. The engine can automatically capture turns through host hooks, while MCP clients can also write memories explicitly.

The system keeps historical versions available. When a fact changes, `memory_contradict` closes the old record’s validity interval, creates a replacement, and links the two. Retrieval can therefore return matching memories alongside relevant contradictions, helping an agent distinguish current information from stale information.

## How it works

The local store, called Hippo, combines encrypted records with vector indexing and graph data. Embeddings use `bge-small-en-v1.5` according to the project description, while the system also includes MOSAIC community detection and the Lilli HD hyperdimensional substrate for structural recall. A native Rust engine handles embedding and graph operations.

Recall combines semantic similarity with graph evidence, recency, temporal validity, and lexical signals. Idle processing embeds and deduplicates captured material, inserts it into the store, groups related episodes, creates semantic memories, reinforces useful paths, and decays weak unreviewed edges. A consolidation pass can also be started manually.

The default installation is local and uses AES-256-GCM encryption at rest. One optional REM step can call `claude -p` through the user’s existing Claude subscription for a single nightly insight; setting `IAI_MCP_REM_DISABLED=1` disables that step. The project states that it does not use telemetry, although it performs a daily version check and downloads the embedding model once.

## Setup and configuration

Install the Python package with Python 3.11 or 3.12:

```bash
python3.12 -m pip install -U iai-pme
```

Initialize encryption and install the background daemon on a non-Claude-Code host:

```bash
iai-mcp crypto init
iai-mcp daemon install
```

Capture hooks can be installed for supported targets such as Cursor or Codex:

```bash
iai-mcp capture-hooks install --target cursor
```

The all-in-one macOS and Linux bootstrap also installs the service, hooks, and Claude Code registration, but requires Git, Node.js 18 or newer, Rust, and Python 3.11 or 3.12. Use `iai-mcp doctor` for health checks. Windows support is beta.

## Tools and capabilities

The MCP interface exposes:

- `memory_recall` for cue-based retrieval with `hits` and `anti_hits`.
- `memory_temporal_recall` for questions bounded by time.
- `memory_recall_structural` for retrieval based on memory structure.
- `memory_search` for plain-text search.
- `memory_capture` for explicit writes.
- `memory_contradict` for versioning changed facts without erasing history.
- `memory_reinforce` for strengthening recall pathways.
- `memory_consolidate` for running idle-style consolidation immediately.
- `profile_get_set` for the engine’s sealed procedural settings.

Supported hosts receive bounded context at session start and may receive smaller updates during later turns when their hooks support those features. The MCP tools themselves work with MCP-over-stdio clients.

## Limitations and notes

Automatic capture and context injection depend on hooks exposed by the host; MCP tool access does not require those host-specific features. A nightly model-assisted consolidation step is enabled by default and uses the existing Claude subscription rather than an Anthropic API key. Existing legacy SQLite stores may require migration to the native engine format. Reported benchmarks include Rescue@10 of 1.000 after contradiction, historical-verbatim hit@10 of 1.000, and LongMemEval-S R@5 of 0.962; these are benchmark results rather than guarantees for every workload.

_Full upstream README: https://allmcps.com/mcp/codeabra-iai-personal-memory-engine/readme_

