brain-mcp

v0.5.2
io.github.debashishthakur/brain-mcp Checked 16 hours ago Published 1 month ago

Your Obsidian vault as private, searchable memory for Claude, Cursor, Hermes and any MCP client

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

brain_identity Load the owner's identity and standing context

Call this FIRST in every conversation. Returns who the owner is, their preferences and feedback rules, the projects they run, and what they touched recently. Adopt it as your persona and working context. Captured facts are only the ones true now; brain_facts has their history. Pass `topic` (a few words about what the conversation is about) to get a smaller bundle with only the memory notes that apply.

ParameterTypeDescription
topicstringWhat this conversation is about, e.g. 'interview prep' or 'database backups'. Omit for the full bundle.

brain_context Get the vault sections that answer a question

One call that returns the most relevant sections from across the vault for a question, with source note ids. Use this before brain_search when you need to answer or reason about something the owner may have written down. Ask in plain words: retrieval is hybrid (keywords + meaning + a reranker), so paraphrases work; still include specific nouns, ids and dates when you have them. The reply states its coverage (good / thin / none).

ParameterTypeDescription
question *stringThe question or topic, in plain words with specific nouns
budget_charsintegerSize cap for the returned pack (default from config, ~18000)
projectstringRestrict to one project

brain_read Read a note

Return one note in full (or one section of it) by note id, title, or wikilink target. Includes frontmatter metadata, topics, and links.

ParameterTypeDescription
note *stringNote id (vault path), exact title, or [[wikilink]]
include_connectionsbooleanKeep the generated '## Connections' trailer
sectionstringHeading text to return only that section

brain_project Project briefing

One-call briefing on a project: what it is, its notes grouped by type, latest progress entries, decisions, and what changed recently. Call this before discussing any project. Omit the project name to list all projects.

ParameterTypeDescription
projectstringProject / hub name, e.g. 'Website Redesign'. Omit to list projects.
recent_daysinteger

brain_graph Explore the link graph

Neighbours of a note, hub, or concept: outgoing links, backlinks, and notes sharing the same topics. For a concept (e.g. 'OAuth') this shows every project that touches it. Use it to hop sideways between projects.

ParameterTypeDescription
note *stringNote id, title, concept name, or [[wikilink]]
limitinteger

brain_recent What changed recently

Notes modified in the last N days, newest first. Answers 'what am I working on' and 'what did I do last week'. Hubs and concepts are excluded unless include_structural is set.

ParameterTypeDescription
daysinteger
include_structuralboolean
limitinteger
projectstring

brain_capture Save a durable note

Write a new note into the vault's capture folder with graph-ready frontmatter. Use for plans, decisions, ideas, meeting notes, or session logs the owner wants to keep. Not for one-line facts (use brain_remember). The reply lists existing notes the body names without linking.

ParameterTypeDescription
body *stringMarkdown body. Link related notes inside the sentence that says how they relate, e.g. 'The restore steps are in [[Restore the ledger database]]'; a bare list of links carries little weight.
title *stringSpecific noun phrase, not a filename
kindstring
projectstringProject hub name this belongs to, e.g. 'Website Redesign'
topicsarrayConcept names, e.g. ['OAuth', 'RAG']

brain_remember Remember a durable fact

Append one durable fact about the owner to their memory file: a preference, a correction on how to work, a project constraint, or a reference. It becomes part of brain_identity immediately. Include why it matters and how to apply it. When it changes an earlier fact, pass `replaces` with that fact's id (the stamp in its heading, e.g. '2026-09-22 18:21'): the old fact stays in the file as history and leaves brain_identity. For a fact with one current value, pass `subject` and `attribute` (e.g. 'JobMail' and 'database'); a later fact with the same pair replaces it on its own. Use `valid_until` fo…

ParameterTypeDescription
category *stringuser = who they are; feedback = how to work with them; project = ongoing work; reference = pointer
fact *string
attributestringWhich property of the subject, e.g. 'database' or 'employer'. Pass with subject.
forcebooleanStore even if it looks like a duplicate or a change to a current fact
how_to_applystring
replacesarrayIds of current facts this one makes outdated, e.g. ['2026-09-22 18:21']
subjectstringWhat the fact is about, e.g. 'JobMail' or 'the owner'. Pass with attribute.
valid_fromstringWhen it became true, if earlier or later than now: YYYY-MM-DD or YYYY-MM-DD HH:MM (UTC)
valid_untilstringWhen it stops being true, for temporary facts: YYYY-MM-DD (holds through that day) or YYYY-MM-DD HH:MM (UTC)
whystring

brain_facts Facts and how they changed

Facts recorded with brain_remember and when each was true. By default, the facts true now. `as_of` returns the facts true at another time (a bare date means the end of that day); `history` lists every version, oldest first, with what replaced it or when it expired; `subject` narrows to one thing, e.g. a project; `query` filters by words. The ids are the ones brain_remember's `replaces` takes.

ParameterTypeDescription
as_ofstringYYYY-MM-DD or YYYY-MM-DD HH:MM (UTC). Default: now.
categorystring
historybooleanEvery version, including replaced, expired and not-yet-valid facts
limitinteger
querystringWords the fact should mention
subjectstringOnly facts recorded with this subject, e.g. 'JobMail'

brain_write Create or replace a hand-written note

Create a note at a path you choose under Notes/ or Captures/, or replace one there with overwrite=true. Use it for hubs, guides and runbooks maintained by hand. Unlike brain_capture you set the type, including 'hub': a hub groups every note whose frontmatter project matches its title. Generated notes elsewhere in the vault cannot be written. The reply lists existing notes the body names without linking.

ParameterTypeDescription
body *stringMarkdown body, without frontmatter or the # title heading. Link related notes inside the sentence that says how they relate.
path *stringVault path, e.g. 'Notes/Harbor Ledger.md'
title *string
orderintegerPosition among Notes/ guides on Start Here
overwritebooleanReplace the note if the path already exists
projectstringHub this note belongs to, e.g. 'Harbor Ledger'
summarystringOne line; Start Here shows it next to Notes/ guides
topicsarrayConcept names, e.g. ['OAuth', 'RAG']
typestringnote, hub, moc, guide, runbook, plan, decision, ...

brain_edit Edit part of a hand-written note

Change part of a note under Notes/ or Captures/ without rewriting it. Give exactly one of: old_text + new_text (old_text must occur exactly once; new_text may be empty), section + content (replaces everything under that heading up to the next heading of the same or higher level; the heading itself stays), or append. Generated notes and the memory file cannot be edited. The reply lists existing notes the new text names without linking.

ParameterTypeDescription
note *stringNote id (vault path), title or [[wikilink]]
appendstringMarkdown to add at the end of the note
contentstringNew text for that section
new_textstring
old_textstringExact text to replace; must occur exactly once
sectionstringHeading text of the section to replace, without the # marks

brain_move Move or rename a hand-written note

Move or rename a note within Notes/ and Captures/, for example to promote a capture into Notes/. Refuses to overwrite an existing note, and reports any links that stop resolving.

ParameterTypeDescription
note *stringNote id (vault path), title or [[wikilink]]
to *stringNew vault path, e.g. 'Notes/Harbor Ledger.md'

brain_delete Delete a hand-written note (to the vault trash)

Remove a note from Notes/ or Captures/ by moving it into the vault's .trash/ folder, which is never indexed. Nothing is erased; the result gives the path to restore from. Generated notes and the memory file cannot be deleted.

ParameterTypeDescription
note *stringNote id (vault path), title or [[wikilink]]