
second-brain MCP
io.github.ddmanyes由 GitHub 账号 ddmanyes 发布v0.1.0更新于 Oct 24, 2026
Self-maintaining knowledge vault: figure-level search, auto-wikilinks, and memory compression.
发布方自己的服务:BrainDog
概览
本地 Markdown 知识库 MCP 服务器,让 AI 助手保存文章与 PDF、检索笔记和图表,并维护自动链接与压缩的记忆。
- 可以做什么
- 保存来源:抓取网址或 PDF,转为 Markdown、对图表做 OCR 并嵌入知识库,或直接新建和编辑笔记,自动归档与自动链接。检索:对笔记正文和图表内容做关键词与语义混合搜索,并按作者、DOI、PMID、PMCID 或年份检索论文。会话上下文:会话开始时重新载入目标、高排名笔记和自动规则,并向智能体提供归档规范。日常维护:只读审计文章元数据、链接、重复项和来源新鲜度,并压缩长期未读的旧笔记。索引维护:重建搜索索引并检查服务器健康状态。
- 适用场景
- 适合希望助手长期搭建并维护个人研究或阅读知识库的场景,把论文和网页文章收录后按内容或图表随时找回。适用于单用户本地环境,或跨机器共享的自建中央服务器。
- 运行要求
- 以 pip 安装的 Python 包在本地运行,通过 stdio 以模块方式启动。需要通过 SECOND_BRAIN_PATH 环境变量指定知识库目录,首次运行时自动创建。抓取网页需要 Playwright 与 Chromium;图表 OCR 使用 Claude Vision,README 提到自建部署需要 API 密钥。默认使用离线 DuckDB 存储,可选 Postgres 加 pgvector。
安装
在 SourceWeft 中
- 打开 控制台中的 second-brain MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
second-brain MCP Server
A self-maintaining personal knowledge base for AI agents — a plain-Markdown vault, powered by MCP.
[CI] [Python 3.11–3.13] [License: MIT]
📖 English · 繁體中文
A local knowledge base your AI agent can read, write, and maintain on its own. Save a paper or note with one command — second-brain converts it to Markdown, OCRs every figure, embeds it for semantic search, and auto-links it to related notes. Notes you stop reading compress themselves over time, so recall stays cheap as the vault grows.
Everything is plain Markdown — sync via Google Drive / iCloud / git, switch agents anytime, zero lock-in.
Highlights
- One command saves anything —
save_article(url_or_pdf)fetches, converts to Markdown, OCRs figures (Claude Vision), embeds, and auto-links. - Figure-level search —
search_figures("UMAP melanocyte")returns the exact panel across your whole library. - Self-organizing — new notes auto-link to related ones; frequently-read notes extract reusable rules.
- Memory that forgets like a brain — Ebbinghaus ranking; stale notes auto-compress (60–90% fewer tokens).
- Read-only housekeeping audit — inspect article metadata, links, exact duplicate candidates, inbox age, and source freshness without changing the vault.
- Session continuity —
get_context()reloads goals + top notes + rules at the start of every session. - Pluggable backend — DuckDB (default, offline) or Postgres + pgvector (central, multi-machine). Self-hosted embeddings optional; BM25 fallback when offline.
Quick Start (Claude Code)
The vault directory and templates are created on first run. Then tell your agent init_vault to verify.
⚠️ PyPI currently lags the source tree. For the newest build — plus Claude Desktop, Windows, and multi-machine / central-server setups — see NEW_MACHINE_SETUP.md.
Core Tools
Full tool reference (46 tools) lives in AGENTS.md.
Use search_notes when you need content, health_check when the server or index may be
unhealthy, and audit_article_records when you need a housekeeping report. Audit results
never merge, archive, or delete notes automatically.
How It Works
The vault is the source of truth; the index is rebuildable anytime (sync_index). Filing conventions live in one operating manual — AGENTS.md — served to any agent via get_agent_instructions(), so every agent files things the same way without being re-taught.
Vault Structure
Legacy author metadata
search_articles reads structured frontmatter, so older article notes without
authors are not guessed from body text or references. A bounded two-phase CLI can
prepare those notes safely: first create and review a manifest, then apply it separately.
Apply on the central writer host only. Each entry requires an exact DOI/PMID/PMCID or title match and unchanged content/body hashes; successful writes are reindexed.
Documentation
- AGENTS.md — filing SOP, naming conventions, full tool reference (single source of truth)
- NEW_MACHINE_SETUP.md — source install, self-hosting, multi-machine central server, API keys
- CONTEXT.md — domain model / ubiquitous language
Design Notes
Inspired by biological memory: the Ebbinghaus forgetting curve (access_count / ln(age_days)) for ranking, and sleep-dependent consolidation (weekly LLM compression of low-access notes). Built with MarkItDown · DuckDB · pgvector · FastMCP · Playwright · Claude API.
License
MIT © 2026 Chan Chi Ru. See LICENSE.
来源:README.md,提交 0e08505
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Brain 集成

BrainDog
dog.brain官方发布者
BrainDog 是一个托管记录库,集中保存项目、决策与资金,接入的 AI 代理在开工前读取、结束后写入。

Codebase Brain
由 GitHub 账号 Nomannazir 发布
为本地或公开 git 代码库建立索引,让助手能检索代码、追溯 git 历史、分析改动影响并发现过期文档,结果均带路径与行号引用。

Personal Brain
由 GitHub 账号 zhang-liz 发布
为 AI 助手提供职业人脉记忆,数据以图的形式存放在 FalkorDB 中,可查询联系人、按话题找人并记录你见过的人。

Second Brain
由 GitHub 账号 ara-5 发布
面向AI智能体的共享Graph-RAG记忆:markdown vault、wikilink召回、任务、消息传递。AI 翻译

Make0 Brain
由 GitHub 账号 make0-official 发布
本地离线运行的记忆服务器,让 Claude Code、Cursor、Codex 等 MCP 代理共享一份带版本记录的持久事实库。