# iai-personal-memory-engine

A local MCP server that gives Claude and other MCP-compatible agents long-term memory by capturing every conversation turn verbatim and serving back relevant context automatically.

iai-personal-memory-engine is a local server that speaks the MCP protocol and gives an MCP-compatible agent long-term memory. It records every turn of every session verbatim, organizes those captures over time into a map of the user, and automatically serves a relevant slice of that memory back at the start of each new conversation and turn, without the user needing to ask for it.

The storage engine, community-detection algorithm and a native acceleration engine are custom-built rather than wrapped around an existing vector store or graph library. It runs entirely on local hardware with no API key, account or telemetry; the only network activity is the model calls the host CLI already makes, plus an optional nightly consolidation step. It installs via pip, with a Rust engine and TypeScript wrapper, and integrates with Claude Code, Cursor, Codex and other MCP hosts.

Website: https://github.com/CodeAbra/iai-personal-memory-engine
