About Brain.md
Brain.md is an MCP server published by mi4uu in the RAG category: local-first markdown notes with a first-class MCP server. 16 tools + 2 resources for Claude Code, Claude Desktop, Cursor and any MCP agent. Per-folder permissions, semantic RAG via LanceDB, single Bun binary. AGPL. Conduid read 20 tools from its source: append_note, compare_notes, context_for_query, current_datetime, find_orphans, find_related and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 40 stars and 4 forks, and its last commit was on 29 Nov 2026. Conduid has no tagged release on record for it. Its topics include agpl, bun, knowledge-management, lancedb, local-first and markdown-editor.
Install
git clone https://github.com/mi4uu/brain.mdTools (20)
append_noteAppend a paragraph (blank-line separator)| Parameter | Type | Description |
|---|---|---|
| base_revision | string | |
| content * | string | |
| path * | string |
compare_notesCosine sim + unified diff + shared headings between two notes| Parameter | Type | Description |
|---|---|---|
| a * | string | |
| b * | string |
context_for_queryPack top-relevant chunks into a markdown context block (token cap)| Parameter | Type | Description |
|---|---|---|
| budget_tokens | number | |
| query * | string |
current_datetimeServer date, time and timezone, so agents never guess "now"find_orphansNotes with 0 backlinks AND low semantic neighbour density| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| min_isolation | number |
find_relatedNotes semantically close to a given path (excludes self)| Parameter | Type | Description |
|---|---|---|
| k | number | |
| path * | string |
find_similar_tasksSemantic search across task lines (filter: open/done/all)| Parameter | Type | Description |
|---|---|---|
| filter | string | |
| k | number | |
| query * | string |
get_backlinksInbound wikilinks| Parameter | Type | Description |
|---|---|---|
| path * | string |
get_tasksAggregate tasks (filter: open/done/all)| Parameter | Type | Description |
|---|---|---|
| filter | string |
graph_viewGraph of notes and links (whole vault, a folder, or around a note)| Parameter | Type | Description |
|---|---|---|
| center | string | |
| depth | number | |
| folder | string |
list_notesFiltered vault tree, paged| Parameter | Type | Description |
|---|---|---|
| folder | string | |
| include_hidden | boolean |
list_tagsTags with counts, most used first, pagedquery_notesNotes as a table: filter, columns, sort, or a Base view| Parameter | Type | Description |
|---|---|---|
| base | string | |
| columns | array | |
| filter | string | |
| path | string | |
| sort | array | |
| view | string |
read_noteNote body, mtime, parsed `properties`| Parameter | Type | Description |
|---|---|---|
| path * | string |
search_notesFull-text vault search| Parameter | Type | Description |
|---|---|---|
| include_hidden | boolean | |
| query * | string |
semantic_outlineCluster a note's chunks into topical groups (cosine ≥ threshold)| Parameter | Type | Description |
|---|---|---|
| path * | string | |
| threshold | number |
similar_notesSemantic RAG (top-k chunks)| Parameter | Type | Description |
|---|---|---|
| k | number | |
| query * | string |
update_propertiesChange frontmatter properties (`set`, `unset`, `base_revision`)| Parameter | Type | Description |
|---|---|---|
| base_revision | string | |
| path * | string | |
| set | object | |
| unset | array |
weekly_digestTopic clusters across notes modified in a recent window (e.g. 7d)| Parameter | Type | Description |
|---|---|---|
| since | string | |
| threshold | number |
write_noteCreate or overwrite a note| Parameter | Type | Description |
|---|---|---|
| base_revision | string | |
| content * | string | |
| create_only | boolean | |
| path * | string |
Security checks
6 checks have not been run yet.