obsidian-vault-mcp
Provides read-only access to an Obsidian vault: searches the catalog and notes, retrieves note contents, lists internal [[links]], and lists Markdown notes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@obsidian-vault-mcp search my vault for notes about the Q3 roadmap"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
obsidian-vault-mcp
A small, read-only MCP server that lets any
MCP-compatible chat AI (Claude Desktop, OpenMausBot, etc.) read your
Obsidian vault: search notes, fetch a note's content, and
list its [[internal links]].
日本語: README.ja.md
Read-only by design: the server never writes to or deletes from the vault.
Local-first: vault content goes only to the MCP client that asked. Nothing is sent anywhere else.
Respects the vault's own
AGENTS.mdrule:90_System/Indexes/catalog.jsonlis searched before broad note reads.
Table of contents
Related MCP server: Recalla
Quick start
pip install . # or: pip install obsidian-vault-mcp from PyPI
export OBSIDIAN_VAULT_PATH="/path/to/your/Obsidian Vault"
# Windows: set OBSIDIAN_VAULT_PATH=C:\Users\you\Documents\Obsidian VaultRegister the server in your MCP client (template: examples/mcp_client_config.example.json):
{
"mcpServers": {
"obsidian-vault": {
"command": "obsidian-vault-mcp",
"args": [],
"env": { "OBSIDIAN_VAULT_PATH": "/path/to/your/Obsidian Vault" }
}
}
}Then just ask the AI, e.g. "search my vault for X" — the catalog index is searched first, per the vault's AGENTS.md.
Tools
Tool | Description |
| Search the vault index |
| Catalog hits first, then full-text search over note paths/contents with snippets. |
| Read one note (path relative to the vault root). Path escapes outside the vault are rejected. |
| List the |
| List all markdown notes in the vault. |
Install
python -m venv .venv
.venv/Scripts/pip install -r requirements.txt # Windows
# .venv/bin/pip install -r requirements.txt # macOS / Linux
# for development (tests): pip install -r requirements-dev.txtOr install the package directly: pip install . (provides the
obsidian-vault-mcp command). Requires Python 3.10+.
Configure an MCP client
Point your client at the server and set the vault path via the
OBSIDIAN_VAULT_PATH environment variable (or pass --vault PATH).
Example (Claude Desktop style mcpServers config) — a ready-to-edit copy lives
in examples/mcp_client_config.example.json:
{
"mcpServers": {
"obsidian-vault": {
"command": "obsidian-vault-mcp",
"args": ["--vault", "C:/Users/you/Documents/Obsidian Vault"],
"env": { "OBSIDIAN_VAULT_PATH": "C:/Users/you/Documents/Obsidian Vault" }
}
}
}Run standalone for a manual smoke test (stdio, JSON-RPC):
obsidian-vault-mcp --vault "C:/Users/you/Documents/Obsidian Vault"Examples
examples/mcp_client_config.example.json — MCP client
mcpServerstemplate (env-var based; no secrets in the file).
Tests and CI
pip install .[dev]
python -m pytest -qCovers the vault layer (catalog-first search, path-escape rejection, link
extraction) and an end-to-end stdio MCP handshake (initialize, tools/list,
tools/call) against a temporary vault. GitHub Actions runs the same suite on
every push/PR across Python 3.10-3.13 (see the CI badge above).
Known limitations
Automated tests cover the vault layer and the stdio JSON-RPC handshake. Connecting from a real desktop MCP client and long-running sessions have not been verified yet.
If
90_System/Indexes/catalog.jsonldoes not exist, catalog search returns an empty list; full note search still works.get_notetruncates content at 20,000 characters by default (override withmax_chars).Hidden folders/files (names starting with
.) are skipped when listing and searching notes.Read-only by design: there are no write tools at all.
Layout
obsidian-vault-mcp/
├── .github/workflows/test.yml # CI (pytest on Python 3.10-3.13)
├── examples/ # sample MCP client config (no secrets)
├── src/obsidian_vault_mcp/
│ ├── vault.py # read-only vault access (stdlib only, unit-testable)
│ └── server.py # MCP (FastMCP) stdio server exposing the tools
├── tests/
│ ├── test_vault.py # unit tests
│ ├── test_vault_paths.py # path-traversal rejection tests
│ └── test_server_stdio.py # end-to-end MCP-over-stdio smoke test
├── LICENSE CHANGELOG.md pyproject.toml
├── README.md README.ja.md
└── requirements.txt / requirements-dev.txtSecurity notes
Read-only: no tool can create, modify, or delete vault files.
Path traversal guard: any path resolving outside the vault (including via
.., absolute paths, or symlinks) is rejected.No secrets are read, logged, or sent; the server only reads local files and answers the connected MCP client.
License
MIT — see LICENSE.
Changelog
See CHANGELOG.md.
Available Tools
5 toolsget_noteA
Read one note's content (read-only). "path" is relative to the vault root.
Inputs: path (required), max_chars. Returns: result
list_linksB
List the [[internal links]] of a note as JSON (target + alias).
Inputs: path (required). Returns: result
list_notesA
List all markdown notes in the vault as vault-relative paths (JSON array).
Inputs: no named parameters. Returns: result
search_catalogB
Search the vault index 90_System/Indexes/catalog.jsonl.
The vault's AGENTS.md requires searching this catalog before broad note reads, so prefer this tool first. Returns matching catalog entries as JSON.
Inputs: query (required), limit. Returns: result
search_notesB
Search the whole vault: catalog hits first, then note paths/contents.
Returns JSON with "catalog_hits" (index matches) and "note_hits" (note path + snippet). This is the broad read the vault AGENTS.md guards with the catalog-first rule.
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
search_catalog is a strict subset of search_notes (which returns catalog hits first, then note hits), so the boundary between the two is blurred and an agent must rely on the AGENTS.md rationale rather than on distinct semantics. Similarly, list_notes and search_notes both return note paths, differing mainly in filtering. get_note and list_links are cleanly distinct, and the descriptions do provide guidance, keeping this from being worse.
All five tools follow a consistent snake_case verb_noun pattern: search_catalog, search_notes, get_note, list_links, list_notes. Verbs (search/get/list) map predictably to retrieval semantics with no camelCase or stylistic drift.
Five tools is well-scoped for a read-oriented vault access server; each tool covers a distinct access pattern (index lookup, broad search, single note read, link listing, enumeration) with no filler tools.
The surface is entirely read-only: there is no create, update, append, move, or delete operation, and no way to inspect frontmatter/tags or incoming backlinks (list_links is outgoing-only). This is coherent for a deliberately read-only server, but leaves notable gaps for typical vault note management workflows.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, read, and append content to notes in an Obsidian vault via the MCP protocol.BSD Zero Clause
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read and search your Obsidian vault through a local MCP server, keeping everything private and local.Apache 2.0
- AlicenseAqualityDmaintenanceEnables MCP-compatible AI hosts to read, search, link, and write notes in a local Obsidian vault with sandboxed file access.11MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for browsing Obsidian-compatible Markdown vaults, searching notes, viewing backlinks and knowledge graphs, and adding selected content to chat context.MIT