AI & media / brainllm

brainllm

io.github.miisodev/brainllm · v13.3.2

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

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #104 of 527 AI & media servers on Socketlist by score and a last code push 19d ago.

Install

npx -y brainllm

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect brainllm to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env TRILIUM_BASE_URL=<trilium_base_url> --env TRILIUM_ETAPI_TOKEN=<trilium_etapi_token> --env TRILIUM_PASSWORD=<trilium_password> --env BRAINLLM_OWNER_PASSWORD=<brainllm_owner_password> --env BRAINLLM_OAUTH_SECRET=<brainllm_oauth_secret> --transport stdio brainllm -- npx -y brainllm

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "brainllm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "TRILIUM_BASE_URL": "${TRILIUM_BASE_URL}",
        "TRILIUM_ETAPI_TOKEN": "${TRILIUM_ETAPI_TOKEN}",
        "TRILIUM_PASSWORD": "${TRILIUM_PASSWORD}",
        "BRAINLLM_OWNER_PASSWORD": "${BRAINLLM_OWNER_PASSWORD}",
        "BRAINLLM_OAUTH_SECRET": "${BRAINLLM_OAUTH_SECRET}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "brainllm": {
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "TRILIUM_BASE_URL": "${env:TRILIUM_BASE_URL}",
        "TRILIUM_ETAPI_TOKEN": "${env:TRILIUM_ETAPI_TOKEN}",
        "TRILIUM_PASSWORD": "${env:TRILIUM_PASSWORD}",
        "BRAINLLM_OWNER_PASSWORD": "${env:BRAINLLM_OWNER_PASSWORD}",
        "BRAINLLM_OAUTH_SECRET": "${env:BRAINLLM_OAUTH_SECRET}"
      }
    }
  }
}

Configuration the publisher declares

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

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "brainllm"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars0
npm weekly downloads482
Last push19d ago
LicenceMIT
Open issues0
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-11-09

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers compare all →

mnemo

Score 79

Self-correcting agent memory + MCP server: recall, supersede/revert/review corrections, erasure.

★ 8MITpushed 22d ago
AI & media

AICortex

Score 74

Self-hosted brain for any LLM: memory, skills, encrypted vault, devices and scheduled jobs.

★ 11Apache-2.0pushed 18d ago
AI & media

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free