MCP directory
B

Brainllm

by github.com/miisodev · v13.3.4 · updated Nov 21, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • TRILIUM_BASE_URLrequired

    Base URL of the TriliumNext instance, e.g. http://localhost:8080

  • TRILIUM_ETAPI_TOKENsecret

    ETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI.

  • TRILIUM_PASSWORDsecret

    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_PASSWORDsecret

    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_SECRETsecret

    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.

More MCP servers