obsidian-brain-mcp
Reads and writes agent knowledge as Markdown notes within an Obsidian vault, creating agent directories for beliefs, decisions, patterns, knowledge links, and consolidations that can be browsed and edited in Obsidian.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@obsidian-brain-mcp create a product strategy agent for tracking key decisions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-mcpConfiguration
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 a new domain agent |
|
| List all agents with statistics | (none) |
| Get full knowledge context for an agent (for prompt injection) |
|
| Suggest relevant agents for a given task |
|
| Record a decision with context and reasoning |
|
| Search an agent's knowledge base |
|
| Record or evolve a belief with confidence tracking |
|
| Promote a recurring pattern from decisions |
|
| Search knowledge across all agents |
|
| Create typed links between knowledge across agents |
|
| Detect contradictory beliefs within/across agents |
|
| Archive and summarize aging knowledge |
|
| Generate dialogue material between two agents on a topic |
|
| Import existing Obsidian notes into an agent's knowledge base |
|
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 toolsagent_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.
link_knowledgeC
エージェント間の知識をリンクで接続します
Inputs: source_file (required), target_file (required), relationship (required), source_agent (required), +1 more.
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
Scored across 15 tools
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.
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.
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.
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
Related MCP Connectors
Turn your notes, links and conversations into a Living Brain your AI tools share and build on.
The second brain your AI agents share. It builds itself from your work and keeps itself current.
A shared, governed brain for AI agents: versioned context with approvals, local or hosted.
Agentic AI runtime: persistent memory, vault, autonomous agents, deep research, DeFi execution.
Related MCP Servers
- AlicenseBqualityBmaintenanceConnects 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.3512MIT
- AlicenseNot gradedqualityDmaintenanceTurns 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 npmAGPL 3.0
- AlicenseAqualityCmaintenanceEnables 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.941 npmMIT
- AlicenseAqualityDmaintenanceEnables 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.11MIT