All work
Live · open sourceMITnpm

One memory,
every AI.

Membrain is a memory ledger you run on your own machine — or open free in the cloud. You write to it from a paper-and-ink web UI; your agents write to it over MCP. What one remembers, all of them know. Self-hosted, everything is a single SQLite file on your disk; hosted, the same ledger lives at membrain.devlune.in and agents connect with API keys.

Then one word — membrain — brings up the ledger, the REST API and a live MCP endpoint.

The ledgermemory.db
#140you
#141import
#142cursor
#143claude-code
#144you
One memory · every AI144 entries
Membrain

What the ledger does

01

One memory, shared over MCP

Eight tools — save, search, update, list, and a one-call session-start digest. Claude Code, Claude Desktop, Cursor: anything that speaks the protocol writes into the same ledger, and every entry is stamped with who wrote it.

02

Recall that actually recalls

Hybrid search: sqlite-vec embeddings and FTS5 keywords merged with reciprocal rank fusion, plus a gentle recency boost. The embedding model runs locally on CPU — recall works with zero API keys, offline.

03

A clerk, not an editor

A local Ollama — or any pasted cloud key — organizes the store into topics, drafts titles, distills dropped PDFs into candidate entries. Every AI change is staged for your approval. Nothing edits your memory silently.

04

One file of state

The whole store is a single SQLite file on your disk. A backup is a file copy; a snapshot happens on every boot; a markdown export turns the ledger into a git-diffable folder. No accounts, no cloud, no telemetry.

05

The atlas

The clerk draws your store as a constellation — people, projects, tools and how they connect, laid out with real physics. Built on request, never used for retrieval; a map, not a database.

06

Your agents' whole desk

It also manages agent skill files on disk and discovers memory your agents already keep, importing it hash-tracked so nothing files twice. The web UI, REST API and MCP endpoint are one process, one port.

The contract

Agents connect at /mcp — Streamable HTTP or stdio — and get a small, sharp toolset:

save_memorywrite a fact into the ledger
save_memoriesfile several at once
search_memoryhybrid semantic + keyword recall
memory_contextone-call session-start briefing
get_memory / list_memoriesread entries
update_memory / delete_memorycorrect the record

Principles

No auth by design

It binds to localhost. The network boundary is the security model — no logins bolted onto a personal tool.

Human-inspectable

Anything an agent writes is visible and editable in the web UI. No hidden tables, no silent ghosts.

Offline by default

Local embeddings, local LLM, local file. Cloud keys are an option, never a requirement.

Same path for every writer

UI, REST and MCP call the same core functions. Your agents get no secret door.

StackNode 20 · TypeScript · SQLite · sqlite-vec · React
LicenseMIT, open source
PriceFree
Installnpm i -g membrain-mcp
Hostedfree at membrain.devlune.in — same ledger, zero setup

Crafted in the dark. Shipped to the world. — DevLune