プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Brainllm

作者:miisodevバージョン 13.3.1i★ –iパソコンで動く
レジストリ名io.github.miisodev/brainllm

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶
  • 入力が必要なもの:TRILIUM_BASE_URL, TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, BRAINLLM_OAUTH_SECRET

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: TRILIUM_BASE_URL, TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_MODE, BRAINLLM_TZ, BRAINLLM_OWNER_PASSWORD, BRAINLLM_OAUTH_SECRET, BRAINLLM_PUBLIC_URL, BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP, BRAINLLM_TRUST_PROXY

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "brainllm": {
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "TRILIUM_BASE_URL": "your-value",
        "TRILIUM_ETAPI_TOKEN": "your-value",
        "TRILIUM_PASSWORD": "your-value",
        "BRAINLLM_MODE": "your-value",
        "BRAINLLM_TZ": "your-value",
        "BRAINLLM_OWNER_PASSWORD": "your-value",
        "BRAINLLM_OAUTH_SECRET": "your-value",
        "BRAINLLM_PUBLIC_URL": "your-value",
        "BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP": "your-value",
        "BRAINLLM_TRUST_PROXY": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add brainllm --env TRILIUM_BASE_URL=your-value --env TRILIUM_ETAPI_TOKEN=your-value --env TRILIUM_PASSWORD=your-value --env BRAINLLM_MODE=your-value --env BRAINLLM_TZ=your-value --env BRAINLLM_OWNER_PASSWORD=your-value --env BRAINLLM_OAUTH_SECRET=your-value --env BRAINLLM_PUBLIC_URL=your-value --env BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP=your-value --env BRAINLLM_TRUST_PROXY=your-value -- npx -y brainllm

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "brainllm": {
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "TRILIUM_BASE_URL": "your-value",
        "TRILIUM_ETAPI_TOKEN": "your-value",
        "TRILIUM_PASSWORD": "your-value",
        "BRAINLLM_MODE": "your-value",
        "BRAINLLM_TZ": "your-value",
        "BRAINLLM_OWNER_PASSWORD": "your-value",
        "BRAINLLM_OAUTH_SECRET": "your-value",
        "BRAINLLM_PUBLIC_URL": "your-value",
        "BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP": "your-value",
        "BRAINLLM_TRUST_PROXY": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "brainllm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "TRILIUM_BASE_URL": "your-value",
        "TRILIUM_ETAPI_TOKEN": "your-value",
        "TRILIUM_PASSWORD": "your-value",
        "BRAINLLM_MODE": "your-value",
        "BRAINLLM_TZ": "your-value",
        "BRAINLLM_OWNER_PASSWORD": "your-value",
        "BRAINLLM_OAUTH_SECRET": "your-value",
        "BRAINLLM_PUBLIC_URL": "your-value",
        "BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP": "your-value",
        "BRAINLLM_TRUST_PROXY": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • TRILIUM_BASE_URL 必須 env
    Base URL of the TriliumNext instance, e.g. http://localhost:8080
  • TRILIUM_ETAPI_TOKEN 秘密 env
    ETAPI token. Required unless TRILIUM_PASSWORD is set. Create one in Trilium under Options → ETAPI.
  • TRILIUM_PASSWORD 秘密 env
    Alternative to TRILIUM_ETAPI_TOKEN — BrainLLM mints a token on first start and caches it beside brainllm.json.
  • BRAINLLM_MODE env
    core (default) exposes the 45 brain-aware tools; full additionally exposes the 33 raw ETAPI tools.
  • BRAINLLM_TZ env
    IANA timezone used to stamp dated notes, e.g. Africa/Johannesburg. Defaults to the host timezone.
  • BRAINLLM_OWNER_PASSWORD 秘密 env
    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 秘密 env
    Optional 32+ character deployment secret for signing OAuth tokens; rotate it to invalidate old tokens.
  • BRAINLLM_PUBLIC_URL env
    Override for the public origin when a proxy rewrites Host. Must exactly match the URL entered in the client.
  • BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP env
    Explicit trusted-network-only escape hatch for HTTP mode. Never enable on a public interface.
  • BRAINLLM_TRUST_PROXY env
    Trust forwarded host/protocol headers for OAuth discovery only when a trusted reverse proxy sets them.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント miisodev で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの7233件のうち0%よりスターが多い
  • このカテゴリのほかの7233件のうち93%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの7233件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Brainllmは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:TRILIUM_BASE_URL, TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, BRAINLLM_OAUTH_SECRET

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(13.3.1)がレジストリに届いたのは一昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT3 日前更新
インストール

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

パソコンで動く★ 48,148MIT20 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT44 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

BrainLLM

Give Claude a memory that survives the session.

Self-hosted memory for LLMs in TriliumNext Notes, structured by the server and editable by you, served over the Model Context Protocol.

Site · Connect to Claude · How it works · Docs · Privacy


What is BrainLLM?

LLMs forget. Every session starts from zero: who you are, what you're working on, what was decided yesterday, what went wrong last week. BrainLLM fixes that.

BrainLLM is an MCP server that gives an LLM a real, persistent memory — stored in TriliumNext Notes, a mature open-source knowledge base you self-host and own. The model opens each session by loading who you are and what's live, writes durable facts the moment they surface, wires knowledge together as a typed graph, and closes each session with a log, a diary entry, and a database backup. The next session picks up exactly where the last one ended.

It's a single Bun/TypeScript service with two dependencies (the MCP SDK and Zod), speaking to Trilium exclusively through its public ETAPI. Your memory lives in *your* Trilium instance — inspectable, editable, and portable, never locked inside a vendor's black box.

Who it's for

Anyone running an LLM as a long-running collaborator, not a one-shot Q&A tool — across coding, research, personal knowledge management, or day-to-day operational tracking — who wants that collaborator to actually remember: who you are, what's in flight, what was decided, without you re-explaining it every session. If you're comfortable self-hosting one small service and a Trilium instance, BrainLLM turns "the model forgot everything again" into a solved problem. It works with any MCP-capable client (Claude Desktop, Claude Code, or anything else speaking MCP), not just one product.

From experiment to open source

BrainLLM began in February 2026 as a personal experiment: could an LLM operate a real, self-hosted memory reliably enough to be trusted as its own memory — orienting, writing, connecting, and closing sessions without a human doing the filing? Through sustained daily, production use the answer held. The design has settled, the failure modes have been found and fixed, and the project has graduated from experiment to something efficient and stable enough to share — so it's now open source. It still runs the author's own sessions every day; what you're reading is the same code, not a demo. It also still carries the shape of one person's daily use — see Adapting to your environment for exactly what that means and what to change.

The core principle

The model supplies content. The server owns form.

Placement, naming, labels, deduplication, relation bookkeeping, lifecycle aging, archival, date stamping, HTML sanitization, backups — and structure itself — are all deterministic server policy, never delegated to the LLM. The model never chooses a parent note, never sets a label, never checks for duplicates, never stamps a date. That division is what makes the memory *reliable*: every guarantee is enforced at the tool layer, not requested via prompt.

Design highlights
  • Structure is enforced, not requested — every content kind has a canonical structure, served by template() and held on write: a new thread requires its goal, thread/diary/session entries open with an identification line (which LLM, which environment, which session type), threads carry exactly one Resolution (owned by resolve()), duplicate section headings are detected, and Last updated stamps are server-maintained.
  • Domains born complete — creating a knowledge domain creates its book *and* its canonical Sources note (marker legend, stamp, grouped source list, revision table), so every claim has a sourcing home from the first write.
  • A visible graph — graph() renders the whole relation graph (or any note's neighborhood) as a Mermaid flowchart, maintained as a native Trilium note.
  • Byte-preserving artifacts — text is UTF-8, while binary content uses strict standard base64 in the tool contract and raw bytes on the wire; binary reads return an explicit MIME/base64 envelope instead of replacement characters.
  • One-call day orientation — day() serves the previous session, its change log and everything touched since in a single call.
  • Two thread shapes — a thread is a dated journal (one child per active day) or a titled collection (one maintained note per item, e.g. an ideas list), chosen once with shape= at creation.
  • Timeless notes, dated records — knowledge, information and thread books hold no state or history (only a domain's *Current State* does); maintain(deep=true) flags dated prose that creeps in. Every note except a log carries an icon, set by kind and backfilled by the sweep.
  • Resilient plumbing — every backend call is timeout-bounded with retry on idempotent reads; routine core writes are idempotent or duplicate-guarded, while full-mode raw overwrites remain explicit; content surgery survives the editor's own HTML rewriting; renaming a domain cascades to everything inside it; the maintenance sweep heals drift it finds.
  • Multi-agent by default — all write-classified tools serialize behind a process-wide FIFO lock, so two agents (an interactive session and an automated run, say) writing through one hosted instance queue in arrival order instead of racing; reads stay fully parallel. Deletion catch-up in the daily log keeps a note deleted after its day's close from vanishing without a trace — and its window is configurable (deletionCatchupDays in the lifecycle policy), defaulting to Trilium's 7-day retention.
  • Ask in prose, split on a seam — consistency(subject="…") finds every note asserting about a fact however it is phrased, no regex guessing; consistency(pattern, staleAfterDays=N) surfaces figures held in exactly one untouched note, the ones that rot silently because nothing disagrees with them, and skips sessions and diaries, which are history rather than claims; diff(since="today") reviews every note a session changed in one call; revise(find="Phase 2", within="tr") edits, inserts or removes a table row named by a few words inside it; read(ids=[…]) batches a multi-note orientation into one round trip — each note's size up front, or a single section= across them; and split(noteId, sections=[…], into="…") is the write half of the oversized-note problem — it lifts whole sections into a new note and leaves a pointer back. Information notes can carry a #mandate marker so a scoped session finds the one note it must obey without reading every note's prose.
  • A distinct connector identity — hosted instances advertise BrainLLM and their own origin, with same-origin PNG/SVG icons, explicit page favicon links and a real multi-size ICO. The canonical mark is shared across the connector, consent pages and public assets.
  • Preview changes and measure coverage — revise(noteId, edits=[…], dryRun=true) shows sequential match counts and sanitized before/after content with no revision, labels or gate writes. Revision failures stop content overwrites. consistency() reports read failures and scan coverage; case-insensitive comparisons retain spelling variants without false conflicts. Incomplete scans cannot establish absence or unanimity.
  • Registers close in one call — revise(find, within="tr", mode="remove", closure={thread, body}) removes a register row and records its closure in that thread's entry for the day, closure={note, table?, row?} moves a row into an explicitly selected register table; destination cells must match the table's shape. Destination-first ordering preserves recoverability, and moves=[{find, row?}] batches closures with preflight and per-row progress, and append={table, row} adds a row with no anchor to find; within= also accepts a row as a reader sees it ("Phase 2 | Claude | Open"), and a table row whose cells disagree with its header is flagged at write time and by maintain(deep).
  • Bulk edits and lighter receipts — revise(find, within="tr", mode="remove", all=true) removes every row an anchor sits in, in one write and previewable with dryRun=true; remember(kind="sources", revision=[{source, from}]) renames a Sources key when a source moves instead of adding a second row; a dated-thread append returns previousRun, its author's previous block and run number; read(ids, sizes=true) plans a bulk read from sizes and section sizes alone; and diff(since="today", summaryOnly=true) lists what changed without the lines.
  • Records you can prove — sessions, diary entries and dated thread entries are append-only, and now verifiably so: every close() seals its day's records into a digest chained to the previous day's, and maintain(deep) reports any sealed record that was rewritten afterwards. Appends stay legal; edits to history do not go unnoticed.

How it works

At bootstrap, BrainLLM builds a five-area tree in Trilium. Every note the tools create is typed, labeled, dated, and placed by server policy:

BrainLLM  (#brainLlmRoot)

├── 👤 Master Biography · Goals · Preferences (the user — maintained singletons) ├── 🤖 LLM Responsibilities · Protocols · Self-correction · Diary/ (the assistant's self-model + daily diary) ├── 🗂️ Memory Sessions/ · Threads/ (daily session logs + multi-session work) ├── 📚 Knowledge Master/ · Domains/ /{ Sources, info } (learned facts beyond/contra training) └── 💡 Insights Logs/ · Graph · Claims (the brain's record of itself)

Note classKindsBehavior
Singletonsbiography, goals, preferences, responsibilities, protocols, selfcorrection (+ each domain's Sources note)Exactly one maintained note; edited in place; hold *current-state truth*
Authored recordsdiary, session, dated threadEntryOne per calendar day and parent; every write lands as a timestamped addendum block — chronology is the point
Generated logslogOne per calendar day; regenerated in place from the change feed
Collectionsthread, user, information, domainTitled notes, deduplicated by normalized title within their scope

A session follows an enforced protocol: start() orients (who you are, live threads, what changed since last time) → the model works, writing durable facts *as they surface* → session() → addendum() → maintain() → remarks() → diary() → `close

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く