Obsidian MCP: ways to give an AI agent your vault
· Sergii Kravtsov · Folio
Pick by two questions: does the agent run on your own computer, and does anyone besides you need the same vault? For one person, a file-based MCP server such as MCPVault, or Claude Code opened in the vault folder, works with Obsidian closed. Servers built on the Local REST API plugin need Obsidian open. None of them gives a team roles or shared editing; for that, put the vault in Git and serve it from a team wiki such as Folio.
Below: six ways, one table with the same five criteria for each, and what each is good for. Facts about other projects come from their own pages and were read on 2 November 2026; they change, so check the linked source before you rely on one. If you already know you want the team route, the team route is the last one in the table, and the guide to making a vault multiplayer has its setup.
Which way of giving an agent your Obsidian vault fits you?
| Way | Who can use it | Obsidian must be open | Permissions | Several people at once | Self-hosted |
|---|---|---|---|---|---|
| Local REST API plugin with its built-in MCP server | The person at that computer; listens on 127.0.0.1 by default | Yes: it runs inside Obsidian | One API key, sent as a bearer token | No: one vault in one Obsidian | Yes, on your machine |
| mcp-obsidian on top of that plugin | Whoever runs the Python server with the key | Yes: it calls the plugin | The plugin's key; the tools include deleting files | No | Yes, on your machine |
| MCPVault, a file-based server | Whoever starts it as a local process | No: it reads the files | Stays inside the vault root, blocks dotfolders such as .obsidian and .git; optional read-only flag | No: one process on one machine | Yes, on your machine |
| An agent opened on the vault folder (Claude Code, Cursor and similar) | The person at that computer | No | The agent's own permissions: what you let it read, edit and run | No | Yes, on your machine |
| Obsidian CLI | The person at that computer | Yes: the page says the app must be running | Not described on the page; it works on your local vault | No | Yes, on your machine |
| Folio over a Git repository | Every member of the space, in a browser or through an agent | No: Obsidian is optional for anyone | Roles per space, rights per page, a read or write token that never exceeds its owner's rights | Yes, with live cursors | Yes, MIT license |
A Git repository with an agent cloned next to it is a seventh route, and it sits between the folder and the team routes: the rights are whatever your Git host grants, and several people can work because Git merges their commits, though not live. Folio builds on exactly that.
How does the Local REST API plugin give an agent access?
The community plugin Local REST API serves your vault over HTTPS on 127.0.0.1, port 27124 by default, with a key from its settings. Its README says it also contains an MCP server, so a client such as Claude can connect without extra software. It runs inside Obsidian, which means the app has to be open, and the key is one secret for the whole plugin.
The older route is mcp-obsidian, a separate Python server that talks to the plugin. Its tools list and read files, search, patch or append content, and delete files. It needs the plugin installed, the key in an environment variable and Python 3.11 or later. Both are MIT-licensed. Pick this family when you want the agent to use what Obsidian already knows, at the price of keeping Obsidian running.
What changes with a file-based MCP server?
A file-based server skips Obsidian and reads the Markdown files. MCPVault describes itself as a local server with 18 tools for files, search, front matter, tags and wiki links. The client starts it as a local process and passes the vault path. It keeps to the vault root, refuses dotfolders such as .obsidian and .git, and has a read-only flag. Nothing needs to be open, and nothing leaves your machine except what the model provider receives.
Start read-only. An agent that can write to your notes can also damage them, and a vault that is not in Git has no history to roll back to.
Can an agent just work in the vault folder?
Yes, and for one person it is often the simplest answer. A vault is a folder of Markdown files. Open Claude Code or another coding agent in that folder and it reads, searches and edits the notes with its ordinary file tools. Put the rules of the vault in a CLAUDE.md file so every session starts with them; Anthropic describes how these files and auto memory work in the Claude Code memory docs. The practical walk-through is in Obsidian and Claude Code: a shared second brain for a team.
The weak spot is the same as with every local route: the vault lives on one disk, so only the person at that computer has the agent's view of it.
Is the Obsidian CLI an option?
Obsidian ships a command line interface that needs the 1.12.7 installer, is enabled in Settings, and, as its page says, requires the app to be running. An agent with a shell can call it. It is not an MCP server, so a client that only speaks MCP cannot use it directly.
How do you give a whole team's agents the same vault?
Move the single copy off one laptop. Put the vault in a Git repository, connect the repository to a server every colleague can reach, and give the agent a token for that server instead of a path on a disk. Folio (foliowiki), an open-source (MIT) self-hosted team wiki in Git, does this: it opens an Obsidian vault in the browser without changing a file (see Folio vs. Obsidian), and agents reach the same pages over MCP with the rights of whoever owns the token.
To connect Claude Code, create a token under the user menu, API tokens, and run one command. Choose the read scope while you are testing.
claude mcp add --transport http folio https://your-folio.example.com/mcp \
--header "Authorization: Bearer folio_pat_..."Claude Code's own page on connecting to MCP servers covers the options, and Connect Claude Code to Folio has the shared project file and the OAuth route. Other clients (Claude, ChatGPT, Cursor, Codex, VS Code) have pages under integrations.
What the agent gets beyond reading files is the structure of the vault. Search runs across the space, and the tools return backlinks with the line each link sits on, a page's outline and properties, the link graph, unresolved links and orphan pages, and the rows of an Obsidian base. An agent can ask the vault what is broken, not only what is written. Everything is checked against the token owner's rights, so a page that person cannot open does not appear, and a read token cannot write. Writes come back as ordinary Git commits.
What does Folio not do here?
- It is not a local server for a folder. Folio clones a Git repository onto its own server. It cannot be pointed at a vault that lives only on your disk, so put the vault in Git first.
- It does not run Obsidian plugins. Dataview and query blocks are shown as code, community plugins and their CSS do not exist in the browser, and Kanban and map views of a base fall back to a table.
- It reads Obsidian markup and never writes it. It does not turn your links into wikilinks. A page an agent creates through MCP is plain Markdown.
- MCP does not manage rights. Page access, roles and the creation or deletion of a space are done in the interface. An agent cannot widen its own access.
- Sync is not instant. A browser or agent edit becomes a commit after about 90 seconds of quiet, and Folio fetches from the remote about every three minutes.
- You run the server. It needs PostgreSQL and Redis next to it. For one person on one laptop, a file-based server is less work.
The complete list is in LIMITATIONS. To see the screens first, the public demo runs the release; the install guide has ten ways to run your own.
Frequently asked questions
What is an Obsidian MCP server?
A program that exposes your Obsidian vault to an AI client over the Model Context Protocol, so the client can list, read, search and sometimes edit notes. Some servers talk to Obsidian through the Local REST API plugin and need the app open; others read the Markdown files directly and do not.
Does Obsidian need to be open for an agent to use my vault?
It depends on the route. The Local REST API plugin, mcp-obsidian and the Obsidian CLI need the app running. A file-based server such as MCPVault, an agent opened on the folder, and a Git-based wiki do not.
Is it safe to give an AI agent write access to my vault?
Treat it like any automation. Start read-only where the tool offers it, keep the vault in Git so every change is a commit you can review and revert, and give a shared agent its own account or token with only the access it needs. In Folio a token never has more rights than its owner, and the read scope cannot write.
Can Claude Code read my Obsidian vault without MCP?
Yes. Open Claude Code in the vault folder and it reads and edits the Markdown files with its normal file tools. Add a CLAUDE.md file with the conventions of the vault. MCP is for cases where the vault is behind a server or API, or where several people share it.
How can a team of several people use one Obsidian vault with AI agents?
Put the vault in a Git repository, open it in a shared server such as Folio, and give each person's agent a token for that server. Colleagues edit in a browser with roles and live cursors, anyone who loves Obsidian keeps it and syncs over Git, and every agent works with its owner's rights.
See it in a running Folio
Open the live demo and click through a real Folio instance, or install it and move one space over. Folio is open source and stores everything in Git.
Related
More from the blog
- Folio 0.4.4: notifications, review of agent edits, page owners and team skills
- Folio 0.4.3: a calmer interface, redesigned after your feedback
- MCP security for a wiki: OAuth, tokens and page permissions
- LLM wiki for a team: Markdown in Git, readable by agents over MCP
- Obsidian Bases outside Obsidian: open and edit .base files in a browser
- Notion vs Obsidian for a team: what each one gives you, and when neither fits
- Mermaid vs PlantUML: which to use for docs in Git
- Groups and single sign-on in an open-source wiki: free, in one MIT edition
- Side-by-side comparison of wiki pages and versions: see what changed
- Publish a Cursor canvas to your team wiki: dashboards that outlive the chat
- Publish a Claude artifact to your team wiki: interactive pages that live in Git
- Make any page a template: custom templates for your Folio space
- Confluence MCP, Notion MCP and a wiki that is its own MCP server
- Export Confluence to Markdown and keep it in Git
- Mermaid diagrams in a team wiki: keep them as code
- See how your team's knowledge connects: graph, Canvas and Bases in Folio 0.4
- Open an Obsidian vault as a team wiki, without changing a file
- Publish a wiki space as a public website, and let visitors ask it questions
- Docs-as-code without the IDE: edit your repository's docs in a browser
- New hires ask the wiki, and the wiki learns what it lacks
- Folio boards: built on Excalidraw, made for teams