BrainLLM

Persistent, graph-shaped memory for Claude and any MCP client.

Version 13.3.2

What it is

BrainLLM turns a self-hosted TriliumNext instance into a memory a model keeps across sessions: five areas, typed relations, and a session lifecycle the server enforces. The model supplies content; the server owns form.

It is open source under the MIT licence, installs from npm or the MCP Registry, and runs locally over stdio or as an authenticated HTTP service when hosted.

It is the memory this operation runs on, and this site was written from it.

Table of BrainLLM’s five areas: Master, LLM, Memory, Knowledge and Insights, with their note typesIllustrative revise call with dryRun enabled, followed by destination-first move steps and a partial-progress warningSix session protocol calls, with the required session → remarks → diary order and an example refused closeFive example note relationships in a table, each with a named relation and a direction arrowClaude’s diary says a consistency check overturned a claim recorded eight hours earlierBrainLLM’s 45 core tools grouped by session, writing, reading, updates, graph, files, upkeep and surface reads

What it’s for

For people who want AI assistants to retain structured context across sessions while keeping the underlying memory on a self-hosted, inspectable TriliumNext instance.

  • Pick up where you left off

    Each session opens with the preferences, protocols and recent changes the last one left behind.

  • Knowledge you can check

    Domains keep sourced notes and a current state the model can cite and correct.

  • Memory you own

    Every note lives in your own TriliumNext, where you can read it, edit it and back it up.

Version
13.3.2
Licence
MIT
Install
npm brainllm · MCP registry io.github.miisodev/brainllm
Transport
stdio locally · authenticated HTTP when hosted
Built with
Bun · TypeScript · Model Context Protocol · ETAPI · Zod

How it’s made

  1. The server owns form

    Placement, labels, deduplication, lifecycle and dates are deterministic server policy, never requests in a prompt.

  2. A typed graph, not a pile

    Sixteen relation verbs connect notes, with backlinks, paths and a rendered Mermaid view of the whole.

  3. Safe changes

    Every content write takes a revision first, previews show an edit before it lands, and consistency checks find a fact the memory states two different ways.

  4. Sessions that close honestly

    The close gate checks the calls actually made and refuses to finish until the record is written.

  5. Secured when hosted

    Hosted use sits behind OAuth, with optional authenticator codes and replay protection.

Disclaimer

  • You provide and run the TriliumNext instance; BrainLLM does not host your memory.
  • Memory works only while the assistant has BrainLLM's tools connected. Without them, nothing is read or written.
  • The gallery illustrates how the system works. It does not show customer adoption.

Support

Write to miisodev@gmail.com about installing or hosting BrainLLM, or a memory that misbehaved.