Using an Obsidian vault as an AI knowledge base
An Obsidian vault works as an AI knowledge base because it is a folder of Markdown files. How plugins, MCP and outside agents reach it, and what to set up.

An Obsidian vault makes a good AI knowledge base because it is already in the format AI tools handle well: a folder of plain Markdown files, with properties stored as YAML at the top of each note. Obsidian has no built-in AI chat, so the AI part comes from one of three places: a community plugin inside Obsidian, a local server that lets an assistant query the vault, or an agent that reads the folder directly. Which route fits depends on whether you want the AI inside Obsidian or your notes inside an AI tool.
This guide covers what an AI tool actually sees in a vault, the ways to connect one, how to shape notes so answers come back accurate, and what to keep out of reach. Facts about Obsidian were checked against its help pages and pricing page in November 2026.
Why does an Obsidian vault work as an AI knowledge base?
Because nothing about a vault is locked inside the app. Obsidian's data storage page says notes are "Markdown-formatted plain text files in a vault," and "a vault is a folder on your local file system, including any subfolders." Any program that can read a folder can read your notes, including scripts, coding agents and local language models.
A few other things help:
- Properties are plain YAML. Obsidian stores properties at the top of each file. Fields such as
type,statusordategive an AI tool something exact to filter on. - Bases keep data in the notes. The Bases core plugin builds table and card views, and its help page says "all the data in Obsidian Bases is stored in your local Markdown files and their properties." The view definitions go in a
.basefile. - The price is not a barrier. Obsidian's pricing page lists the app as free for personal and commercial use. Sync ($4 a month billed annually) and Publish ($8 a month billed annually) are optional add-ons, and a commercial license is optional.
None of Obsidian's core plugins is an AI or chat feature, according to its core plugins page. That is a deliberate gap you fill with your choice of tool.
What does an AI tool see when it reads a vault?
Outside Obsidian, a vault is just files, and some Obsidian syntax means nothing to other tools. This is worth knowing before you point an agent at it.
| Part of the vault | What an outside AI tool sees | What to know |
|---|---|---|
Note.md |
Plain Markdown text | The main thing it reads |
| Properties | YAML block at the top of the file | Readable and easy to filter |
[[Wikilinks]] |
Literal text in double brackets | The tool may not follow the link to the other file |
![[Embeds]] |
Literal text, not the embedded note | Embedded content is not inlined |
.base files |
View definitions | The data itself lives in the notes |
.canvas files |
JSON in the JSON Canvas format | Readable, but text is split into nodes |
.obsidian/ |
Settings, themes, plugins | Not knowledge; keep it out of the AI's reach |
If your notes lean on embeds and wikilinks to carry meaning, an outside agent sees fragments. Obsidian supports both link styles; under Settings, Files and links, turning off Use [[Wikilinks]] makes new links standard Markdown links such as [Pricing](Pricing.md), which more tools can follow.
How do you connect AI to an Obsidian vault?
There are four routes, and you can combine them.
- A community plugin inside Obsidian. Smart Connections finds notes related to the one you are reading by meaning, using a local embedding model that ships with the plugin. Its listing says it needs no API key and is "private and offline by default." Chat moved out of it into a separate plugin, Smart Chat. Copilot for Obsidian adds a chat pane that can use your notes as context, with your own provider key or a local model.
- MCP through the Local REST API plugin. The Local REST API community plugin runs an authenticated REST API and an MCP server inside Obsidian, so an assistant that supports MCP can search, read and edit notes. Requests need the API key from the plugin's settings, and Obsidian must be running.
- The Obsidian CLI. Obsidian 1.12.7 and later include a command line interface, turned on in Settings, General. Commands such as
obsidian search query="meeting notes"andobsidian read path="Projects/Launch.md"give scripts and agents Obsidian's own search. The app has to be running; the first command starts it if it is not. - An agent reading the folder directly. A coding agent or a local model script can open the vault as an ordinary folder, with no plugin at all. This works when Obsidian is closed and does not depend on any plugin staying maintained. AI agents that read and write your files covers permissions and reviewing changes for this route.
A quick way to choose: if you want suggestions while you write, use a plugin. If you want to ask an assistant about your notes from somewhere else, use MCP or the folder directly.
How should you structure a vault for AI?
The same habits that help you find notes help a model answer from them.
- One topic per note, with a plain title.
Pricing decision 2026-11.mdtells a model more thanUntitled 14.md. File naming for notes that people and AI can find goes into patterns. - Say it in the text, not only in the link. "We chose Postgres, see [[Database decision]]" leaves the reason in another file. One sentence of reason next to the link survives when a tool does not follow it.
- A few consistent properties. Pick a small set and use it everywhere:
---
type: decision
status: final
date: 2026-11-12
tags: [pricing]
---
- An index note per area. A short
Projects index.mdthat lists notes with one line each gives an agent a map before it opens anything. - Separate sources from your own thinking. Clipped articles in one folder and your conclusions in another let you tell the AI which to trust.
Obsidian's search already understands some of this structure. Operators such as path:, tag: and section: narrow results, and a query code block embeds live search results in a note, which is a handy way to build a reading list before you hand it to an AI tool. The search help page lists every operator.
What should you keep out of an AI's reach?
Mainly the .obsidian folder and anything private.
- Configuration. The
.obsidianfolder holds hotkeys, themes and community plugin settings. The Local REST API plugin blocks access to it by default, and its README says this keeps the API key from granting more access than documented. Give an outside agent the same rule. - Private notes. If some notes should never go to a cloud model, keep them in a folder the agent is not given, or in a separate vault.
- Plugin trust. Obsidian's plugin security page says community plugins "can access files on your computer" and "can connect to internet," and that Obsidian scans each plugin version automatically. For an AI plugin, also read which model provider it sends text to.
What are the trade-offs?
Obsidian is a strong base for this. The files are yours, the app is free, the plugin directory has several AI options, and Bases and properties give structure without a database. Its links and embeds are also what make a vault pleasant to browse inside Obsidian.
The costs are in the edges. Plugins are maintained by their authors, so features and pricing change, as Smart Connections' move of chat into a separate plugin shows. MCP and CLI access need Obsidian open. And meaning that lives only in [[links]] and embeds is partly lost to tools that read raw files. For the broader picture of notes as AI context, see personal knowledge management in the AI era.
Opening the same vault in Noteline
Noteline, which we make, is a plain Markdown editor with no AI features, and it opens an Obsidian vault as it is: choose File > Open Folder… (Cmd+O on a Mac, Ctrl+O on Windows and Linux), with no import step. The .obsidian folder is left untouched and hidden folders are skipped in the sidebar. Find in Folder (Cmd+Shift+F or Ctrl+Shift+F) searches every note, which helps when you are checking what an agent changed. The desktop app watches the folder, and if a note open in Noteline is changed by an agent or by Obsidian, a bar offers Use disk version or Keep my version. Noteline shows [[wikilinks]] as plain text and has no backlinks or graph, so it suits quick edits next to Obsidian rather than replacing it. Opening an Obsidian vault in another editor covers what carries over to other editors.