Zero Brain MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zero Brain MCP Serversave a note about today's meeting"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Zero Brain MCP Server
MCP server (stdio transport) สำหรับเชื่อม agent ใดๆ เข้ากับ Zero Brain — สมองกลาง domain-agnostic ตามดีไซน์ v2.1 เก็บโน้ตเป็นไฟล์ Markdown + frontmatter บน local filesystem ล้วน ไม่มี network call
v2.1.0 (2026-07-29) — install ง่ายขึ้นมาก:
npm run initสร้างโครงสมองให้อัตโนมัติ — ไม่ต้องแตก seed zip เองอีก (node dist/index.js --initใช้ handler เดียวกับzero_init)บ้านหลัก default คือ
~/.zero/brain— ไม่ตั้ง env ก็ใช้ได้เลย (ตั้งZERO_BRAIN_ROOTเฉพาะตอนอยากย้ายที่)seed zip (
Central_Brain_seed) เหลือไว้สำหรับย้ายสมองเก่าเท่านั้น smoke test 64/64 (16 sections)v2.0.1 (2026-07-29) — เปลี่ยนชื่อโปรเจกต์ central-brain → zero-brain (คนละตัวกับ skill
zero-brain-memory):
repo ย้ายเป็น
miru-zero/zero-brain(URL เก่า redirect อัตโนมัติ)package/bin:
zero-brain-mcp-server/zero-brainenv หลักเปลี่ยนเป็น
ZERO_BRAIN_ROOT/ZERO_BRAIN_ACTOR— ค่าเก่าCENTRAL_BRAIN_*ยังใช้ได้ (fallback ไม่ break config เดิม)v2.0.0 (2026-07-29) — breaking change + token-saving:
Rename tools ทั้ง 13 ตัว
brain_*→zero_*— ชื่อใหม่:zero_initzero_capturezero_write_notezero_update_notezero_readzero_searchzero_linkzero_resolvezero_list_packszero_healthzero_homezero_nightlyzero_audit(MCP client config ไม่ต้องแก้ แต่ผู้ใช้/agent ต้องเรียกชื่อใหม่; audit log action strings ยังคงbrain_*เดิมเพื่อ continuity ของ log เก่า)Response กระชับลง (ลด token) — ทุก tool คืน compact JSON (ไม่ pretty-print);
zero_searchมีlimit(default 10) +offsetคืนtotal/count/limit/offset;zero_healthเขียนhealth.jsonเต็มเหมือนเดิมแต่ response คืนเฉพาะสรุป + counts + top-20 ของแต่ละหมวด;zero_homedefault ไม่คืนเนื้อ Home.md (คืน path + ขนาด ใส่include_home: trueถ้าต้องการ) และ Today.md จำกัด active 30 ใบ;zero_nightlyจำกัด fleeting queue 50 ใบแก้บั๊ก latent —
parseNoteFileregex เดิม parse frontmatter หลายบรรทัดไม่ได้เลย (.ไม่ match newline); เติม exports ที่ขาดในschema.ts(today/genId/sanitizeSlug/serializeNote+ type aliases) smoke test 60/60 (15 sections)v1.2.1 (2026-07-29) — durability patch จากรีวิวของป๊า:
Atomic write ทุกไฟล์โน้ต — saveNote/update_note/link/Today.md เขียนผ่าน tmp+rename (crash กลางเขียนไม่ทำโน้ตพัง)
Link dedup —
brain_linkเช็ค links.jsonl ก่อน append (from/to/rel ทั้งสองทิศ) ลิงก์ซ้ำไม่บวม คืนdeduped: trueOrphans ไม่นับ fleeting — inbox ค้างไม่ใช่ปัญหาโครงสร้าง แยกนับใน
orphans_fleetingยืนยัน:
brain_update_noteรับbodyอยู่แล้ว (schema + handler) — เพิ่มเทสกัน regression smoke test 52/52 (14 sections)v1.2 (2026-07-29) — เพิ่ม:
brain_nightly— วงจรกลางคืนใน tool เดียว: คืน fleeting queue ที่ยังไม่จัด + regenerate Today.md + health ครบ + snapshot ลง99_System/snapshots/(agent เรียกตอนเช้า/ก่อนนอน แล้ว classify ต่อด้วยbrain_write_note+brain_update_note)Pack provenance —
brain_list_packsโชว์ statusverified/modified/unreviewedเทียบ.kb/packs.lock.json(sha256 ที่ป๊าล็อกด้วยมือเท่านั้น) +brain_healthเตือนในpacks_unverifiedv1.1 (2026-07-29) — แก้ตามผลวิเคราะห์ใหม่:
T2 approval gate จริง —
zero_readบล็อกโน้ต T2 จนกว่าป๊าจะสร้าง.kb/approvals/<note-id>.jsonด้วยมือ (agent อนุมัติตัวเองไม่ได้ ไม่มี tool สำหรับสร้าง) รองรับexpires(ISO date) ทุกการบล็อก/อ่านถูก audit; โน้ต T1 อ่านได้แต่ถูก audit ทุกครั้ง; T2 ไม่โผล่ในzero_searchแม้include_private=trueจนกว่าจะอนุมัติ; T2 ไม่ขึ้น Today.mdhealth สแกน body wikilinks — เดิม
zero_healthตรวจเฉพาะ frontmatter links ทำให้ลิงก์[[...]]ตายในเนื้อโน้ตโดยเงียบ ตอนนี้รายงานdead_body_links(resolve ผ่าน id/alias/title)ตัวอย่างไฟล์อนุมัติ:
{"approved_by":"ป๊า","at":"2026-07-29","expires":null}หมายเหตุ pack:
node_modules/ถูก bundle มาใน zip เจตนาเพื่อ offline install (ข้ามnpm installได้เลย แค่npm run buildหรือใช้dist/ที่ build มาแล้ว)Dry-run ก่อน install (แนะนำ): แตก zip →
cd central-brain-mcp→node test/smoke.mjs(ผ่าน 64/64 = พร้อม) → ค่อยตั้งค่า MCP client จริง
ความต้องการ
Node.js >= 18
npm
Related MCP server: Bruin
การติดตั้ง
npm install
npm run build
npm run init # สร้างโครงสมองที่ ~/.zero/brain อัตโนมัติ (ตั้ง ZERO_BRAIN_ROOT ก่อนถ้าอยากใช้ที่อื่น)build จะ compile TypeScript ไปที่ dist/ — entry point คือ dist/index.js (มี shebang #!/usr/bin/env node)
การตั้งค่า MCP client
ไม่ต้องตั้ง env ก็ได้ — default สมองจะอยู่ที่ ~/.zero/brain (ตั้งแต่ v2.1.0) ตั้ง ZERO_BRAIN_ROOT เฉพาะตอนอยากย้ายที่เก็บ — ตั้งแต่ v2.0.1 รองรับ CENTRAL_BRAIN_ROOT เป็น fallback เพื่อไม่ break config เก่า
ตัวอย่าง config สำหรับ MCP client (เช่น Claude Desktop / client ที่รองรับ stdio):
{
"mcpServers": {
"zero-brain": {
"command": "node",
"args": ["/absolute/path/to/zero-brain/dist/index.js"]
}
}
}ถ้าอยากย้ายที่เก็บสมอง เพิ่ม "env": { "ZERO_BRAIN_ROOT": "/absolute/path/to/my-brain" } — เปลี่ยน /absolute/path/to/... เป็น path จริงของเครื่องคุณ
Zone convention — ทุกอย่างของเราอยู่ใต้ ~/.zero/
บ้านโซนเดียวกันทั้งระบบ: ของที่ชื่อ zero-X จะอยู่ที่ ~/.zero/X (ตัด zero- แล้วเปลี่ยน - เป็น /) เช่น
~/.zero/
├── brain/ # เนื้อสมองของ zero-brain (repo นี้) — default ตั้งแต่ v2.1.0
└── <อนาคต>/ # โปรเจกต์ zero-* ตัวอื่นจะมาอยู่ใต้โซนเดียวกันนี้โค้ด (repo) อยู่ที่ไหนก็ได้ แต่ ข้อมูลรันไทม์ทั้งหมดอยู่ใต้
~/.zero/ที่เดียว ไม่รกย้ายได้เสมอด้วย
ZERO_BRAIN_ROOTแต่ default คือโซนนี้env ที่ระบบอ่านมีแค่
ZERO_BRAIN_ROOT/ZERO_BRAIN_ACTOR(และ fallbackCENTRAL_BRAIN_*)
การทดสอบ
npm run build
node test/smoke.mjssmoke test ครอบคลุม 16 sections (64 checks): init / capture / evidence rule / write+manifest / search+privacy filter / link+dedup / resolve / health / update_note body / T2 approval gate / body wikilinks / pack provenance / nightly / atomic write / v2.0.0 token-saving / v2.1.0 install UX — ต้องผ่านทั้งหมด (exit 0)
Tools ทั้ง 13 ตัว
Tool | หน้าที่ |
| สร้างโครงสร้างโฟลเดอร์ + ไฟล์ kernel เปล่า + skeleton packs (self, people, security) + Home.md/Today.md |
| จดด่วนลง |
| เขียนโน้ตถาวรลง |
| แก้เฉพาะฟิลด์ที่ส่ง (ห้ามแก้ id/created) |
| อ่านโน้ต frontmatter + body (resolve alias ก่อน) — T2 ต้องได้รับอนุมัติก่อน |
| ค้นจาก title/aliases/tags/body — default ไม่คืน T1/T2 ( |
| สร้างลิงก์สองทิศ + append |
| คืน id จาก alias/title (exact ก่อน แล้ว fuzzy contains) |
| list domain packs ใน |
| คำนวณ orphans/dead_links/dead_body_links/packs_unverified เขียน |
| รีเฟรช Today.md จาก active notes (สูงสุด 30 ใบ) + fleeting 24h — default ไม่คืนเนื้อ Home.md ( |
| วงจรกลางคืน: fleeting queue (สูงสุด 50 ใบ) + regenerate Today + health + snapshot ลง |
| คืน audit log ล่าสุด N รายการ |
กฎเหล็ก (enforce ในโค้ด)
ไม่มี delete ใดๆ — "ซ่อน" ได้ด้วย
state: archiveเท่านั้นไฟล์ kernel
manifest.jsonl/links.jsonl/audit.jsonlเป็น append-only ห้ามเขียนทับโน้ต
type: atomicหรือentityต้องมี evidence อย่างน้อย 1 ข้อ ไม่เช่นนั้น error พร้อมแนะนำให้ใช้type: fleetingzero_searchไม่คืนโน้ต privacy T1/T2 โดย default — ถ้าinclude_private: trueจะถูก audit ทุกครั้งทุก mutation ถูกบันทึกลง
audit.jsonlทุกอย่างเป็น local filesystem — ห้าม network call
โครงสร้าง brain root
<root>/
├── .kb/
│ ├── manifest.jsonl # metadata โน้ต (append-only, ตัวล่าสุดชนะ)
│ ├── links.jsonl # ลิงก์ระหว่างโน้ต (append-only)
│ ├── aliases.json # map alias → id
│ ├── health.json # ผล zero_health ล่าสุด (เต็มทุกหมวด — response ของ tool เป็นสรุป)
│ ├── audit.jsonl # log ทุก mutation (append-only)
│ └── packs/ # domain packs (*.yaml)
├── 00_Fleeting/ # จดด่วน <id>.md
├── 10_Notes/ # โน้ตถาวร <id> - <slug>.md
├── 20_Atlas/ # Home.md, Today.md
├── 30_Sources/
├── 40_Templates/base/
└── 99_System/snapshots/โครงสร้างโค้ด
src/
├── index.ts # MCP server (stdio) + tools 13 ตัว (zero_*)
├── kernel.ts # append-only JSONL, manifest/links/aliases/health/audit
└── schema.ts # frontmatter parse/serialize (YAML แบบจำกัด), slug sanitize, validation
test/
└── smoke.mjs # smoke test 16 sections (64 checks) รันบน distSkills
โฟลเดอร์ skills/ เก็บ skill ของระบบ Zero_Brain ในรูปแบบ SKILL.md มาตรฐาน — ส่งไฟล์ให้ AI (Kimi Work / Claude Code) สั่ง "ติดตั้ง skill นี้" ได้เลย หรือวางด้วยมือตามคู่มือใน skills/README.md
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceLocal-first knowledge base MCP server. Lets AI agents (Claude Code, Cursor, etc.) read and write your personal knowledge base through 20 MCP tools. Zero cloud dependency — all files stay on your machine.Last updated1,758656MIT
- Alicense-qualityBmaintenanceMCP server for AI agents to read, write, and organize notes in a local-first, human-in-the-loop note-taking app.Last updated181MIT
- Alicense-qualityAmaintenanceA self-hosted Markdown knowledge base and Agent Harness with an MCP server that enables AI agents to read and write notes, providing persistent memory and a shared workspace for multi-agent collaboration.Last updatedMIT
- Alicense-qualityDmaintenanceMarkdown + SQLite knowledge store with bidirectional wikilinks, exposed as an MCP server for AI agents to maintain an interconnected knowledge base.Last updatedMIT
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/miru-zero/zero-brain'
If you have feedback or need assistance with the MCP directory API, please join our Discord server