MCP Hub
Back to servers

brain-mcp

An MCP server for managing Obsidian-style note vaults, providing tools for full-text search, note creation, and backlink tracking. It enables users to navigate, structure, and update their personal knowledge base through natural language.

glama
Updated
Mar 13, 2026

brain-mcp

MCP server for the Brain Obsidian knowledge base. Provides tools for navigating, searching, creating, and updating notes.

Installation

uv sync

Usage

Run directly

uv run brain-mcp

Configure in Claude Code

claude mcp add brain -- uv run --directory /path/to/brain-mcp brain-mcp

Or add to ~/.claude.json:

{
  "mcpServers": {
    "brain": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/brain-mcp", "brain-mcp"],
      "env": {
        "BRAIN_VAULT_PATH": "/path/to/your/obsidian/vault"
      }
    }
  }
}

Configure in Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "brain": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/brain-mcp", "brain-mcp"],
      "env": {
        "BRAIN_VAULT_PATH": "/path/to/your/obsidian/vault"
      }
    }
  }
}

Environment Variables

VariableDescriptionDefault
BRAIN_VAULT_PATHAbsolute path to the Obsidian vault~/Documents/Projects/Obsidian/Brain

Tools

ToolDescription
brain_search_notesFull-text search across notes with context snippets
brain_list_notesList notes in a folder, filterable by frontmatter type
brain_read_noteRead a note by path or title
brain_create_noteCreate a new note (defaults to Notes/ per workflow)
brain_update_noteReplace content of an existing note
brain_move_noteMove/promote a note between folders
brain_find_backlinksFind all notes linking to a given note via wikilinks
brain_get_structureVault overview with folder stats and MOC - Home
brain_list_foldersList subdirectories with note counts

Prompts

PromptDescription
vault_reviewReview inbox notes for promotion readiness
kb_updateGenerate a KB Update note from a work session
daily_captureQuick-capture a fleeting note
project_statusStatus overview of all active projects
find_relatedMap all Brain content related to a topic

Vault Structure

The server expects an Obsidian vault with these canonical folders:

Brain/
├── Notes/           ← Inbox: fleeting notes, KB Updates
├── APIs/            ← External API references
├── Infrastructure/  ← Servers, databases, networking
├── Personal/        ← Personal notes
├── Projects/        ← Active project trackers
├── Repositories/    ← Code repository references
├── Tooling/         ← AI tool configuration
├── Workflows/       ← Standards and processes
└── _Templates/      ← Note templates

Development

# Install with dev dependencies
uv sync --group dev

# Run tests
uv run pytest

# Lint & format
uv run ruff check .
uv run ruff format .

License

MIT

Reviews

No reviews yet

Sign in to write a review