Brain.md logo

Brain.md

Local-first MCP access to an Obsidian-compatible Markdown vault, with semantic search, note editing, and folder-level permissions.

Install Brain.md

Run the project’s own setup commands, in order.

Setup steps from the project

brain.md installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/mi4uu/brain.md/main/install.sh | bash
    
  2. 2. Install
    powershell -c "irm https://raw.githubusercontent.com/mi4uu/brain.md/main/install.ps1 | iex"
    
  3. 3. Start the server
    brainmd                  # serve on :3000, vault at $HOME/.local/share/brain.md/vault
    
  4. 4. Start the server
    brainmd --vault-dir ./example/vault
    
  5. 5. Install
    curl -L -o brainmd \
      https://github.com/mi4uu/brain.md/releases/latest/download/brain-md-darwin-arm64
    
  6. 6. Install
    chmod +x brainmd
    

Overview

brain.md MCP server connects MCP clients to a local vault of plain Markdown files and exposes 18 tools plus 2 resources over streamable HTTP. Agents can read, search, query, and write notes, with folder-level read and write permissions controlling their access. Semantic search uses an embedded vector store and can run offline with a bundled WASM ONNX embedder, or use compatible embedding endpoints. Reach for brain.md when an agent needs a local, editable knowledge base rather than a hosted notes service.

Use cases

  • Give agents controlled access to a local Markdown knowledge base
  • Search a vault for semantically related notes
  • Keep private folders outside an agent’s read or write scope
  • Let agents update notes while preserving Git history
  • Use offline embeddings for local knowledge retrieval

Key features

  • 18 MCP tools and 2 resources over streamable HTTP
  • Obsidian-compatible Markdown vault
  • Embedded semantic search with local WASM ONNX embeddings
  • Per-folder read and write permissions
  • Optional password authentication
  • Git autocommit with restore and audit history

Security & health

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

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

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

GitHub stars40Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Brain.md works

What brain.md does

brain.md turns a folder of Markdown notes into an agent-accessible knowledge base. The files remain on disk and are compatible with Obsidian-style features including wikilinks, embeds, callouts, math, Mermaid diagrams, tasks, frontmatter, and aliases. The application also provides a browser editor, live preview, graph view, and note navigation, but its MCP surface is focused on letting agents work with the vault.

The MCP server exposes 18 tools and 2 resources through streamable HTTP on the same port as the web application. Agents can read notes, search the vault, retrieve related notes, query content, and make changes. A note view designed for MCP Apps can present interactive notes in compatible hosts; other clients receive the note text through the normal MCP response.

How it works

Each vault has an embedded vector store. When a note is saved, its content is chunked, embedded, and indexed for semantic retrieval. The default embedder is bge-small-en-v1.5, executed locally through bundled WASM ONNX. After the one-time model download, this mode works offline and does not require Python, Ollama, or native dependencies.

Embedding providers can instead point to Ollama, LM Studio, OpenAI, or another service exposing a /v1/embeddings endpoint. Semantic search and the similar_notes tool are enabled from the AI / RAG settings.

MCP access can be restricted independently for each folder. Folders receive read and write permissions for the agent surface, allowing private areas such as journals to remain inaccessible while other notes stay available. Optional authentication supports password protection with argon2id, bearer tokens, and 24-hour token expiry.

Setup and configuration

Prebuilt binaries are available for supported operating systems. The macOS and Linux installer uses install.sh; Windows users can run install.ps1. The installer downloads the platform-specific binary from the latest GitHub release and verifies it with the accompanying SHA256 checksums.

Run brainmd to serve the application on port 3000. By default, the vault is created under the platform’s local application-data location, including $HOME/.local/share/brain.md/vault on macOS and Linux. Use --vault-dir to select another vault, such as the repository’s example vault.

The binary can be used without installing Bun or Node.js. Cloud embedding providers are optional; the local embedder is the default path for an offline setup.

Tools and capabilities

  • Read, search, query, and write Markdown notes through MCP.
  • Find semantically similar notes with the similar_notes tool.
  • Expose two MCP resources alongside the tool collection.
  • Apply separate read and write permissions by vault folder.
  • Present notes through an MCP Apps interactive view where supported.
  • Commit saves to Git automatically, with history, diffs, restore operations, and path-level attribution.

Limitations and notes

MCP communication uses streamable HTTP rather than a stdio transport. The vault is intentionally a folder of Markdown files, so it does not provide a proprietary database format or replace the broader plugin ecosystem of applications such as Obsidian. Semantic search requires enabling AI / RAG and downloading the local embedding model, unless a compatible external embedding provider is selected. Authentication is optional and disabled by default.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Brain.md

brain.md is an MCP server that connects MCP clients to a local vault of plain Markdown files. Its tools let agents read, search, query, and write notes, while resources expose vault content. It also provides semantic similarity search through an embedded vector store and can enforce read/write permissions by folder.

Install it with the macOS/Linux shell script or the Windows PowerShell script, then run `brainmd`. The installer downloads and verifies a prebuilt binary, and the application starts on port 3000 with a default local vault.

Yes, brain.md works with Claude Desktop through its streamable HTTP MCP server. The README also names Claude Code and Cursor as supported clients, along with other MCP-compliant agents.

Semantic search chunks and embeds notes whenever they are saved, then stores the vectors in an embedded per-vault store. The default `bge-small-en-v1.5` model runs locally through WASM ONNX; Ollama, LM Studio, OpenAI, and other `/v1/embeddings` services are also supported.

Yes, folder permissions control MCP read and write access independently. You can keep selected folders out of an agent’s reach while allowing access to other parts of the vault.

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.md AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/brain-md?style=directory)](https://allmcps.com/mcp/brain-md)
HTML Embed
<a href="https://allmcps.com/mcp/brain-md"><img src="https://allmcps.com/api/badge/brain-md?style=directory" alt="Brain.md on AllMCPs" /></a>