Skip to main content
Glama
obsidian-brain-mcp
by hikaru777

obsidian-brain-mcp

Turn your Obsidian vault into a domain-specific AI brain. An MCP (Model Context Protocol) server that enables dynamic agent creation, knowledge management, and cross-agent intelligence.

Features

  • Dynamic Agent Creation — Create specialized domain agents that accumulate knowledge over time

  • Belief Evolution — Track how understanding changes with confidence scoring and supersede chains

  • Decision Recording — Capture decisions with context, reasoning, and outcomes

  • Pattern Recognition — Promote recurring patterns from accumulated decisions

  • Cross-Agent Search — Search knowledge across all agents simultaneously

  • Knowledge Linking — Create typed relationships between knowledge nodes across agents

  • Conflict Detection — Surface contradictory beliefs within and across agents

  • Memory Consolidation — Automatically archive and summarize aging knowledge

  • Agent Dialogue — Generate structured dialogue material between two agents on a topic

  • Note Import — Import existing Obsidian notes into agent knowledge bases

Related MCP server: Obsidian Palace MCP

Installation

npm install -g obsidian-brain-mcp

Configuration

Set the environment variable to point to your Obsidian vault directory where agent brains will be stored:

export OBSIDIAN_BRAIN_VAULT_PATH="/path/to/your/obsidian-vault/AI Brain"

Usage with Claude Code

Add to your ~/.claude/settings.json:

{
  "mcpServers": {
    "obsidian-brain": {
      "command": "obsidian-brain-mcp",
      "env": {
        "OBSIDIAN_BRAIN_VAULT_PATH": "/path/to/your/obsidian-vault/AI Brain"
      }
    }
  }
}

Tools

Tool

Description

Key Parameters

create_agent

Create a new domain agent

name, description, scope

list_agents

List all agents with statistics

(none)

get_agent_context

Get full knowledge context for an agent (for prompt injection)

agent

suggest_agents

Suggest relevant agents for a given task

task

record_decision

Record a decision with context and reasoning

agent, title, context, decision, reasoning, tags

query_agent

Search an agent's knowledge base

agent, question

evolve_belief

Record or evolve a belief with confidence tracking

agent, title, content, reasoning, supersedes?

promote_pattern

Promote a recurring pattern from decisions

agent, title, description, conditions, decision_refs, confidence

search_across_agents

Search knowledge across all agents

query

link_knowledge

Create typed links between knowledge across agents

source_agent, source_file, target_agent, target_file, relationship

detect_conflicts

Detect contradictory beliefs within/across agents

agent?

consolidate_memory

Archive and summarize aging knowledge

agent, before_date?, dry_run?

agent_dialogue

Generate dialogue material between two agents on a topic

agents (array of 2), topic

import_notes

Import existing Obsidian notes into an agent's knowledge base

agent, note_path, import_as, title?

Vault Structure

{OBSIDIAN_BRAIN_VAULT_PATH}/
├── _registry.md              # Agent registry
├── master/                   # Default root agent
│   ├── _agent.md
│   ├── beliefs/
│   ├── decisions/
│   ├── patterns/
│   ├── knowledge-links/
│   └── consolidations/
├── {agent-name}/
│   ├── _agent.md
│   ├── beliefs/
│   │   └── {slug}.md         # Frontmatter: confidence, formed, supersedes
│   ├── decisions/
│   │   └── {date}-{slug}.md  # Frontmatter: tags, outcome
│   ├── patterns/
│   │   └── {slug}.md         # Frontmatter: confidence, derived_from
│   ├── knowledge-links/
│   │   └── {slug}.md         # Cross-agent relationship links
│   └── consolidations/
│       └── {date}-consolidated-{timestamp}.md
└── ...

How It Works

Each agent lives as a directory in your Obsidian vault. Knowledge is stored as Markdown files with YAML frontmatter for metadata (confidence scores, timestamps, relationships, tags).

When you create an agent, it gets its own directory with subdirectories for beliefs, decisions, patterns, knowledge-links, and consolidations. As you record decisions and evolve beliefs, the agent accumulates structured knowledge that can be queried, searched, and linked across agents.

The frontmatter-based metadata system enables features like belief evolution (tracking how understanding changes over time via supersede chains), pattern promotion (elevating recurring decision patterns), and conflict detection (surfacing contradictory beliefs by comparing content across agents).

Because everything is plain Markdown, you can browse, edit, and link your agent knowledge directly in Obsidian — or any text editor.

Requirements

  • Node.js >= 18.0.0

  • An Obsidian vault (or any directory — Obsidian is optional but recommended for browsing)

License

MIT

Available Tools

15 tools
agent_dialogueC

2つのエージェント間でトピックについての対話素材を生成します

Inputs: topic (required), agents (required).

consolidate_memoryC

古い記憶を統合・整理します

Inputs: agent (required), dry_run, before_date.

create_agentC

新しいドメインエージェントを作成

Inputs: name (required), scope (required), description (required), triggers.

detect_conflictsC

エージェント内・エージェント間の信念の矛盾候補を検出します

Inputs: agent.

evolve_beliefD

信念を記録・進化

Inputs: agent (required), title (required), content (required), reasoning (required), +1 more.

get_agent_contextA

特定エージェントの全知識を取得(prompt注入用)

Inputs: agent (required).

import_notesC

既存のObsidianノートをエージェントの知識として取り込みます

Inputs: agent (required), import_as (required), note_path (required), title.

list_agentsC

全エージェント一覧と統計

Inputs: no named parameters.

promote_patternC

パターンを昇格

Inputs: agent (required), title (required), conditions (required), confidence (required), +2 more.

query_agentC

エージェントの知識を検索

Inputs: agent (required), question (required).

record_decisionD

判断を記録

Inputs: tags (required), agent (required), title (required), context (required), +2 more.

search_across_agentsC

全エージェントの知識を横断検索します

Inputs: query (required).

set_triggersB

既存エージェントの UserPromptSubmit トリガーキーワードを設定

Inputs: agent (required), triggers (required).

suggest_agentsC

タスクに関連するエージェントを提案

Inputs: task (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource or action (agent lifecycle, belief, pattern, decision, memory maintenance). The main overlap is between query_agent, search_across_agents, and get_agent_context, which all retrieve knowledge but are separated by scope (single agent vs cross-agent vs full dump), and the trio record_decision/evolve_belief/promote_pattern are distinguishable only by their subtly different entities.

    Naming Consistency4/5

    Almost all names follow a snake_case verb_noun pattern (create_agent, list_agents, query_agent, link_knowledge, import_notes). The sole deviation is agent_dialogue, which omits the verb and reads as a noun phrase, but overall the convention is predictable.

    Tool Count4/5

    15 tools sit at the upper end of the comfortable range and each maps to a concrete operation in the agent-knowledge domain. A couple of retrieval tools could arguably be folded together, but nothing feels like filler.

    Completeness3/5

    Creation, listing, retrieval, linking, search, and maintenance (consolidate, detect_conflicts) are covered, but there is no delete/forget operation for agents or knowledge entries and no general update_agent beyond set_triggers. For a memory system where pruning and mutation matter, these are notable gaps an agent would hit.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Connects AI assistants directly to Obsidian vaults with intelligent note creation using templates, semantic search, smart tagging to avoid duplicates, and specialized agent roles (Guardian, Researcher, Connection Weaver) for managing knowledge bases.
      35
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Turns your Obsidian vault into an AI memory palace, enabling AI assistants to store knowledge with intent-based organization, retrieve information through full-text search, auto-link related notes, and query using Dataview syntax while maintaining provenance tracking.
      27 npm
      AGPL 3.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables coding agents to use an Obsidian vault as long-term memory, with search, reading, and writing of notes, plus automatic capture of learnings that are propagated to MOCs, daily notes, and the knowledge index with git commits.
      9
      41 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to use Obsidian vaults as persistent, bidirectional knowledge workspaces with wikilink/backlink resolution, structured frontmatter/tag indexing, task aggregation, and Obsidian Headless Sync.
      11
      MIT