Iai Personal Memory Engine logo

Iai Personal Memory Engine

by CodeAbra

Local MCP memory daemon with encrypted three-tier storage, contradiction-aware recall, temporal search, and ambient capture.

Install Iai Personal Memory Engine

Run the project’s own setup commands, in order.

Setup steps from the project

CodeAbra/iai-personal-memory-engine installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    python3.12 -m pip install -U iai-pme
    
  2. 2. Install
    curl -fsSL https://raw.githubusercontent.com/CodeAbra/iai-personal-memory-engine/main/scripts/bootstrap.sh | bash
    
  3. 3. Check the setup
    curl -fsSL https://raw.githubusercontent.com/CodeAbra/iai-personal-memory-engine/main/scripts/bootstrap.sh | bash -s -- --dry-run
    
  4. 4. Configure
    iai-mcp crypto init
    
  5. 5. Install
    iai-mcp daemon install
    
  6. 6. Add to your MCP client
    iai-mcp capture-hooks install --target codex
    

Overview

CodeAbra/iai-personal-memory-engine gives MCP-over-stdio clients a local long-term memory store for conversations and user context. It combines episodic, semantic, and procedural memory with cue-based, temporal, structural, and text retrieval, while preserving superseded facts as contradictions rather than deleting them. Background consolidation organizes captures, reinforces useful recall paths, and can inject bounded context into supported host sessions. Reach for it when an agent needs persistent, local memory without a cloud account or telemetry.

Use cases

  • Capture conversation history across coding sessions
  • Recall facts by time period or memory structure
  • Surface changed facts alongside their earlier versions
  • Inject bounded personal context into supported hosts
  • Consolidate and reinforce memories during idle time

Key features

  • Three-tier episodic, semantic, and procedural memory
  • Contradiction-aware recall with hits and anti-hits
  • Temporal, structural, and plain-text search
  • AES-256-GCM encryption at rest
  • Ambient capture through host shell hooks
  • Local consolidation with optional Claude subscription access

Tools9

What Iai Personal Memory Engine lets your agent do. Expand a tool for its parameters.

Self-reported~225 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

34/34 checks healthy over the last 113d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9/20/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars926Stargazers on the source repository.
Last commit17d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How Iai Personal Memory Engine works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Iai Personal Memory Engine

CodeAbra/iai-personal-memory-engine is an MCP server that connects AI clients to a local encrypted memory store. Its main tools support cue-based, temporal, structural, and text recall, explicit capture, contradiction tracking, reinforcement, consolidation, and procedural profile management over MCP.

Install the `iai-pme` Python package with Python 3.11 or 3.12, then initialize encryption and install the daemon with `iai-mcp crypto init` and `iai-mcp daemon install`. Claude Code also has a plugin installation path, while macOS and Linux support an all-in-one bootstrap script.

Yes, Cursor is a supported capture-hook target, and the MCP tools work with MCP-over-stdio clients. Install the package and daemon, then run `iai-mcp capture-hooks install --target cursor` to enable the host-specific capture integration.

It preserves both versions. `memory_contradict` closes the old fact’s validity interval, creates a new record, and links the records; `memory_recall` can return the matching memory and related anti-hits so stale information remains distinguishable and retrievable.

The store, engine, and embeddings run locally, and the project states that it uses no telemetry or API account. An optional nightly consolidation step may invoke `claude -p` through the user’s existing Claude subscription; set `IAI_MCP_REM_DISABLED=1` to disable it.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewIai Personal Memory Engine AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/codeabra-iai-personal-memory-engine?style=directory)](https://allmcps.com/mcp/codeabra-iai-personal-memory-engine)
HTML Embed
<a href="https://allmcps.com/mcp/codeabra-iai-personal-memory-engine"><img src="https://allmcps.com/api/badge/codeabra-iai-personal-memory-engine?style=directory" alt="Iai Personal Memory Engine on AllMCPs" /></a>