Open Brain System The open-source AI-integrated brain system — pgvector + MCP + Supabase

Open Brain vs. Obsidian: A Category Error

Obsidian is a text editor with a graph view. Calling it a second brain made sense in 2020. In 2026, when AI agents can query your memory directly, it misses the whole point.


What Obsidian Actually Is

A Local-First Markdown Framework

Obsidian is a local-first Markdown editor designed for personal knowledge management (PKM). It functions as a flexible shell for building a "second brain" through bidirectional [[wikilinks]], a visual graph view, and an extensive community plugin ecosystem. By storing data in plain text files on the user's hard drive, it ensures data longevity and fast retrieval of human-readable notes.

The Gap Between Writing and AI Memory

While powerful for synthesis, Obsidian is not a native AI memory system. It lacks a built-in semantic index; search is primarily keyword-based unless augmented by third-party plugins. Because notes are stored as individual files in a folder hierarchy, there is no native Model Context Protocol (MCP) support to allow external agents to query the vault without specific per-client plumbing.

Integration Constraints

AI capabilities in Obsidian rely on plugins that connect to LLMs like Claude or GPT-4. These integrations require individual API keys and manual configuration for each client. While these tools enhance the writing process, they do not transform the vault into a scalable vector database. In the context of open brain vs obsidian, Obsidian remains a tool for human cognition rather than an autonomous data layer for AI agents.

What the Open Brain Model Offers That Obsidian Doesn't

Semantic Storage and Protocol Standardization

An open brain architecture shifts the focus from human-readable files to machine-optimizable embeddings. Unlike Obsidian, which relies on manual linking or text search, an open brain utilizes vector databases (such as pgvector) to enable semantic similarity search at the storage layer. This allows AI agents to retrieve information based on conceptual meaning rather than exact keyword matches.

Agent-Centric Architecture

The primary differentiator is the implementation of the Model Context Protocol (MCP). While Obsidian requires specific plugins for each AI tool, an open brain provides a standardized interface. Any MCP-compliant agent can query the memory system without custom integration plumbing. Furthermore, by utilizing JSONB and SQL, it supports complex relational queries and structured metadata that Markdown files cannot natively handle.

Comparison: Human-Centric vs. Agent-Centric

Feature Obsidian Open Brain
Primary Reader Human AI Agent
Search Method Keyword / Manual Link Vector / Semantic Similarity
Data Format Markdown (.md) Vectors + JSONB/SQL
Connectivity Plugin-based MCP Protocol
Scalability Personal Vaults (GBs) Enterprise Scale (Millions of vectors)
State Static Files Dynamic Embeddings

Where Each Is Right

Defining the Use Case

The choice between an open brain vs obsidian depends on who is doing the primary retrieval. Obsidian is the correct tool for users whose workflow centers on active writing, thinking, and manual synthesis. In this scenario, AI acts as an occasional assistant—helping to summarize a page or suggest a link—while the human remains the primary navigator of the knowledge graph.

The Case for Agent-Driven Retrieval

An open brain system is necessary when the primary use case is agent-driven retrieval. If workflows involve Claude, Cursor, or autonomous agents querying a memory bank thousands of times per day to provide context for code generation or complex research, a vector-based system is required. Human-readable Markdown is too slow and imprecise for high-frequency AI context injection.

A Hybrid Approach

These systems are complementary rather than mutually exclusive. Many practitioners maintain Obsidian as their "writing laboratory" for focused thought and export the resulting Markdown into an open brain system for AI accessibility. This allows the user to benefit from a distraction-free local writing environment while providing their AI agents with a high-performance, semantic memory layer.

The Migration Path

Bridging Markdown to Vectors

To transition Obsidian notes into an open brain, the data must be chunked, embedded, and stored in a vector-enabled database like Supabase (pgvector). This process converts static text into high-dimensional vectors that AI agents can query via cosine similarity.

import os
from openai import OpenAI
from supabase import create_client

# Initialization
client = OpenAI(api_key='sk-...')
supabase = create_client('URL', 'KEY')
vault_path = '/Users/name/Documents/ObsidianVault'

def embed_and_upload():
    for root, dirs, files in os.walk(vault_path):
        for file in files:
            if file.endswith('.md'):
                with open(os.path.join(root, file), 'r') as f:
                    text = f.read()
                    # Generate embedding using text-embedding-3-small
                    res = client.embeddings.create(
                        input=text, model='text-embedding-3-small'
                    )
                    embedding = res.data[0].embedding
                    
                    # Insert into pgvector table
                    supabase.table('memory').insert({
                        'content': text,
                        'embedding': embedding,
                        'source': file
                    }).execute()

embed_and_upload()

Performance and Utility

For a vault of 10,000 notes, this script typically executes in under one minute using batch embeddings. This migration preserves the original Obsidian vault as the primary writing environment while creating a mirrored, AI-queryable index. The result is a system where the human writes in Markdown and the agent retrieves via vectors.

Questions answered

What readers usually ask next.

Is Obsidian a second brain?
Obsidian is not a 'second brain' out of the box, but rather a flexible tool for building one. It functions as an external storage system using Markdown files and bidirectional links to offload cognitive load, allowing users to implement frameworks like the PARA method to organize their personal knowledge management (PKM).
Can Obsidian connect to Claude or ChatGPT directly?
Obsidian does not have native AI integration in its core, but it connects to LLMs via community plugins. These extensions allow users to link their vaults to APIs from companies like Anthropic (Claude) or OpenAI (ChatGPT), enabling the AI to read and write directly to your local notes.
Does Obsidian support MCP?
There is currently no native evidence of Model Context Protocol (MCP) support within Obsidian's core features. While the ecosystem is rapidly evolving through plugins, most AI integrations currently rely on standard API calls rather than a standardized MCP framework.
What's better: Obsidian or pgvector for AI memory?
It depends on your scale. Obsidian is superior for personal knowledge management and human-readable note-taking. pgvector, a PostgreSQL extension, is the correct choice for production-scale AI memory, as it handles millions of high-dimensional embeddings for semantic retrieval (RAG) that would crash a standard note app.
Can I use Obsidian and an open brain together?
Yes. You can use Obsidian as your primary 'thinking space' for manual curation and drafting, while using an open brain or vector-based system to handle the automated semantic retrieval of those notes via AI agents.
How do I export Obsidian notes to a vector database?
Since Obsidian stores data in plain Markdown files, you can export them by running a Python script to chunk the text and use an embedding model (like OpenAI's text-embedding-3) to push the vectors into a database like pgvector or Pinecone.
Is Obsidian open source?
No, Obsidian is proprietary software. However, it uses an open data format (Markdown), meaning your notes are stored locally as plain text files and can be opened by any other Markdown editor if you choose to leave the platform.
What's the difference between Obsidian's graph view and a semantic index?
Obsidian's graph view is based on explicit links (hard-coded hyperlinks) created by the user. A semantic index, like those used in vector databases, relies on mathematical similarity (cosine distance), finding related concepts even if they aren't explicitly linked.
Does Obsidian have an AI plugin that matches NovCog Brain?
While Obsidian has numerous AI plugins for vault querying and text generation, most are wrappers for LLMs. To match the specialized cognitive architecture of systems like NovCog, you would likely need a combination of several plugins to handle both retrieval and synthesis.
Can I self-host Obsidian?
Obsidian is a local-first application, so your data is already 'self-hosted' on your own hard drive. For synchronization across devices without using the official Obsidian Sync service, users typically self-host via Git, Dropbox, or Syncthing.
Which is faster: Obsidian search or pgvector?
For a few thousand notes, Obsidian's local keyword search is nearly instantaneous. However, for massive datasets, pgvector is significantly faster because it uses ANN (Approximate Nearest Neighbor) indexes like HNSW to perform semantic searches across millions of records in milliseconds.