Описание
A Markdown file brain MCP
README
A personal knowledge brain for Claude Code — an Obsidian-style markdown vault exposed as an MCP server. Gives Claude persistent, long-term memory across sessions for all your projects.
How it works
Notes live as plain markdown files in a vault directory on your machine. The MCP server exposes 8 tools that let Claude read, write, search, and traverse the note graph. Tool descriptions are written as behavioral nudges so Claude builds up and consults the brain automatically — without you having to ask.
~/brain/
MANIFEST.md ← index of all projects
projects/
my-project/
index.md ← entry point (required)
decisions.md
context.md
concepts/ ← reusable ideas, patterns, tech
people/ ← collaborators, contacts
scratch/ ← quick capture
Notes use standard markdown with YAML frontmatter:
---
type: project # project | concept | person | decision | scratch
project: my-project
tags: [backend, auth]
created: 2026-03-21
updated: 2026-03-21
---
Relationships between notes are expressed as wikilinks: [[other-note]]. The server tracks backlinks automatically.
Requirements
- Python 3.11+
- uv
- ripgrep (
rgon PATH) - Claude Code
Installation
1. Clone the repo
git clone https://github.com/dvnc0/brain-mcp
cd brain-mcp
2. Install dependencies
uv sync
3. Register with Claude Code
claude mcp add brain -s user -- uv run --project /path/to/brain-mcp --directory /path/to/brain-mcp python server.py
Then set the vault location (defaults to ~/brain if not set):
# Edit ~/.claude.json and add "env": {"BRAIN_DIR": "/path/to/your/vault"}
# under the brain mcpServers entry, or set it as a shell env var.
4. Verify
Restart Claude Code and run /mcp — you should see the brain server connected.
The vault directory, folder structure, and MANIFEST.md are created automatically on first startup. Just point BRAIN_DIR at any empty directory (or let it default to ~/brain).
Tools
| Tool | When Claude uses it |
|---|---|
brain_recent_tool |
Start of every session — orients Claude to what's in flight |
brain_context_tool(project) |
Before asking you to re-explain a project |
brain_read_tool(path) |
Read a note + its wikilink neighbors |
brain_search_tool(query) |
Full-text search across all notes |
brain_related_tool(path) |
Find all notes that link to a given note |
brain_write_tool(path, content, metadata) |
End of session — persist decisions and learnings |
brain_link_tool(from, to) |
Add a wikilink between two notes |
brain_suggest_links_tool(content) |
Scan text and suggest existing notes to link |
Path and frontmatter rules
The server enforces these at write time and returns an error if violated:
- All paths are relative to the vault root (no absolute paths)
- Must start with
projects/,concepts/,people/, orscratch/ - Project notes must be at
projects/<name>/<file>.md— not directly inprojects/ projects/<name>/index.mdmust be created before any other file in that project- New notes require
typeandtagsfrontmatter fields - Valid types:
project,concept,person,decision,scratch
Configuration
| Env var | Default | Description |
|---|---|---|
BRAIN_DIR |
~/brain |
Path to your vault directory |
Vault structure conventions
Every project needs an index.md — it's the entry point for brain_context_tool. Without it the tool can't traverse the project's note graph.
Suggested files per project:
index.md— overview, status, links to sub-notes (required)decisions.md— key decisions and rationalecontext.md— background, constraints, stakeholders
Keep MANIFEST.md updated with one line per project — it's the map Claude reads to know what exists.
License
MIT
Установка Brain Vault
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/dvnc0/brain-vaultFAQ
Brain Vault MCP бесплатный?
Да, Brain Vault MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Brain Vault?
Нет, Brain Vault работает без API-ключей и переменных окружения.
Brain Vault — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Brain Vault в Claude Desktop, Claude Code или Cursor?
Открой Brain Vault на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Brain Vault with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
