obsidian-lite-mcp
Allows AI agents to read an Obsidian vault directly from disk, with tools for regex/path search, tag and frontmatter property filtering, reading notes by link/alias/path with outgoing links and backlinks, section outlines, broken/orphan link detection, and optional creation of new notes in a configured folder.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
obsidian-lite-mcp
A tiny MCP server that lets AI agents read an Obsidian vault straight from disk.
No Obsidian app running, no plugins, no REST API: the vault is just a folder of
.mdfiles.No shell needed: works in MCP clients that can't run
grepat all, such as Claude Desktop.Links the way Obsidian sees them: backlinks that match case-insensitively, through
[[Folder/Note]]paths, aliases and Markdown links, and skip links inside code. Plaingrep "[[Name"gets these wrong.One file, zero dependencies: Python standard library only.
Read-only by default. Writing is opt-in and limited to creating new notes in one folder.
Pull only what's needed: every result carries its size (
~N tok), and a big note can be read one section at a time. See Measured for what that buys and where it doesn't.
Tools
Tool | What it does |
| Regex over text and paths, plus |
| A note by |
| Only with |
Links resolve the way Obsidian does: exact path first, then note name or aliases, shortest path on ties.
Markdown links ([text](Folder/Note.md)) count too. Tags come from frontmatter and #inline tags outside code.
Folders listed in Obsidian's Excluded files setting are skipped, as are hidden folders like .obsidian and .trash.
Fast on big vaults: files are re-read only when they change, and on a 5000-note vault a read with backlinks
takes about 0.05 s.
Related MCP server: Obsidian MCP Server
Install
uvx obsidian-lite-mcp /path/to/vaultOr skip packaging entirely: download obsidian_lite_mcp.py and run python3 obsidian_lite_mcp.py /path/to/vault.
Claude Code
claude mcp add -s user vault -- uvx obsidian-lite-mcp /path/to/vaultTo let the agent save new notes into Inbox/ (date key in their frontmatter: VAULT_DATE_KEY, default created):
claude mcp add -s user vault -- uvx obsidian-lite-mcp /path/to/vault --write-dir InboxOther clients
Any MCP client that runs stdio servers works:
{
"mcpServers": {
"vault": { "command": "uvx", "args": ["obsidian-lite-mcp", "/path/to/vault"] }
}
}Project context at session start
Give a project note a repo property listing the repository folder names:
---
repo:
- my-api
- my-frontend
---obsidian-lite-mcp context /path/to/vault "$PWD" then prints a short index for whichever repo you are in:
the note's first line, ADRs (notes tagged adr) grouped by status, open - [ ] task counts and the three most
recently changed notes, all from the project note's folder. Measured in a real Claude Code session: about 450 tokens.
Details come from read.
In Claude Code, add it as a SessionStart hook in ~/.claude/settings.json:
{
"hooks": {
"SessionStart": [
{
"matcher": "startup|clear|compact",
"hooks": [
{
"type": "command",
"command": "uvx obsidian-lite-mcp context /path/to/vault \"$CLAUDE_PROJECT_DIR\"",
"timeout": 10
}
]
}
]
}
}Outside a known repo it prints nothing. VAULT_CONTEXT=off silences it for one run (handy for A/B token measurements).
Measured
Same questions, Claude Code headless (claude -p, Haiku), two runs per setup. grep had only Read, Grep and Glob;
obsidian-lite-mcp had only this server's tools. Tokens are total input tokens for the whole task.
Obsidian's own help vault (obsidianmd/obsidian-help en/,
181 notes): two backlink counts, two answers from sections of a 16k-token note, one alias lookup.
Setup | Correct | Turns | Input tokens | Output tokens | Cost |
grep | 5/5, 5/5 | 20, 15 | 821k, 510k | 12.6k, 11.6k | $0.084, $0.026 |
obsidian-lite-mcp | 5/5, 5/5 | 11, 12 | 225k, 277k | 3.7k, 4.3k | $0.014, $0.013 |
Both got everything right, but only because the prompt spelled out Obsidian's link rules; grep needed about
twice the turns and 2-4x the tokens to apply them. Naive grep -rlF "[[Command palette" reports 62 backlinks
instead of 64 (it misses [[command palette]]), and 32 instead of 31 for Properties (it counts [[Properties view]]).
A small personal vault (90 notes, simple links): five lookups (ADR status, backlink count, a section, open tasks, find by topic). Both setups 5/5; input tokens grep 184k and 123k, obsidian-lite-mcp 147k and 247k. No measurable difference: on a small vault with plain links, grep is just as good.
The context hook costs about 450 input tokens per session (A/B with VAULT_CONTEXT=off).
Search stays regex-only on purpose. A plain-words mode (any order, BM25-ranked) was tried on four topic questions
over the personal vault, three runs per setup: both 3/3 correct, regex 6 turns and about 73k input tokens every run,
words 6-8 turns and 77k-116k. Models already write good regexes (PHP 8\.[45], a|b), so it was dropped.
Limits
Every call checks file timestamps (about 0.04 s for 5000 notes); the first call reads everything (about 1 s).
Frontmatter parsing covers scalars,
[a, b]and- itemlists; nested YAML is skipped.Token counts are estimates (characters / 2, measured on Polish notes; English text is cheaper).
.baseand.canvasfiles are not indexed.
Development
python3 -m unittestLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to explore, search, and manage local Obsidian vault documents with tools for document search, automatic frontmatter property generation, and attachment organization.5120 npm2ISC
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to read, write, search, and navigate Obsidian vault notes with support for CRUD operations, full-text search, graph navigation, daily notes, and frontmatter management.4,114 npm-
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with local Obsidian vaults through direct filesystem access for reading, creating, and managing notes. It features high-performance SQLite indexing for fast searches, regex support, and tools for organizing tags and links without requiring additional plugins.271MIT
- AlicenseAqualityDmaintenanceEnables AI agents to use Obsidian vaults as persistent, bidirectional knowledge workspaces with wikilink/backlink resolution, structured frontmatter/tag indexing, task aggregation, and Obsidian Headless Sync.11MIT