whatisgithub

What is brain.md?

mi4uu/brain.md — explained in plain English

Analysis updated 2026-05-18

14TypeScriptAudience · vibe coderComplexity · 2/5LicenseSetup · easy

In one sentence

A local-first markdown note-taking app with a built-in server that lets AI agents like Claude read, search, and write your notes.

Mindmap

mindmap
  root((brain.md))
    What it does
      Local markdown notes
      AI agent memory layer
      Built in MCP server
    Tech stack
      TypeScript
      Bun
      MCP
    Use cases
      AI agent note access
      Offline semantic search
      Per folder permissions
    Audience
      Vibe coders
      AI agent users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give an AI agent like Claude Code or Cursor safe, permissioned access to your personal notes as a memory layer.

USE CASE 2

Write and search markdown notes locally with semantic search that runs entirely offline in the browser.

USE CASE 3

Restrict which folders of your notes an AI agent can read or write using per-folder permissions.

What is it built with?

TypeScriptBunMCP

How does it compare?

mi4uu/brain.md0xbebis/hyperpayalfredxw/nova
Stars141414
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasyhardmoderate
Complexity2/55/53/5
Audiencevibe coderdeveloperwriter

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Ships as a single binary with no Node.js, Python, or database required to get started.

You can use and modify it freely, but if you run a modified version as a network service, you must share your source code under the same license.

So what is it?

brain.md is a note-taking app and AI agent memory layer that runs entirely on your own computer. You write notes in standard markdown format, and the app gives you both a polished web editor and a built-in server that lets AI assistants read, search, and write those notes. Your files stay as plain text on disk, so you can open the same folder in other editors like Obsidian or VSCode at any time. The app installs as a single binary with no Node.js or Python runtime required. Once running, it serves a web editor at a local port where you can write and preview notes with support for wikilinks, math rendering, task lists, code blocks, and diagrams. Every save is automatically committed to a local git history, so you can browse or restore earlier versions of any note. Optional password protection gates both the web interface and the AI connection. The built-in MCP server (Model Context Protocol) is what makes brain.md useful for AI agents. It exposes 17 tools and 2 resources that agents like Claude Desktop, Claude Code, or Cursor can call directly, including searching your notes, reading a file, or writing a new one. You can set per-folder permissions so that sensitive directories stay out of reach for agents even while the rest of your notes remain accessible. Semantic search is included out of the box. Notes are broken into chunks and converted to vectors using a small model that runs locally in your browser via WebAssembly, requiring no external database or internet connection. You can optionally point it at a cloud embedding service like OpenAI or Ollama instead. The project is AGPL-licensed and positions itself as a simpler alternative to Obsidian or Logseq for people who primarily want a markdown vault designed from the start as a memory layer for AI agents, rather than a large plugin ecosystem.

Copy-paste prompts

Prompt 1
Install brain.md and connect it to Claude Desktop as an MCP server.
Prompt 2
Explain how brain.md's per-folder permissions keep private notes out of reach for AI agents.
Prompt 3
Show me how to switch brain.md's embedder from the local WASM model to Ollama or OpenAI.
Prompt 4
Walk me through opening my existing Obsidian vault in brain.md.

Frequently asked questions

What is brain.md?

A local-first markdown note-taking app with a built-in server that lets AI agents like Claude read, search, and write your notes.

What language is brain.md written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, MCP.

What license does brain.md use?

You can use and modify it freely, but if you run a modified version as a network service, you must share your source code under the same license.

How hard is brain.md to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is brain.md for?

Mainly vibe coder.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.