Skip to main content

Brainllm

io.github.miisodev/brainllm

v13.3.4Updated Nov 21, 2026stdio · npm

Self-hosted memory for LLMs in TriliumNext, structured by the server and editable by you.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add brainllm -e 'TRILIUM_BASE_URL=<your-trilium-base-url>' -e BRAINLLM_MODE=core -- npx -y [email protected]

Configuration

10 settings.

  • TRILIUM_BASE_URL
    Env var· required
    Base URL of the TriliumNext instance, e.g. http://localhost:8080
  • TRILIUM_ETAPI_TOKEN
    Env var· optional· secret
    ETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI.
  • TRILIUM_PASSWORD
    Env var· optional· secret
    Alternative to TRILIUM_ETAPI_TOKEN — BrainLLM mints a token on first start and caches it beside brainllm.json.
  • BRAINLLM_OWNER_PASSWORD
    Env var· optional· secret
    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
    Env var· optional· secret
    Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.
  • BRAINLLM_MODE
    Env var· optional
    core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools.Default: core
Show 4 more
  • BRAINLLM_TZ
    Env var· optional
    IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.
  • BRAINLLM_PUBLIC_URL
    Env var· optional
    Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.
  • BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP
    Env var· optional
    Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.
  • BRAINLLM_TRUST_PROXY
    Env var· optional
    Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.

Listed in the official MCP Registry since Nov 21, 2026. Mirrored daily; last checked Nov 26, 2026.