# al-buddy-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/flytomoon/al-buddy-memory  
**GitHub Stars:** 3  
**npm Downloads (last month):** 589  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/al-buddy-memory

## Description
Governed local memory for AI agents: facts are retired, not overwritten, and every call is audited.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "al-buddy-memory": {
    "command": "npx",
    "args": ["-y","al-buddy-memory","mcp"]
  }
}
```

## Documentation

## What al-buddy-memory does

al-buddy-memory gives AI agents a local memory store designed to preserve how knowledge changed over time. Facts are not edited in place: when a statement stops being true, it is retired and a replacement can be recorded. This lets an agent distinguish current information from earlier assertions instead of treating both as active.

Each fact and relationship carries provenance, such as user-provided, AI-inferred, guardian-added, or system-generated. Calls are audited, and governed erasure follows policy while removing the related history. Raw text is retained as the authoritative source. Embeddings can support recall, but they are treated as replaceable, model-specific cache data.

The store can export facts and links in a versioned JSON format with a published schema. That makes the memory portable across models, runtimes, and vendors rather than tying it to one agent platform.

## How it works

The local store uses SQLite and is shared by the configured MCP clients. The default quick-start path uses keyword recall and therefore does not download an embedding model. An optional embedding model can be used when semantic retrieval is needed.

The memory model separates two kinds of time. A fact can be queried by when it was valid, while historical reads can show what the store believed at a particular point. `getNodeAsOf` and `snapshotAsOf` provide point-in-history views, and `snapshotAsOf` can combine store history with a requested validity time. When available history cannot support a read, the result is marked accordingly.

The main interaction pattern uses `remember` to add information and `recall` to retrieve it. `remember` can suggest possible conflicts, but it does not retire conflicting facts automatically; an agent or user must explicitly invalidate the obsolete fact.

## Setup and configuration

Node.js 22 or later is required. Run the initializer with:

```sh
npx -y al-buddy-memory init
```

Initialization creates `~/.al-buddy-memory/brain.db`. If the relevant command-line clients are installed, it configures the server for Claude Code and Codex, and writes a Cursor configuration at `~/.cursor/mcp.json`. Existing configuration entries are preserved. Restart the clients after setup.

The first installation requires npm network access. After installation, the memory database remains local. The quick-start configuration requires no account, API key, or metered service.

## Tools and capabilities

- Store facts without overwriting their original raw text.
- Recall stored information using keyword search in the default setup.
- Record provenance for facts and links.
- Identify and retire facts that are no longer valid.
- Audit calls and governed erasure operations.
- Query validity time separately from store-history time.
- Export memory using a versioned JSON schema.
- Maintain optional, model-tagged embeddings as rebuildable cache data.

## Limitations and notes

Conflict detection does not automatically decide which fact is correct or retire the older one. Explicit invalidation is required when a fact changes. Embedding-based retrieval is optional; the quick start intentionally uses keyword recall. The memory is local to the SQLite database, so clients must be configured to use the same database when they are expected to share state.

_Full upstream README: https://allmcps.com/mcp/al-buddy-memory/readme_

