io.github.miisodev/brainllm

io.github.miisodev/brainllm

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "brainllm": {
      "command": "npx",
      "args": [
        "-y",
        "brainllm@13.3.1"
      ],
      "env": {
        "TRILIUM_BASE_URL": "<your TRILIUM_BASE_URL>",
        "TRILIUM_ETAPI_TOKEN": "<your TRILIUM_ETAPI_TOKEN>",
        "TRILIUM_PASSWORD": "<your TRILIUM_PASSWORD>",
        "BRAINLLM_MODE": "core",
        "BRAINLLM_OWNER_PASSWORD": "<your BRAINLLM_OWNER_PASSWORD>",
        "BRAINLLM_OAUTH_SECRET": "<your BRAINLLM_OAUTH_SECRET>"
      }
    }
  }
}
Environment variables
  • TRILIUM_BASE_URLrequiredBase URL of the TriliumNext instance, e.g. http://localhost:8080
  • TRILIUM_ETAPI_TOKENsecretETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI.
  • TRILIUM_PASSWORDsecretAlternative to TRILIUM_ETAPI_TOKEN — BrainLLM mints a token on first start and caches it beside brainllm.json.
  • BRAINLLM_MODEcore (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools.
  • BRAINLLM_OWNER_PASSWORDsecretEnables 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_SECRETsecretOptional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
13.3.1
Registry
active
Published
11/3/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that io.github.miisodev/brainllm is listed here — it’s also the link we check for a free listing.

io.github.miisodev/brainllm — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-miisodev-brainllm?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="io.github.miisodev/brainllm — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![io.github.miisodev/brainllm — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-miisodev-brainllm?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.