BrainLLM
Persistent, graph-shaped memory for Claude and any MCP client.
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.






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
The server owns form
Placement, labels, deduplication, lifecycle and dates are deterministic server policy, never requests in a prompt.
A typed graph, not a pile
Sixteen relation verbs connect notes, with backlinks, paths and a rendered Mermaid view of the whole.
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.
Sessions that close honestly
The close gate checks the calls actually made and refuses to finish until the record is written.
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.