Al Buddy Memory logo

Al Buddy Memory

Local, governed agent memory with immutable facts, provenance, invalidation, audit records, and keyword recall.

Install Al Buddy Memory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "al-buddy-memory": {
      "command": "npx",
      "args": [
        "-y",
        "al-buddy-memory",
        "mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio al-buddy-memory -- npx -y al-buddy-memory mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

al-buddy-memory provides governed local memory for AI agents using a SQLite database stored on disk. Facts are invalidated rather than overwritten, with provenance attached to facts and links and calls recorded for auditing. Raw text remains the source of truth, while embeddings are optional disposable caches tagged by model. Reach for it when an agent needs portable, model-independent memory without an account, API key, or hosted service.

Use cases

  • Store user preferences with provenance
  • Retire outdated facts without overwriting history
  • Inspect what the memory store believed at an earlier time
  • Share local memory across configured MCP clients
  • Export memory for use in another runtime

Key features

  • Immutable fact history
  • Fact and link provenance
  • Governed, audited erasure
  • Keyword recall with optional embeddings
  • Versioned JSON export
  • SQLite-based local storage

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.

13/13 checks healthy over the last 52d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · al-buddy-memory (npm)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
npm downloads589Package downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.

How Al Buddy Memory works

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:

Terminal
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.

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 Al Buddy Memory

al-buddy-memory is an MCP server that connects AI agents to a local SQLite memory store. Its main tools include `remember` for recording facts and `recall` for retrieving them, with explicit invalidation for outdated facts, provenance on stored information, and audited operations.

Run `npx -y al-buddy-memory init` with Node.js 22 or later. The initializer creates the local database and configures Claude Code, Codex, and Cursor when their relevant installations are available. Restart the clients after initialization.

Yes, al-buddy-memory runs locally without an account, API key, or metered service. Its quick-start configuration uses keyword recall and does not download the optional embedding model.

Changed facts are invalidated rather than overwritten. `remember` can identify possible conflicts, but it does not retire them automatically; the obsolete fact must be explicitly invalidated.

The initializer creates the SQLite database at `~/.al-buddy-memory/brain.db`. Configured clients use the same database, allowing them to share the local memory.

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 PreviewAl Buddy Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/al-buddy-memory?style=directory)](https://allmcps.com/mcp/al-buddy-memory)
HTML Embed
<a href="https://allmcps.com/mcp/al-buddy-memory"><img src="https://allmcps.com/api/badge/al-buddy-memory?style=directory" alt="Al Buddy Memory on AllMCPs" /></a>