Brainllm MCP Server

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

Local serverstdio

What is the Brainllm MCP Server?

Brainllm is an MCP integration. Self-hosted memory for LLMs in TriliumNext, structured by the server and editable by you.

Packages and local setup

The published npm package is brainllm, version 12.8.0. Its declared MCP transport is stdio.

The package declares TRILIUM_BASE_URL (required): Base URL of the TriliumNext instance, e.g. http://localhost:8080; 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..

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository · Project website. This profile uses version 12.8.0 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related developer tools MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
TRILIUM_BASE_URLBase URL of the TriliumNext instance, e.g. http://localhost:8080Yes
TRILIUM_ETAPI_TOKENETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI.Optional
TRILIUM_PASSWORDAlternative to TRILIUM_ETAPI_TOKEN — BrainLLM mints a token on first start and caches it beside brainllm.json.Optional
BRAINLLM_MODEcore (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools.Optional
BRAINLLM_TZIANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.Optional
BRAINLLM_OWNER_PASSWORDEnables 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.Optional
BRAINLLM_OAUTH_SECRETOptional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.Optional
BRAINLLM_PUBLIC_URLOverride for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.Optional
BRAINLLM_ALLOW_UNAUTHENTICATED_HTTPExplicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.Optional
BRAINLLM_TRUST_PROXYTrust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.Optional