ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Brainllm

โดย miisodevรุ่น 13.3.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.miisodev/brainllm

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

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

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): 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

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "brainllm": {
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "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": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add brainllm --env TRILIUM_BASE_URL='ใส่ค่าของคุณ' --env TRILIUM_ETAPI_TOKEN='ใส่ค่าของคุณ' --env TRILIUM_PASSWORD='ใส่ค่าของคุณ' --env BRAINLLM_MODE='ใส่ค่าของคุณ' --env BRAINLLM_TZ='ใส่ค่าของคุณ' --env BRAINLLM_OWNER_PASSWORD='ใส่ค่าของคุณ' --env BRAINLLM_OAUTH_SECRET='ใส่ค่าของคุณ' --env BRAINLLM_PUBLIC_URL='ใส่ค่าของคุณ' --env BRAINLLM_ALLOW_UNAUTHENTICATED_HTTP='ใส่ค่าของคุณ' --env BRAINLLM_TRUST_PROXY='ใส่ค่าของคุณ' -- npx -y brainllm

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "brainllm": {
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "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": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "brainllm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "brainllm"
      ],
      "env": {
        "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": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • 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.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub miisodev ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7233 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 93% ของอีก 7233 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7233 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Brainllm ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: TRILIUM_BASE_URL, TRILIUM_ETAPI_TOKEN, TRILIUM_PASSWORD, BRAINLLM_OWNER_PASSWORD, BRAINLLM_OAUTH_SECRET

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (13.3.1) เข้า registry เมื่อวานซืน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Codebase Memory

โดย DeusData

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

รันบนเครื่อง★ 48,148MITอัปเดต 20 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

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

รันบนคลาวด์★ 5,213MITอัปเดต 44 วันที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx