Brain MCP logo

Brain MCP

Private Obsidian vault memory for MCP clients, with hybrid search, graph navigation, and controlled note writing.

Install Brain MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "brain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "debawho-brain-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 14 tools correctly (7d ago).

Overview

The brain-mcp MCP server connects MCP clients to a local Obsidian vault containing Markdown notes. It indexes sections, links, topics, projects, and embeddings in SQLite, then combines keyword, meaning, date, title, and reranker signals for retrieval. Use it when an agent needs persistent personal or project context, searchable notes, graph navigation, or a way to write memory back into the vault. It supports local stdio access, network HTTP with bearer tokens, and OAuth 2.1 access through Cloudflare Tunnel.

Use cases

  • Load personal identity and working preferences into an AI session
  • Search project notes with semantic and keyword retrieval
  • Trace related notes through Obsidian links and backlinks
  • Capture durable facts and new notes from conversations
  • Review recently modified notes before continuing work

Key features

  • Hybrid local retrieval with keyword, semantic, date, and title search
  • Obsidian Markdown indexing with links, topics, and project metadata
  • Project briefings, graph navigation, and recent-note queries
  • Controlled note creation, editing, moving, remembering, and trashing
  • Stdio, bearer-token HTTP, and OAuth 2.1 access modes
  • Local embeddings, reranking, secret redaction, and audit logging

Tools14

What Brain MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

7/8 checks healthy over the last 23d

What it can do

From the 14 tools this server returned when we ran it; 14 declare their own safety hints.

Can delete or modify data · 4Read-only tools · 10
Network at startup3 connections
Files written at startup3
Install scriptsNone
npm provenanceSigned build
Package age21 days
Maintainers1

Observed 2026-10-30 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · debawho-brain-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads1.4kPackage downloads in the last 30 days.
Last commit19d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed14Callable tools this server registers over MCP.

How Brain MCP works

What brain-mcp MCP server does

The brain-mcp MCP server exposes an Obsidian vault as persistent context for MCP-compatible AI clients. Notes remain as Markdown files in a folder controlled by the user, while the server maintains a SQLite index containing full-text search data, section embeddings, links, topics, and project metadata.

It supports both reading and writing. Agents can load identity and project context, search notes, inspect individual sections, follow links, review recent changes, capture new notes, remember facts, edit existing content, move notes, or send notes to .trash/ instead of permanently deleting them.

How it works

A file watcher updates the index after vault changes. Notes are divided into sections, with links, topics, and project information extracted for retrieval and graph operations. Embeddings use the bge-small-en-v1.5 model, and candidate results can be reranked with bge-reranker-base. These models run locally on the CPU and are downloaded into data/models.

Queries are expanded for known shorthand and corrected against words found in the vault. Retrieval combines BM25 keyword matches, semantic similarity, exact dates, and note-title matches. Reciprocal rank fusion combines those result sets before reranking selected candidates. If the strongest passage is below the configured relevance floor, the server reports that the vault does not contain a relevant answer rather than presenting a weak match.

The server can communicate over stdio, HTTP with a bearer token, or OAuth 2.1 with PKCE through Cloudflare Tunnel. Notes do not leave the server during normal local operation. Remote access includes scopes, secret redaction, and an audit log of calls.

Setup and configuration

The repository targets Node.js 22 or newer and uses strict TypeScript.

Hybrid retrieval is enabled by default according to the documentation. Set BRAIN_MCP_HYBRID=0 to use keyword-only retrieval. Retrieval behavior can also be adjusted in brain.config.json, including embedding and reranker models, candidate counts, score blending, the relevance floor, shorthand expansions, and context budgets. Additional constants such as RRF_K and TITLE_BONUS are available in the indexing code.

Tools and capabilities

  • brain_identity returns profile, memory, facts, skills, projects, and recent focus; it accepts an optional topic.
  • brain_context selects relevant sections under a size budget and reports source notes and coverage.
  • brain_search returns ranked note snippets with project, type, topic, and date filters.
  • brain_read, brain_project, brain_graph, and brain_recent inspect notes, projects, links, backlinks, shared topics, and recent changes.
  • brain_capture, brain_remember, brain_write, brain_edit, brain_move, and brain_delete provide constrained write operations.

brain_remember rejects near-duplicate facts unless forced, can mark partial overlaps with a supersession line, and feeds captured facts into identity results. Writes are limited to allowed folders, with Notes/ and the capture folder writable by default. Moving does not overwrite existing notes and reports links that no longer resolve; deletion moves content to .trash/.

Limitations and notes

The brain-mcp MCP server depends on the structure and content of the connected vault. It can explicitly report missing coverage, but it cannot supply information that the notes do not contain. The hybrid models are local and retrieval falls back to keywords while they are unavailable. The current design uses fixed retrieval rules, one process, and one SQLite database; the documentation identifies pluggable retrievers, storage, and graph strategies as future possibilities rather than current features.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Brain MCP

brain-mcp is an MCP server that connects Claude, Cursor, and other MCP clients to a local Obsidian vault. Its main tools provide identity and project context, hybrid note search, note reading, graph navigation, recent-note review, memory capture, and controlled note writing, editing, moving, and deletion.

It combines keyword BM25 search, semantic embeddings, exact dates, and note-title matching, then fuses and reranks candidates. Query shorthand expansion and spelling correction use vocabulary from the vault. Results include snippets, source notes, and coverage information.

Yes, it can capture notes, append remembered facts, create or replace notes, edit matching text or sections, move notes, and move deleted notes into `.trash/`. Writes are restricted to allowed folders, with `Notes/` and the capture folder writable by default.

Yes, the project names Cursor as a supported MCP client. Cursor can access the same vault tools as other MCP clients, including identity, search, context, note reading, graph queries, and supported write operations.

Yes, remote access can use HTTP with a bearer token on a network or OAuth 2.1 with PKCE through Cloudflare Tunnel. The documentation also describes scopes, secret redaction, and an audit log for calls.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBrain MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/brain-mcp?style=directory)](https://allmcps.com/mcp/brain-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/brain-mcp"><img src="https://allmcps.com/api/badge/brain-mcp?style=directory" alt="Brain MCP on AllMCPs" /></a>