second-brain-mcp
Allows fetching full papers from arXiv: auto-upgrades abstract URLs to full HTML and converts them to Markdown, including all figures.
Provides synchronization of the pure Markdown vault with Google Drive for storage and backup.
Provides synchronization of the pure Markdown vault with iCloud for storage and backup.
Enables fetching and converting PubMed papers into the knowledge database as Markdown notes.
second-brain MCP Server
A self-maintaining personal knowledge base for AI agents — a plain-Markdown vault, powered by MCP.
📖 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).
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.
Related MCP server: Hoard
Quick Start (Claude Code)
pip install mcp-second-brain
playwright install chromium
claude mcp add --scope user second-brain \
--env SECOND_BRAIN_PATH=~/second-brain \
-- python -m mcp_second_brainThe 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
Tool | What it does |
| Session start — goals + top-ranked notes + auto-rules |
| URL / PDF → Markdown + figures + embeddings |
| Hybrid BM25 + semantic search (note text / figure content) |
| Create & edit notes (auto-filed, auto-indexed, auto-linked) |
| Compress old, low-activity notes |
| Serve the full filing SOP (AGENTS.md) to remote agents |
Full tool reference (30+ tools) lives in AGENTS.md.
How It Works
Any source (paper · PDF · web · note)
│ save_article · new_note
▼
Markdown vault ──► index (DuckDB, or Postgres + pgvector)
00-inbox/ • BM25 + semantic search
10-projects/ • figure OCR + vision descriptions
20-areas/ • auto-wikilinks between related notes
30-resources/ • Ebbinghaus ranking → weekly auto-compression
decisions/ memory/
│
▼
Your AI agent queries it — search_notes · search_figures · get_contextThe 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
vault/
├── 00-inbox/ Unprocessed captures
├── 10-projects/ Active projects
├── 20-areas/ Ongoing research / coding domains
├── 30-resources/ Papers & articles (save_article writes here)
├── 40-archive/ Auto-compressed originals
├── decisions/ Architecture Decision Records
├── memory/ goals.md · rules.md (injected every session)
└── templates/ Note templatesDocumentation
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.
This server cannot be installed
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
- AlicenseAqualityAmaintenanceMCP Server for local knowledge management. Semantic + keywords + tagsLast updated818MIT
- Alicense-qualityDmaintenanceLocal MCP server for indexing personal knowledge into SQLite with hybrid search, chunk-level citations, memory tools, and agent orchestration.Last updated4MIT
- Alicense-qualityCmaintenanceA personal knowledge base MCP server with semantic search, storing thoughts in PostgreSQL with pgvector embeddings and providing 8 tools for capture, search, browse, stats, relations, traces, and hydration.Last updatedApache 2.0
- Alicense-qualityCmaintenanceMCP server for a personal knowledge base that captures and structures idea fragments, enabling MCP-capable agents to search, retrieve, and add notes with semantic links and clustering.Last updated3MIT
Related MCP Connectors
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Appeared in Searches
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/ddmanyes/second-brain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server