Obsidian with Claude Code: MCP, CLI or skills?

Three ways to connect an Obsidian vault to Claude Code, compared: the Local REST API's MCP server, the official CLI and Obsidian's agent skills.

On this page

There are three ways to use an Obsidian vault with Claude Code: an MCP server, Obsidian’s official CLI, and Obsidian’s agent skills. For MCP, the Local REST API community plugin has a server built in, and one claude mcp add command connects it. The CLI ships with Obsidian itself and needs no plugin. The skills teach Claude Code to use that CLI and to write Obsidian’s kind of Markdown. The MCP server and the CLI both need the Obsidian app to be running.

This is how the three compare as of November 2026. Claude Code memory: what it keeps, and where maps everything Claude Code remembers, and every guide on it.

MCP server Official CLI Agent skills
What it is The Local REST API community plugin, with an MCP server at /mcp/ The obsidian command, part of the app obsidianmd/obsidian-skills, a Claude Code plugin
Made by A community developer Obsidian Obsidian
You install A community plugin, then an API key in Claude Code Nothing: turn it on in settings A plugin from a marketplace, or a copied folder
Obsidian must be running Yes, the server runs inside Obsidian Yes Only for the skill that uses the CLI
Claude Code gets Tools: read, write, patch, search, run commands Shell commands: read, search, tasks, properties, backlinks Instructions, no new tools
Best for Other MCP clients too, not only Claude Code The least setup Correct wikilinks, properties, Bases and Canvas files

Do you need any of them?

Not to read and write notes. A vault is a folder of Markdown files, and Claude Code reads and edits files. Start claude in the vault folder and it can open, search and change every note with the tools it already has.

What plain files don’t give it is what Obsidian knows: backlinks, tags, tasks, properties, the daily note, the note you have open. The three routes exist for that.

Route 1: the Local REST API’s MCP server

The Local REST API plugin is a community plugin that exposes your vault over HTTP on your own computer. Its README says it includes a built-in MCP server that runs inside Obsidian, so Obsidian has to be open for Claude Code to reach it.

Install the plugin, copy the API key from its settings, and add the server:

$ claude mcp add --transport http obsidian https://127.0.0.1:27124/mcp/ --header "Authorization: Bearer <your-api-key>"

The HTTPS address uses a certificate the plugin generates, which your client has to trust. The README offers a plain HTTP address on port 27123 as the way around that, once you enable it in the plugin’s settings.

Claude Code then gets tools such as vault_read, vault_write, vault_append, vault_patch, search_simple for Obsidian’s full-text search, tag_list, and command_execute, which runs any Obsidian command by its ID. That last one reaches your other plugins, which is the real reason to pick this route.

The catalogs also list a dozen other community MCP servers for Obsidian. Some are plugins, some read the folder directly without the app. Read each one’s repository before you trust it with your notes.

Route 2: the official Obsidian CLI

Obsidian’s CLI is part of the app. The help page says it requires the Obsidian 1.12 installer, and you turn it on under Settings, General. There’s nothing to connect: Claude Code runs it like any shell command.

$ obsidian search query="release checklist" limit=10
$ obsidian read file="Release checklist"
$ obsidian backlinks file="Release checklist"
$ obsidian daily:append content="- [ ] Check the changelog"

The same page states that the CLI requires the Obsidian app to be running, and that the first command starts the app if it isn’t. So the CLI is a remote control for Obsidian, not a separate program that reads your files. Run it inside the vault folder and it uses that vault. Otherwise add vault=<name> as the first parameter.

Route 3: Obsidian’s agent skills

Obsidian publishes a set of agent skills. A skill is a file of instructions that Claude Code loads when a task calls for it. Install them from inside Claude Code:

/plugin marketplace add obsidianmd/obsidian-skills
/plugin install obsidian@obsidian-skills

Among them, obsidian-markdown covers wikilinks, embeds, callouts and properties, obsidian-bases covers .base files, json-canvas covers .canvas files, and obsidian-cli teaches the commands from route 2. The first three only shape what Claude Code writes, so they work with Obsidian closed. The CLI skill says it requires Obsidian to be open.

Skills aren’t an alternative to the other two routes. Use them with either.

Which one should you pick?

Start with the CLI and the skills. Both come from Obsidian, neither needs a community plugin or an API key, and together they cover reading, searching and writing notes in the right format.

Add the MCP server when you want something the CLI doesn’t do for you: another MCP client on the same vault, or Obsidian commands from your other plugins.

A folder layout that keeps agent notes apart

Whichever route you take, decide where Claude Code may write before it writes anything. One layout that works:

MyVault/
├── CLAUDE.md          the rules below
├── agents/
│   ├── memory/        what the agent learned
│   ├── decisions/     what was decided and why
│   └── facts/         one claim per note, with its source
├── Daily/             yours
└── Projects/          yours

Then say so in the vault’s CLAUDE.md, which Claude Code reads at the start of a session:

CLAUDE.md
This folder is an Obsidian vault. Read any note.
Write only inside agents/. Never edit a note outside it.
Before answering a question about past work, search agents/.

Be clear about what this is. It’s a request the agent usually follows, not a lock. All three routes can write anywhere in the vault.

Should you commit the vault to git?

Yes, if agents write to it. The notes are plain text, so a commit before each session shows you exactly what an agent added or changed, and lets you undo it.

Where Obsidian is the better choice, and where it stops

If you live in Obsidian’s plugins, stay there. Dataview queries, Bases, Canvas, themes and mobile apps are Obsidian’s, and command_execute or the CLI lets Claude Code use them. Nothing else does that.

The gaps show when the vault becomes the agent’s long-term memory:

  • No lifecycle. A note the agent wrote in March reads as true in November. Nothing marks a decision as replaced or a fact as due for a check. You can add that by convention, as stale agent memory describes, but the agent has to keep to it.
  • The app must be running for the MCP server and the CLI, which is awkward on a server or over SSH.
  • No briefing. Claude Code starts each session knowing only what CLAUDE.md says, and has to go and search.

Memorinth is built for that second job. It’s a memory layer on the same kind of folder: agents write only in memory/, decisions/ and facts/, superseded decisions drop out of search, facts come up for a recheck after 180 days, and a hook hands Claude Code a briefing when a session starts. Its MCP server runs without the desktop app. It doesn’t run Obsidian plugins.

You can also use both on one vault. Memorinth and Obsidian shows how, The cortex explains who writes where, and Give Claude Code a long-term memory is the setup.

All posts