big-brain

big-brain

Enables AI assistants to read and write to a personal knowledge vault of markdown notes, projects, and tasks, with tooling for search, capture, daily logs, and project management across different AI tools.

Category
访问服务器

README

big-brain 🧠

A second brain for you and your AI assistants. Plain-markdown notes, projects, and tasks — Obsidian-compatible, owned by you, readable and writable by any LLM through the Model Context Protocol.

Your AI tools each keep their own memory of you, siloed and invisible. big-brain inverts that: one knowledge vault you own, that every assistant reads and writes. Claude Code, Claude Desktop, ChatGPT, Cursor — they all see the same projects, the same tasks, the same notes. Switch models freely; your context comes with you.

  • Plain markdown files. No database, no lock-in. Open the vault in Obsidian, grep it, put it in git.
  • MCP server with 21 tools: search, capture, daily logs, project and task management, link graph, vault health.
  • CLI for humans: big-brain status, big-brain capture, big-brain tasks.
  • Claude Code skills — /brain, /capture, /weekly — installed with one command.
  • Projects as the unit of work — each is one file with a goal, checkbox tasks, and a running log.
  • Deterministic retrieval: full-text search (fuzzy, title-boosted), [[wikilink]] graph with backlinks, tags, frontmatter queries. No embeddings, no API keys, works offline.
  • Optional git auto-commit + push — flip a config flag and every write, from any tool, is committed and pushed automatically, so saves never sit uncommitted and your other machines stay in sync. Best-effort: a git failure never blocks a save.

Requires Node 20+.

Install

big-brain isn't on npm yet, so install from source (one-time):

git clone https://github.com/jzhao234/big-brain.git
cd big-brain
npm install
npm run build
npm link          # puts `big-brain` and `big-brain-mcp` on your PATH

npm link skips -g install quirks and lets you git pull && npm run build to update later. (Once published, this becomes npm i -g big-brain.)

Quickstart

big-brain init ~/brain --name "My Brain"   # scaffold a vault
cd ~/brain
big-brain status                           # look around
big-brain install-skills                   # add the /brain, /capture, /weekly skills

Then connect an AI tool (below) and, optionally, seed the vault from your existing AI history.

Connect your AI tools

The MCP server is the same everywhere: command big-brain-mcp, vault chosen by --vault <dir> or the BIG_BRAIN_VAULT env var.

Claude Code

claude mcp add --scope user big-brain -- big-brain-mcp --vault ~/brain
claude mcp list        # expect: big-brain ... ✔ Connected

Claude Desktop / Cursor / other MCP clients — add to the MCP config (e.g. claude_desktop_config.json). Use an absolute command path: GUI apps are launched without your shell's PATH, so a bare big-brain-mcp may not resolve (run which big-brain-mcp to get it).

{
  "mcpServers": {
    "big-brain": {
      "command": "/absolute/path/to/big-brain-mcp",
      "args": ["--vault", "/absolute/path/to/brain"]
    }
  }
}

ChatGPT and other MCP clients — any client that speaks MCP over stdio works the same way. For clients without MCP, the CLI's --json output makes the vault scriptable.

Browser (claude.ai / ChatGPT) — cloud AIs can't launch a local stdio server. The zero-infra option is to connect them to your vault's GitHub repo and let them read/write the markdown directly (you lose the computed overview/search/task tools — it's raw file access). See docs/browser-github-connector.md and paste prompts/browser-github-instructions.md.

Then teach the assistant how to use the vault: Claude Code reads the vault's CLAUDE.md automatically; for other tools, paste prompts/agent-instructions.md into their custom instructions.

Using it: load and save

The whole point is that you never re-feed context. The assistant loads a small, relevant slice on demand and saves small pieces as you work — you just talk to it.

Load — orient at the start, pull details as needed:

You want to… In Claude Code CLI
"What am I working on?" /brain big-brain status
Find notes about X "search my brain for X" big-brain search X
Read one note "read the Auth project" big-brain show "Auth"
See tasks / projects "what's due?" big-brain tasks, big-brain projects

Save — as decisions, progress, and ideas happen (append-first; never destructive):

You want to… In Claude Code CLI
Stash a stray thought /capture <text> big-brain capture "…"
Log a decision / progress "log that I shipped X" big-brain daily --log "…"
Add a task "add a task to project Y" big-brain task add "…" --note Y
Finish a task "mark that done" big-brain task done <id>
Start a project "new project: …" big-brain project new "…"

Review — /weekly runs a guided pass: triage the inbox, prune projects, reschedule overdue tasks, fix broken links.

Skills (Claude Code)

Three Claude Code skills wrap the tools into slash-commands:

  • /brain — load the overview and switch into brain-aware mode for the session
  • /capture — zero-friction capture to the inbox
  • /weekly — a guided weekly review
big-brain install-skills          # add them to ~/.claude/skills (skips existing)
big-brain install-skills --force  # overwrite existing versions

They're path-agnostic — they call the big-brain CLI / MCP tools and resolve the vault from BIG_BRAIN_VAULT (or --vault), so the same skill works on every machine. Restart Claude Code to pick them up.

Use it on multiple machines

The vault is a git repo, so this is just git: clone it on each machine, and each machine runs its own big-brain-mcp against its own clone. Git keeps them in sync.

  • Write side — automatic. Set git.autoCommit (and git.autoPush) in brain.config.json and every write — from any tool, any machine — is committed and pushed. See docs/vault-spec.md.

  • Read side — pull before you start. Add a SessionStart hook so a session always opens on the latest:

    // ~/.claude/settings.json
    "hooks": { "SessionStart": [ { "hooks": [ { "type": "command",
      "command": "git -C \"$HOME/brain\" pull --ff-only --quiet 2>/dev/null || true" } ] } ] }
    

    --ff-only means a pull never clobbers local work. (Or just git -C ~/brain pull by hand.)

On a fresh machine: install big-brain (above), git clone your vault, big-brain install-skills, register the MCP server. Four commands and you're identical to your other machines.

Seed it from your existing AI history

Your LLMs already know a lot about you. prompts/seed-interview.md is a structured interview prompt — run it in ChatGPT, Claude, Gemini, wherever you have history; drop each output into inbox/; then ask a vault-connected assistant to run the process-inbox prompt to merge it all into real notes, projects, and tasks.

The vault

brain/
├── BRAIN.md          # index & ground rules
├── CLAUDE.md         # agent instructions (picked up by Claude Code)
├── brain.config.json
├── inbox/            # capture now, organize later
├── daily/            # one note per day: focus, log, tasks
├── projects/         # one file per project: goal, tasks, log
├── areas/            # ongoing responsibilities
├── notes/            # evergreen knowledge, densely [[linked]]
├── people/           # one note per person
├── reference/        # external facts, docs, how-tos
├── archive/          # nothing is deleted, only archived
└── templates/        # daily/project/note/person templates

Notes are markdown + YAML frontmatter (type, tags, status, due…). Tasks are - [ ] checkboxes with Obsidian Tasks-style metadata: 📅 2026-03-01 due, ⏫ priority, ✅ done-date. Full details in docs/vault-spec.md.

MCP tools

Tool What it does
brain_overview Orient: active projects, due/overdue tasks, inbox, recent notes
search_notes Full-text search with type/tag/folder/status filters
read_note / list_notes Read by path, title, or alias; browse by folder/type/tag
create_note / append_note / replace_note_body Write notes (append is the safe default)
update_frontmatter / archive_note Metadata changes; non-destructive delete
capture Quick capture to inbox
daily_note / daily_log Daily notes and timestamped work journal
list_projects / create_project / set_project_status Project lifecycle
list_tasks / add_task / complete_task Checkbox tasks across the vault
note_links Outgoing links + backlinks for a note
list_tags / vault_health Tag census; broken links, stale projects, overdue tasks

Plus three MCP prompts: orient, weekly-review, process-inbox.

CLI

big-brain init [dir]            scaffold a vault        big-brain tasks [--project X]
big-brain status                overview                big-brain task add|done ...
big-brain search <query>        full-text search        big-brain projects [--status active]
big-brain show <note>           print a note            big-brain project new|status ...
big-brain new <title>           create a note           big-brain links <note>
big-brain capture <text>        quick capture           big-brain tags
big-brain daily [--log "..."]   daily note / journal    big-brain doctor
big-brain install-skills        add Claude Code skills  big-brain mcp   run the MCP server

Every list command takes --json for scripting.

Design principles

  1. Files over databases. Markdown you can read in 30 years beats any app.
  2. The human owns the vault; agents are guests. Agents append and capture freely, but rewriting and archiving are deliberate acts.
  3. Deterministic beats clever. Search + links + tags retrieves reliably and works offline; you can add embeddings on top, but you shouldn't need them to find your own notes.
  4. Model-agnostic by construction. Everything goes through MCP or the filesystem — nothing assumes a particular AI vendor.

Development

npm install
npm run typecheck && npm run lint && npm test
npm run build

MIT © Junhao Zhao

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选