AUDIO
Listen to this page
Chapters
obsidian — the household's knowledge base ("second brain")
A pre-built plugin that turns an Obsidian vault into the AI's long-term memory: facts, recipes, warranties, routines, ideas — plain markdown notes the agent can search, read, extend and prune. The family works with it in the real Obsidian app; the agent works with it through the obsidian-mcp-server, and everything is versioned with git and carried by every backup zip.
Where the vault lives
All md files live inside the plugin's data folder:
<data>/plugin-data/obsidian/vault/ # ← the Obsidian vault
- The agent's edits land there; every vault change is committed to a local
git repo inside the vault (
isomorphic-git, messages likeagent: Remembered.md (append)/vault sync (file changes)). - The vault is a skin that Obsidian opens directly — no import/export, no
sync service: Obsidian edits the same files the agent writes. In the
Docker deployment the compose file bind-mounts it to the PC folder
server/data/plugin-data/obsidian/vault; on a bare-metal server the path is already on disk. - The manifest declares
backup.include: ["vault"], so the backup plugin's format-3 zip packs every md file (plugins/backup)..gitand node_modules are never packed — history is a local sync convenience, the zip is the disaster-recovery layer.
How the AI side connects (three transports)
The heavy lifting is done by obsidian-mcp-server — the plugin never
reimplements the vault logic, it speaks the MCP protocol to it:
| transport | how | when |
|---|---|---|
sidecar (HTTP) |
the plugin ships its own docker-compose.yml running the prebuilt ghcr.io/cyanheads/obsidian-mcp-server image (service obsidian-mcp, port 3010); the core calls http://obsidian-mcp:3010/mcp |
Docker deployment (recommended — the core image runs Node 20, the MCP server image runs on its own runtime) |
spawn (stdio) |
the plugin starts the vendored obsidian-mcp-server as an MCP child process (needs Node ≥ 24 on that HOST — a bare-metal npm start host usually qualifies; the Docker core container does not) |
bare metal |
off / fallback |
no MCP at all — the agent reads and writes the markdown files directly | always available as the degraded mode |
Mechanics:
- obsidian-mcp-server talks to your Obsidian app, which must run the
community plugin "Local REST API with MCP". The API key is
stored plugin-side (write-only in the UI) or via the
OBSIDIAN_API_KEYenv variable. - The bridge talks to the app's HTTPS port (27124) — it is always on,
no extra enabling needed; the self-signed certificate is accepted because
the certificate check is off by default (
OBSIDIAN_VERIFY_SSL=false, both for the sidecar and the spawned server). - Loopback note: from inside the Docker core,
127.0.0.1is the container itself — the plugin therefore defaults the REST URL tohttps://host.docker.internal:27124there (bare-metal keepshttps://127.0.0.1:27124). The same applies to the sidecar'sOBSIDIAN_BASE_URL. - When the Obsidian app is closed (or the sidecar is down), the file
fallback takes over automatically: search/read/write/append/list/tags
keep working on the plain files.
statuslabels which side answered (via: mcpvsvia: file-fallback). - Extra endpoints/tools of the MCP server (frontmatter surgery, tags management, latest-file introspection) are reachable too if the MCP server offers them — the agent-facing surface stays the small enum below.
Setup (the user side)
- Install/enable the plugin. The vault folder exists immediately
(a
Welcome.mdexplains the same steps). - Create the workspace link: install Obsidian on your computer, open
it, → File → Open folder as vault → pick the PC folder shown on the
plugin page: in the Docker deployment the compose file already
bind-mounts the vault to the host folder
<repo>/server/data/plugin-data/obsidian/vault; a bare-metal server serves that very path natively. - In Obsidian: Settings → Community plugins → enable community plugins → install "Local REST API with MCP" → enable it, and create an API key in its settings (the HTTPS port 27124 is always on — nothing else to enable).
- Paste the same key into the plugin page (bridge section) or set
OBSIDIAN_API_KEYin Dashboard → Settings → Env variables. Choose the transport and press Test connection.
The Docker bind-mount ships by default in docker-compose.yml (one line on
the core service, like the cameras media volume) — no manual editing
needed:
services:
core:
volumes:
- ./server/data/plugin-data/obsidian/vault:/app/data/plugin-data/obsidian/vault
Admin page (#/pui/obsidian)
- Status: note count, vault size, the PC folder to open in Obsidian and the server-side vault path, bridge state (reachable / not reachable / file-fallback-only).
- Bridge settings: transport (
sidecar/spawn/off), MCP URL, Local REST API with MCP URL (spawn mode), API key (write-only), auto-commit on/off, Test connection button. - Git: sync state, Commit now (message box), history list (hash, time, author, message).
Tool actions (POST /api/v1/tools/obsidian)
| action | args | what |
|---|---|---|
search |
query, limit |
find matching notes (snippets; agent's primary entry point) |
read |
path |
one note's markdown |
write |
path, content |
create or fully replace a note |
append |
path, content, heading? |
add text at the end (or under a heading); missing note → created |
list |
path? |
notes and folders under a path |
tags |
limit |
vault tags by usage |
delete |
path, confirm=true |
remove one note (refused without confirm) |
history |
limit |
recent git commits of the vault |
status |
— | vault stats + which side answered |
The agent-facing manifest description steers the household AI here for "remember that …", "what do we know about …" — with the local Ollama fallback this is how the small model gains a searchable long-term memory.
The dictation feature rides the append action server-side:
a long voice recording's transcript is appended to a note (default
Dictation.md) when the user dictates to the vault.
Troubleshooting
- "bridge not reachable" — the Obsidian app is closed, Local REST API with MCP
is disabled, the key differs or the sidecar didn't join the stack:
curl -k https://<host>:27124/from the server host shows whether the app answers;docker compose ps obsidian-mcpthe sidecar. The tool keeps working in file mode meanwhile. fetch failedon a127.0.0.1URL — a loopback URL was used from inside a container, where127.0.0.1is the container itself. The REST URL must behttps://host.docker.internal:27124(the plugin defaults to it in the Docker deployment; bare metal keeps the loopback).- spawn fails — the host runs Node < 24 (the vendored obsidian-mcp-server
requires ≥ 24): use the sidecar transport or set the mode to
off. - Notes not visible in Obsidian — the desktop app opened a DIFFERENT folder as its vault. The vault path must be exactly the one on the plugin page.
- Restore wiped a note — first check the git history on the plugin page; the backup zip restores the whole vault as of the backup, notes edited after that live on in the local git history.
Last updated: November 2026