Brainllm runs on your own machine — the client starts it, so there is no endpoint to ping. 971 installs a week from npm. Last commit 4 Nov 2026.
Self-hosted memory for LLMs in TriliumNext, structured by the server and editable by you.
Today is the operative word: we check Brainllm every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add brainllm -e 'TRILIUM_BASE_URL=<TRILIUM_BASE_URL>' -- npx -y brainllm
{
"mcpServers": {
"brainllm": {
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "<TRILIUM_BASE_URL>"
}
}
}
}
[mcp_servers.brainllm]
command = "npx"
args = ["-y", "brainllm"]
env = { TRILIUM_BASE_URL = "<TRILIUM_BASE_URL>" }
{
"mcpServers": {
"brainllm": {
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "<TRILIUM_BASE_URL>"
}
}
}
}
{
"servers": {
"brainllm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"brainllm"
],
"env": {
"TRILIUM_BASE_URL": "<TRILIUM_BASE_URL>"
}
}
}
}
Put your own value in place of
<TRILIUM_BASE_URL> (Base URL of the TriliumNext instance, e.g. http://localhost:8080).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
TRILIUM_ETAPI_TOKEN (ETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI), TRILIUM_PASSWORD (Alternative to TRILIUM_ETAPI_TOKEN — BrainLLM mints a token on first start and caches it beside brainllm.json), BRAINLLM_MODE (core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools), BRAINLLM_TZ (IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone), BRAINLLM_OWNER_PASSWORD (Enables the OAuth 2.1 / CIMD endpoints required by claude.ai and other hosted Claude surfaces. This is the password entered on the consent screen when authorizing a client), BRAINLLM_OAUTH_SECRET (Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens), BRAINLLM_PUBLIC_URL (Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client), BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP (Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface), BRAINLLM_TRUST_PROXY (Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them).
Self-hosted remote MCP server for Docmost CE: members read and edit the wiki as themselves
MCP server for Rustpad, the self-hosted collaborative text editor
Cloud-hosted MCP server for durable AI memory
MCP server for Mealie, the self-hosted recipe manager and meal planner
Self-hosted Telegram Bot MCP server for rich text, media and interactive buttons.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Read and write a self-hosted TriliumNext knowledge base over its ETAPI.
Self-hosted AI memory server. Persistent memory on your hardware, not the cloud.
Answers built from our own checks of this server.