Vault Bridge
Provides tools to read, search, create, edit, and manage notes in an Obsidian vault, including tag and frontmatter search, backlinks and link-graph queries, batch operations, and vault health checks.
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 LLM Wiki
让你的 AI 读取、搜索并在你的 Obsidian 笔记上构建。
受 Karpathy 的 LLM Wiki 启发——但你可以现在就装上。
One-liner: Turns your Obsidian vault into an MCP server any AI agent can read, search, and write.
For: You want Claude Code / Cursor / Windsurf to work directly on your notes, with dry-run-safe writes.
Not for: You don't use Obsidian, or your tools don't speak MCP.
.obsidian/vault/ MCP stdio Claude Code
+-----------------+ +----------+ +-----------+
| notes/ | <--> | connector| <----> | agent |
| daily/ | | .js | | |
| projects/ | WS +----------+ +-----------+
| [[wikilinks]] | <--> Obsidian Cursor
+-----------------+ Plugin Windsurf你: "我上个月写的关于分布式共识的笔记在哪?"
Claude: *搜索你的 vault,读 3 篇笔记,用 [[backlinks]] 合成一个答案*Vault Bridge 把你的 Obsidian vault 变成一个 MCP 服务器,任何 AI agent(Claude Code、Cursor、Windsurf)都能连上。读、写、搜索、编译知识——以你的笔记为事实来源。
Quick Start
git clone https://github.com/2233admin/obsidian-llm-wiki.git
cd obsidian-llm-wiki && npm install && npm run build
node setup.jssetup.js auto-detects your Obsidian vault, installs the plugin, and configures Claude Code's MCP -- all in one go. Then ask Claude:
"Search my notes for anything about React Server Components"That's it.
1. Install the plugin
Copy main.js, manifest.json, styles.css into your vault's .obsidian/plugins/llm-wiki/, then enable it in Obsidian Settings > Community Plugins.
2. Connect your agent
Add to ~/.claude/settings.json (or .cursor/mcp.json):
{
"mcpServers": {
"llm-wiki": {
"command": "node",
"args": ["/path/to/obsidian-llm-wiki/connector.js", "/path/to/your/vault"]
}
}
}3. Verify
node demo.jsRelated MCP server: obsidian_mcp
What Can Your Agent Do?
Capability | Example |
Read any note | "Read my notes/architecture-decisions.md" |
Full-text search | "Find all notes mentioning 'auth middleware'" |
Search by tag | "Show me all notes tagged #project-x" |
Query frontmatter | "List notes where status is 'in-progress'" |
Follow the graph | "What notes link to [[API Design]]?" |
Create notes | "Create a summary of this PR in my vault" |
Edit notes | "Add today's standup notes to my daily note" |
Compile knowledge | "Ingest this paper and update my knowledge wiki" |
Health check | "Find orphan notes and broken links in my vault" |
All writes are dry-run by default -- your agent must explicitly opt in to change anything. Your notes are safe.
Thinking Tools -- Your Vault Thinks Back
Most tools treat your notes as a database. Vault Bridge treats them as a second brain -- one that can argue, notice patterns, and build connections you missed.
Command | What it does |
| Your vault argues back at your decisions, using quotes from your own notes. "You tried this in March and it failed because..." |
| Surfaces unnamed patterns from the last 30 days. Finds the recurring theme you haven't noticed yet. |
| Finds structural bridges between unrelated domains. "Your trading drawdown recovery looks like your tech debt payoff strategy." |
| Promotes scattered mentions into first-class concept pages. When an idea appears 3+ times, it deserves its own note. |
| Ingests a URL or paper and rewrites 5-15 existing pages to integrate it. Not "add a note" -- knowledge by integration, not accumulation. |
| Saves conversation knowledge to the right place in your vault. Parallel agents, one per folder. |
| Progressive context loading -- boots up your vault state in 1-2K tokens. |
These are Claude Code skills installed by setup.js. They work with any vault structure -- your _CLAUDE.md file tells them where things live.
Why Vault Bridge?
Vault Bridge | |||
Protocol | MCP + WebSocket | MCP + WebSocket | REST (HTTPS) |
Works without Obsidian | Yes (filesystem fallback) | No | No |
Search | Full-text + tag + frontmatter + regex | Basic | Content search |
Knowledge compilation | Built-in (ingest -> compile -> wiki) | No | No |
Graph queries | Link graph + backlinks + orphan detection | No | No |
Write safety | Dry-run by default | No guard | No guard |
Vault health | Lint (broken links, orphans, missing frontmatter) | No | No |
Batch operations | Yes | No | No |
Real-time events | WebSocket push on file changes | No | No |
Thinking tools | 7 skills (challenge, emerge, connect, graduate, ingest, save, world) | No | No |
Auth | Token + timing-safe comparison | Token | API key + HTTPS |
The Knowledge Compilation Workflow
This is the Karpathy LLM Wiki idea, made real:
Raw sources (papers, articles, notes)
|
v [vault.init] scaffold a topic
|
v Drop sources into raw/
|
v [kb_meta.py diff] detect new sources
|
v LLM extracts concepts, summaries, relationships
|
v [kb_meta.py update-hash] mark compiled
|
v [kb_meta.py update-index] rebuild wiki index
|
v [kb_meta.py check-links] verify integrity
|
Compiled wiki with [[wikilinks]], frontmatter, coverage tagsYour agent does the extraction. kb_meta.py handles the bookkeeping (diffing, hashing, indexing) -- zero dependencies, pure Python.
How It Works
AI Agent <--MCP stdio--> connector.js <--WebSocket--> Obsidian Plugin
|
(filesystem fallback when Obsidian is closed)Plugin runs a WebSocket server inside Obsidian (JSON-RPC 2.0, localhost only)
connector.js is an MCP server that proxies to WebSocket, or reads the vault directly when Obsidian is closed
Auto-discovery via
~/.obsidian-ws-port-- no manual port configuration needed
API Reference
20 tools available via MCP. All use JSON-RPC 2.0.
Method | Params | Description |
|
| Read a note's content |
|
| List files and folders |
|
| File/folder metadata (size, dates) |
|
| Check if path exists |
|
| Parsed frontmatter, links, tags, headings |
Method | Params | Description |
|
| Create a new note |
|
| Overwrite an existing note |
|
| Append to a note |
|
| Delete a note or folder |
|
| Move/rename a file |
|
| Create a directory |
Method | Params | Description |
|
| Full-text search |
|
| Find notes with a tag |
|
| Query by frontmatter fields |
|
| Link graph (nodes, edges, orphans) |
|
| Find notes linking to a note |
Method | Params | Description |
|
| Multiple operations in one call |
|
| Vault health check |
|
| Scaffold a knowledge base structure |
Security
localhost only -- WebSocket binds to 127.0.0.1, no network exposure
Token auth -- timing-safe comparison, 5s auth timeout, auto-generated 256-bit token
Dry-run by default -- writes are no-ops unless you pass
dryRun: falsePath traversal blocked --
..segments rejected,.obsidian/protected from writesConnection limits -- max 20 clients, 10MB payload cap, ReDoS-safe regex
Filesystem fallback -- same security model when Obsidian is closed
Python Companions (optional)
File | Purpose | Dependencies |
| Deterministic KB ops: diff, hash, index, lint, vitality | stdlib only |
| Async Python WebSocket client |
|
| Python MCP server (alternative to connector.js) |
|
FAQ
How do I connect Claude Code to my Obsidian vault?
Install the LLM Wiki plugin, run node setup.js, and it auto-configures MCP. Claude Code can then read, search, and write your notes directly.
How is this different from obsidian-claude-code-mcp? LLM Wiki adds filesystem fallback (works without Obsidian running), knowledge compilation (Karpathy-style raw-to-wiki pipeline), graph queries, vault health checks, batch operations, and real-time events. See the comparison table above.
How is this different from obsidian-local-rest-api? local-rest-api uses REST/HTTPS; LLM Wiki uses MCP (the protocol Claude Code and Cursor speak natively). No adapter needed, plus you get search, graph, and knowledge compilation built in.
Will this break my vault?
All write operations default to dry-run mode. Your agent must explicitly pass dryRun: false to change anything. The .obsidian/ directory is protected from writes. Path traversal is blocked.
Does it work when Obsidian is closed? Yes. The MCP connector falls back to direct filesystem access automatically. Search, read, and write all work without Obsidian running.
What is an LLM Wiki? A term coined by Andrej Karpathy: use an LLM to "compile" raw sources (articles, papers, notes) into a structured, interlinked wiki with concepts, summaries, and cross-references. This plugin is the installable implementation of that idea.
What AI agents are supported? Any MCP-compatible agent: Claude Code, Claude Desktop, Cursor, Windsurf, and any tool that supports the Model Context Protocol.
Related Projects
obsidian-second-brain — A vault that rewrites itself
markdown-memory — File-driven AI memory bridge
voile — Chat logs compiled into Obsidian knowledge
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
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
- FlicenseNot gradedqualityDmaintenanceEnables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, search, write, and link notes in an Obsidian vault via MCP tools and resources.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to list, read, search, create, update, rename, and delete markdown notes in a local Obsidian vault via an HTTP MCP endpoint.1MIT