Obsidian and Claude Code over MCP: how lessons reach your vault, and your notes reach the AI
Claude Code learns things while you work: a fix, a decision, a trap. cachly keeps them over MCP. Obsidian is where you read and link notes. This page shows how the two meet, and which way the notes travel.
How do I connect Claude Code and Obsidian?
Connect Claude Code to cachly with the plugin, so it saves fixes and decisions as lessons over MCP. Then install the cachly plugin in Obsidian, paste an API key and click Sync now. Each lesson appears as a Markdown note in the folder cachly/ of your vault. The plugin version is 0.3.1.
First, connect Claude Code to cachly:
/plugin marketplace add cachly-dev/cachly-mcp
/plugin install cachly-brain@cachlyThen turn on auto-update once: /plugin → Marketplaces → cachly → Enable auto-update. Claude Code leaves it off for marketplaces outside Anthropic's own, and the hooks update only with the plugin.
Then connect Obsidian:
- Create a free account and an API key (it starts with
cky_) on the setup page. - In Obsidian, install cachly from the community plugins, open Settings → cachly and paste the key.
- Click Sync now. A new account has no lessons yet; they appear once Claude Code or another tool learns something.
Do my vault notes reach the AI?
Only the notes you share, and only if you switch it on. Turn on Enable pushing notes to Brain in the plugin settings. Then notes in the folder cachly/shared, or with cachly_sync: true in their properties, become lessons, and Claude Code finds them over MCP. The rest of your vault stays on your machine.
A note in the shared folder, saved in Obsidian, could look like this. The properties set the lesson's topic, outcome, severity, visibility and tags; the two sections become what worked and what failed.
---
cachly_sync: true
topic: db:postgres-connection-pool
outcome: success
severity: major
visibility: team
tags: [postgres, performance]
---
## What worked
Set `max_open_conns=25`.
## What failed
200 connections without pgbouncer caused latency spikes.- Before any upload the plugin checks the note for key-like text. On a hit it uploads nothing.
- Only changed notes are sent. Files larger than 32 KB, hidden folders,
README.mdand the hub folders are never sent. - Run Sync both ways now, or switch on Auto-push on save: it uploads 3 seconds after you stop editing.
For a whole folder of documents there is also the import. It does not need the plugin:
npx @cachly-dev/mcp-server import-docs <folder> --source <source-id>You create the source first, under Company knowledge → Sources. Limits are 512 KB per document and 2,000 documents per source. This page makes no statement about how Obsidian-only syntax, such as wiki links, is imported. Details: Company knowledge and the Obsidian plugin guide.
What do the notes look like?
Each lesson becomes one Markdown note with the fields cachly_id, topic, outcome, severity, tags and date, plus what worked, what failed, commands and files. Hub notes for topic, author and file link the lessons, so Obsidian's graph view shows a network instead of a star.
- Topic hubs sit in
cachly/topics/, author hubs incachly/people/and file hubs incachly/files/. - The note
cachly/README.mdlists all lessons by category. - Filter the graph by the folder
cachly/or by the propertycachly_hubto show or hide the hubs.
What leaves my machine?
By default the plugin sends two kinds of GET request to the cachly API, one to list your Brains and one to export lessons. No vault content is sent, and there is no telemetry. With two-way sync on, it also sends one POST per note you opted in, after a check for secrets.
cachly stores lessons in Germany (Nuremberg); search results are re-ranked in France. The API key is stored in plain text in the plugin's data file. Keep the folder .obsidian/ out of public repositories, and revoke a leaked key in the cachly dashboard. Where each step runs: EU-hosted MCP memory server.
What flows where?
Out of the box, sync runs from cachly into the vault, and a changed lesson note is overwritten at the next sync. With pushing on, notes you share go to cachly, and an edited lesson note can go back after a conflict check. All other notes stay on your machine.
- Lessons to vault
- Yes. The Obsidian plugin 0.3.1 syncs on request or on a schedule: off, every 15 minutes, every 60 minutes or every 6 hours.
- Shared notes to cachly
- Only with pushing switched on, which is off by default: notes in cachly/shared or with cachly_sync: true. Optional auto-push 3 seconds after you stop editing.
- Edits to lesson notes
- Overwritten at the next sync, unless you push the note first. The plugin asks before it overwrites a lesson that changed in cachly.
- Your own notes in cachly/
- Notes without cachly_id are never touched by the sync.
- Your shared folder
- The sync never archives, overwrites or creates notes there.
- Removed lessons
- Moved to cachly/_archiv/.
- All other vault notes
- Stay on your machine. For a whole folder of documents, use the import command.
As of plugin 0.3.1, December 2026.
Frequently asked questions
Does editing a lesson note in Obsidian change the lesson in cachly?
Only if you push it. With two-way sync on, run the command Push current note to Brain on the lesson note. If the lesson changed in cachly since your last sync, the plugin asks before it overwrites. A lesson note you do not push is overwritten at the next sync.
Can Claude Code read my Obsidian notes through cachly?
Only the notes you share. With two-way sync on, notes in the shared folder or with cachly_sync: true become lessons, and Claude Code finds them over MCP. All other notes stay on your machine. For a whole folder of documents, use the company knowledge import.
What stops a secret in a note from being uploaded?
Before any upload the plugin checks the whole note for key-like text, such as cky_, ghp_, sk-, AKIA, private keys or a postgres:// address with a password. On a hit it uploads nothing and names the note, without repeating the text. The server also removes secrets.
Does the plugin work on mobile?
Yes. The plugin manifest sets isDesktopOnly to false. The plugin writes only inside its target folder and uses no desktop-only APIs.
What happens to a lesson that is removed in cachly?
Its note moves to cachly/_archiv/ and is not deleted. Your own notes in the folder, those without a cachly_id, are never touched.
More: Obsidian plugin guide · All docs