brainllm
Self-hosted memory for LLMs in TriliumNext, structured by the server and editable by you.
Documentation & Preview
{ "mcpServers": { "mcp-brainllm-801327a09c47507c4e99": { "command": "npx", "args": [ "-y", "--package", "brainllm@13.3.5", "brainllm" ], "env": { "TRILIUM_BASE_URL": "${ENV_TRILIUM_BASE_URL}", "TRILIUM_ETAPI_TOKEN": "${ENV_TRILIUM_ETAPI_TOKEN}", "TRILIUM_PASSWORD": "${ENV_TRILIUM_PASSWORD}", "BRAINLLM_MODE": "${ENV_BRAINLLM_MODE}", "BRAINLLM_TZ": "${ENV_BRAINLLM_TZ}", "BRAINLLM_OWNER_PASSWORD": "${ENV_BRAINLLM_OWNER_PASSWORD}", "BRAINLLM_OAUTH_SECRET": "${ENV_BRAINLLM_OAUTH_SECRET}", "BRAINLLM_PUBLIC_URL": "${ENV_BRAINLLM_PUBLIC_URL}", "BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP": "${ENV_BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP}", "BRAINLLM_TRUST_PROXY": "${ENV_BRAINLLM_TRUST_PROXY}" } } }, "setup": { "fields": [ { "id": "ENV_TRILIUM_BASE_URL", "label": "TRILIUM_BASE_URL", "description": "Base URL of the TriliumNext instance, e.g. http://localhost:8080", "required": true, "secret": false, "default": "" }, { "id": "ENV_TRILIUM_ETAPI_TOKEN", "label": "TRILIUM_ETAPI_TOKEN", "description": "ETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI.", "required": false, "secret": true, "default": "" }, { "id": "ENV_TRILIUM_PASSWORD", "label": "TRILIUM_PASSWORD", "description": "Alternative to TRILIUM_ETAPI_TOKEN — BrainLLM mints a token on first start and caches it beside brainllm.json.", "required": false, "secret": true, "default": "" }, { "id": "ENV_BRAINLLM_MODE", "label": "BRAINLLM_MODE", "description": "core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools.", "required": false, "secret": false, "default": "core" }, { "id": "ENV_BRAINLLM_TZ", "label": "BRAINLLM_TZ", "description": "IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.", "required": false, "secret": false, "default": "" }, { "id": "ENV_BRAINLLM_OWNER_PASSWORD", "label": "BRAINLLM_OWNER_PASSWORD", "description": "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.", "required": false, "secret": true, "default": "" }, { "id": "ENV_BRAINLLM_OAUTH_SECRET", "label": "BRAINLLM_OAUTH_SECRET", "description": "Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.", "required": false, "secret": true, "default": "" }, { "id": "ENV_BRAINLLM_PUBLIC_URL", "label": "BRAINLLM_PUBLIC_URL", "description": "Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.", "required": false, "secret": false, "default": "" }, { "id": "ENV_BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP", "label": "BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP", "description": "Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.", "required": false, "secret": false, "default": "" }, { "id": "ENV_BRAINLLM_TRUST_PROXY", "label": "BRAINLLM_TRUST_PROXY", "description": "Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.miisodev/brainllm", "registryVersion": "13.3.5", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.miisodev%2Fbrainllm/versions/13.3.5", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "brainllm", "version": "13.3.5", "integrity": "sha512-r2v1wP5DQBHZvnv0AvA6tuTlfPgaTf/Z9eNAiigghukwH+8b5mndodRt7vs1C6q4OXkkbcY+0QlCavuv6ivbMQ==", "registryNameMatched": "io.github.miisodev/brainllm", "checkedAt": "2026-11-28T15:19:27.487Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }