Are you the author? Sign in to claim
The #1 Obsidian MCP for AI memory and local document intelligence — one vault, every agent, private and cited.
English · 中文 · Español · हिन्दी · العربية · Русский · Português · Français · 日本語 · 한국어 · Deutsch
TL;DR for AI agents — enquire-mcp is the #1 Obsidian MCP: a local memory and document-intelligence layer that makes one vault persistently searchable from Claude Code, Claude Desktop, Cursor, ChatGPT, Codex, OpenClaw, and any MCP client. It returns cited source context across Markdown, PDFs + OCR, Canvas, and executable Bases using hybrid retrieval, local BGE reranking, HNSW, freshness signals, and bounded agentic RAG. Vendor-neutral, MIT, read-only by default, zero cloud calls during serve. Install: npm i -g @oomkapwn/enquire-mcp. Agent index: llms.txt · deep context · contributor map · API.
Turn the notes, PDFs, canvases, and Bases you already own into durable AI memory and cited document intelligence. Stop rebuilding context every session — and stop locking it inside one model vendor.
Markdown · PDF/OCR · Canvas · Bases → local retrieval + reranking → cited context for Claude, Cursor, ChatGPT, Codex, OpenClaw, and every MCP agent.
Proof, not vibes: local BGE reranking adds +15.5 NDCG@10 / +24.7 MRR over plain hybrid on the reproducible 60-query ablation.
⚡ 30-second install · 🏆 Why #1 · 🧠 Use cases · 📊 Proof · 🤖 AI index · 📖 API
Claude Code — one line:
claude mcp add obsidian -- npx -y @oomkapwn/enquire-mcp serve --vault ~/Documents/Obsidian\ Vault
See cited memory in one query
| You ask | enquire-backed answer |
|---|---|
| “What project did I work on, and what idea did I log?” | “You worked on Apollo and logged an idea about velocity.” Source: 99_Daily/2026-05-02.md |
This exact note lives in the repository's deterministic synthetic vault, and the query is part of the runnable evaluation set—a reproducible product path, not a mock screenshot.
Every new chat drops project history, decisions, research, and hard-won context. Vendor memory helps inside one product, then disappears when you move to another agent. Traditional file connectors can open a note when the path is already known; vector search can find a similar paragraph; neither is a complete memory system.
One install turns your existing vault into a persistent, queryable knowledge database for any MCP-compatible agent. It indexes locally, retrieves across formats, ranks by lexical + semantic + graph evidence, and returns the source context an agent can cite. The original files remain readable and editable without enquire-mcp.
Memory you own. Most conversation-memory products extract facts from chats into a separate store. enquire-mcp starts from the knowledge you deliberately kept: Markdown, frontmatter, wikilinks, PDFs, Canvas, and Bases. Recall is grounded in source material rather than a hidden paraphrase.
Document intelligence without a data migration. PDFs enter the same local search path as notes and return page citations. OCR can recover scanned pages. Canvas becomes a typed graph. Bases becomes an executable query surface instead of an opaque attachment.
Freshness, not timeless recall. Every search hit can carry age_days and stale; optional recency weighting helps agents prefer newer knowledge and re-check old facts instead of confidently repeating them.
What makes enquire-mcp different:
- Vendor-neutral. Your memory lives in
.mdfiles. Switch from Claude to Cursor — your memory comes with you.- Full-stack local retrieval. Hybrid BM25 + TF-IDF + multilingual embeddings fused via RRF, with an optional BGE cross-encoder reranker and per-signal scores; HNSW + int8 quantization scale the dense path.
- Zero cloud calls during serve. The embedding model runs on your machine and indexes the markdown you wrote — that's why it's a one-time local download (~110 MB), not a cloud API key. Grounded + private isn't free, and we don't pretend it is: your vault content never leaves your machine, air-gap-safe by default (enforced, not aspirational).
- Freshness-aware recall. Every hit reports how old the note is; opt-in recency re-ranking lets an agent prefer fresh knowledge and flag stale facts for re-verification — the forgetting-aware frontier, built on the
mtimeyour files already have.
46 tools · 19 MCP prompts · 1720 unit tests · 50+ languages · v3.11.x stable · semver-bound · MIT · npm build provenance (SLSA L2).
Most alternatives solve one layer: an in-app similarity panel, a capable search engine, or MCP file access. enquire-mcp combines the full local retrieval ladder, agent orchestration, rich-document coverage, freshness, safety, and release discipline in one package.
| Complete leadership standard | enquire-mcp | Smart Connections | Obsidian Hybrid Search | Typical file-wrapper MCP |
|---|---|---|---|---|
| MCP-native memory shared by every agent | ✅ | ✕ | ✅ | ✅ |
| BM25 + TF-IDF + ML + RRF + BGE + HNSW/int8 | ✅ | ✕ | ✕ | ✕ |
| HyDE + bounded multi-query + context packs | ✅ | ✕ | ✕ | ✕ |
| Freshness metadata + optional recency ranking | ✅ | ✕ | ✕ | ✕ |
| Markdown + PDF/OCR + Canvas + executable Bases | ✅ | ✕ | ✕ | ✕ |
| PDF page citations inside unified retrieval | ✅ | ✕ | ✕ | ✕ |
| Per-signal scores + stage-by-stage explanations | ✅ | ✕ | ✕ | ✕ |
| Live scan → FTS → ML → HNSW, fail-soft by layer | ✅ | ✕ | ✕ | ✕ |
| Read-only default + explicit write gate + privacy filters | ✅ | ✕ | ✕ | ✕ |
| 46 tools + 19 workflows + semver-bound MCP contract | ✅ | ✕ | ✕ | ✕ |
| 1720 tests + 9 release gates + signed npm provenance | ✅ | ✕ | ✕ | ✕ |
✅ = the complete row is built in. ✕ = the complete combination was not documented on the reviewed public product surface; a project may implement part of the row or add it later. Review date: 2026-07-25. Exact source snapshots and row-by-row boundaries: competitive evidence.
That is the TOP-1 thesis: one source of truth, one local intelligence layer, every agent — without reducing your knowledge to a cloud memory blob.
enquire-mcp is the open-source backend for Karpathy-style LLM Wikis on top of the Obsidian vault you already own: knowledge that compounds, with every answer traceable to source.
npm install -g @oomkapwn/enquire-mcp
enquire-mcp serve --vault ~/Documents/Obsidian\ Vault
Drop into any MCP client:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "@oomkapwn/enquire-mcp", "serve", "--vault", "/path/to/vault"]
}
}
}
📂 Config templates and recipes in examples/ — Claude Desktop, Cursor, ChatGPT custom GPT (remote MCP over HTTP), plus a sample query set for the eval harness.
Don't want to hand-assemble config? Let the CLI print the exact snippet for your vault + client (non-destructive — it writes nothing). Since v3.11.6:
enquire-mcp configure --vault <path> # prints config for every client
enquire-mcp configure --vault <path> --client cursor # just one (claude-code|cursor|vscode|codex|windsurf|claude-desktop|http)
The output is honest about each client's install boundary: VS Code gets its official review-and-install URI, Claude Code and Codex get copy-and-run commands, and clients whose one-click flow only accepts Marketplace/Registry entries are labeled copy-only with the exact fallback config. The generated vault path and physical package entrypoint remain visible for review before anything is saved.
Want full hybrid power? Complete the hybrid preflight, then serve:
npm install -g @oomkapwn/enquire-mcp@3.12.0-rc.17 # exact prerelease package
enquire-mcp --version
# recommended: preview first, then explicitly apply the same package-coherent plan
enquire-mcp first-run --tier hybrid --client claude-desktop --vault <path>
enquire-mcp first-run --tier hybrid --client claude-desktop --vault <path> --apply
# manual equivalent below: choose this instead of first-run --apply, not in addition
enquire-mcp setup --vault <path> # caches embedder; builds FTS5 + embed-db
enquire-mcp install-model rerank-bge # caches the offline reranker
enquire-mcp doctor --tier hybrid --vault <path> # structural/runtime readiness
enquire-mcp configure --tier hybrid --client claude-desktop --vault <path>
enquire-mcp serve --vault <path> --persistent-index --enable-reranker --use-hnsw
Every connection now receives configuration-aware initialize.instructions: the recommended recall workflow, citation and freshness semantics, active write posture, and the rule that retrieved vault content is data rather than instructions. Clients that surface MCP server instructions can use that contract automatically. The copy-paste prompts below remain useful as an explicit user preference or for hosts that do not expose server instructions.
# Add the MCP server to your Claude Code config (one time)
claude mcp add obsidian -- npx -y @oomkapwn/enquire-mcp serve --vault ~/Documents/Obsidian\ Vault
Then in any Claude Code session:
You now have
obsidian_*tools that search and read my Obsidian vault — my long-term memory. Before answering questions about projects, decisions, people, or technical context, callobsidian_searchwith the relevant terms. Cite each fact with the source note (and[page: N]for PDFs). If you don't find a relevant note, say so — don't guess.
Prefer the ready-to-paste output of enquire-mcp configure --tier hybrid --client claude-desktop --vault <path>. examples/claude-desktop-hybrid.json is only a template; if used manually, replace both the executable and vault placeholders. Restart Claude Desktop, then:
You have my Obsidian vault wired up as searchable memory via
obsidian_*tools. Always checkobsidian_searchfirst when I ask about anything in my notes — meeting context, research, decisions, journal entries. Quote the source note path on every fact.
Run enquire-mcp configure --client cursor --vault <path> for the exact copy-only block, or drop examples/cursor-mcp.json at ~/.cursor/mcp.json and edit the vault path. Cursor's public one-click route is Marketplace-only, so enquire never prints an unverified vault-bearing cursor:// link. In your .cursorrules file or chat:
Before suggesting code that touches a topic I might have notes on (architecture decisions, API contracts, vendor evaluations), call
obsidian_searchfirst. Treat my Obsidian vault as authoritative context.
enquire-mcp configure --client vscode --vault <path>
Open the generated vscode:mcp/install?... URI. VS Code decodes the exact server name, command, arguments, and vault path into a native review prompt; approve only after checking them. The same output includes the .vscode/mcp.json block as a transparent copy-only fallback.
Follow examples/chatgpt-actions.md to expose serve-http via a tunnel with bearer auth. In your custom GPT's instructions:
You have read access to my Obsidian vault via the
obsidian_*tool family. Search before answering anything that might be in my notes; cite the source filepath on every claim.
enquire-mcp configure --client codex --vault <path>
Copy and run the generated codex mcp add ... -- ... command. The same output retains the equivalent [mcp_servers."obsidian"] TOML block so the installed command and durable config are both inspectable.
Same npx -y @oomkapwn/enquire-mcp serve --vault <path> command works for any MCP-compatible client. See the client's own MCP-config docs for where to drop the server entry, then use any of the prompts above.
Reusable agent rule (drop into any AGENTS.md / CLAUDE.md / .cursorrules so the agent knows when to reach for the vault):
When my question touches my own notes, decisions, projects, people, or research, search my Obsidian vault first via the
obsidian_*tools (start withobsidian_search) and cite the source note on every fact. Prefer enquire for conceptual / cross-language / "what did I say about X" recall; use plaingrep/ripgrepfor exact literal strings. If nothing relevant comes back, say so — don't guess.
[page: N] citationsobsidian_get_communities (GraphRAG-light)1 — Long-term memory for AI agents. Drop your Obsidian vault into any MCP-compatible agent (Claude Code, Claude Desktop, Cursor, ChatGPT, Codex, OpenClaw). The agent now has durable, semantic recall over every meeting note, journal entry, research log, and decision doc you've ever written — across sessions, models, and providers. Your knowledge isn't locked into one vendor's memory layer; it lives in plain markdown you own and can migrate freely.
2 — Personal knowledge base / second brain. Hybrid retrieval surfaces the right note for any phrasing, in any of 50+ languages. Ask in English about a Russian-language journal entry from 2 years ago, get the right hit. Wikilink graph-boost reranks notes that sit at the centre of your knowledge graph. GraphRAG-light surfaces topical communities — discover connections you forgot you made. PDFs blend into search with [page: N] citations so research papers and meeting transcripts become first-class memory.
3 — Agentic RAG / context engineering. obsidian_search exposes per-signal scores so the agent sees why each hit ranked. HyDE pre-rewrites vague queries into rich hypothetical answers before retrieval. Sub-question decomposition handles multi-hop questions ("how did our pricing strategy evolve and what was the customer reaction?") by breaking them into independent sub-queries, fusing results. The built-in eval harness (NDCG / Recall / MRR) lets you measure retrieval quality on your own queries instead of trusting vendor benchmarks.
Choose enquire-mcp when you want:
Clear scope: enquire-mcp is a headless MCP server / CLI for Markdown, Canvas, Bases, and PDF knowledge. Use exact-search tools alongside it for literal tokens; use the built-in HTTP transport when agents need remote access.
The product front door explains the cited-memory outcome, proof, client paths, and AI-readable resources. The complete auto-generated API reference documents every tool, prompt, and exported helper with full TSDoc (@param / @returns / @example). Both are rebuilt from source on every push to main via publish-docs.yml; historical deep TypeDoc URLs remain valid.
graph LR
Q[Query] --> S[obsidian_search]
S --> BM25[BM25 / FTS5]
S --> TFIDF[TF-IDF cosine]
S --> EMB[ML embeddings<br/>HNSW]
BM25 --> RRF{RRF fusion<br/>k=60}
TFIDF --> RRF
EMB --> RRF
RRF --> GB[Graph boost<br/>α × in-degree]
GB --> RR[BGE cross-encoder<br/>reranker]
RR --> R[Ranked hits<br/>per_signal observability]
obsidian_search auto-detects available signals and gracefully degrades. Wikilink graph-boost reranks top-K via 1-step personalised PageRank. Optional cross-encoder reranking re-scores top-N for +15.5 NDCG@10 measured. Every hit returns per_signal: { bm25, tfidf, embeddings } so you see WHY it ranked.
| Tier | Setup | What you get |
|---|---|---|
| 1 | serve --vault <path> | TF-IDF cosine (zero setup, instant) |
| 2 | + --persistent-index | + BM25 / FTS5 (indexed lexical retrieval) |
| 3 | + setup (downloads model + builds embed-db) | + multilingual ML embeddings |
| 4 | + --enable-reranker | + BGE cross-encoder (+15.5 NDCG@10 measured) |
| 5 | + --use-hnsw | + approximate nearest-neighbor retrieval with persisted HNSW |
| 6 | + --include-pdfs | + PDFs blended into all of the above |
| 7 | serve-http --bearer-token … | + remote MCP (Claude.ai web, ChatGPT, Cursor HTTP, mobile) |
46 production tools total: 34 always-on read tools (incl. the umbrella obsidian_search) + 4 opt-in read + 7 gated writes + 1 closed-loop feedback. Full reference: docs/api.md.
| Category | Tools |
|---|---|
| Search & retrieval | obsidian_search (umbrella, RRF-fused) · obsidian_hyde_search (HyDE-augmented, v3.1.0) · obsidian_search_text · obsidian_full_text_search · obsidian_semantic_search · obsidian_embeddings_search · obsidian_find_similar |
| Wikilinks & graph | obsidian_resolve_wikilink · obsidian_get_backlinks · obsidian_get_outbound_links · obsidian_get_note_neighbors · obsidian_get_unresolved_wikilinks · obsidian_find_path · obsidian_get_communities (v3.4.0, GraphRAG-light) |
| Frontmatter & Dataview | obsidian_frontmatter_get · obsidian_frontmatter_search · obsidian_dataview_query · obsidian_list_tags |
| Read & navigate | obsidian_read_note · obsidian_list_notes · obsidian_get_recent_edits · obsidian_stale_notes · obsidian_open_questions · obsidian_context_pack · obsidian_chat_thread_read · obsidian_open_in_ui · obsidian_stats |
| PDFs, Canvas & Bases | obsidian_read_pdf · obsidian_list_pdfs · obsidian_ocr_pdf · obsidian_read_canvas · obsidian_list_canvases · obsidian_list_bases (v3.2.0) · obsidian_read_base (v3.2.0) · obsidian_query_base (v3.2.0) |
Writes (gated by --enable-write) | obsidian_create_note · obsidian_append_to_note · obsidian_rename_note · obsidian_replace_in_notes · obsidian_archive_note · obsidian_frontmatter_set · obsidian_chat_thread_append |
| Diagnostic / lint | obsidian_lint_wiki · obsidian_paper_audit · obsidian_validate_note_proposal |
Feedback (opt-in via --feedback-weight) | obsidian_mark_useful (closed-loop: record which recalled notes helped; boosts them in future search) |
Plus 3 MCP resources (obsidian://vault/info, obsidian://note/{path}, obsidian://chunk/{n}/{path}) and 19 MCP prompts (summarize_recent_edits · review_tag · find_orphans · weekly_review · extract_todos · process_inbox · consolidate_tags · find_duplicates · lint_wiki · monthly_review · search_with_query_expansion · vault_synth · vault_wiki_compile · vault_lint_extended · vault_capture · vault_persona_search · vault_automation_setup · vault_research · vault_synthesis_page) for common vault workflows.
| Surface | Posture |
|---|---|
| Default | Read-only — --enable-write required for the 7 write tools |
| Least privilege | --disabled-tools / --enabled-tools expose a minimal surface (e.g. a read-only research agent gets only obsidian_search + obsidian_read_note) |
| Path safety | Realpath check on every read+write; symlinks-out-of-vault rejected |
| Privacy filter | Verified at FTS5 + embed-db + chunk resource paths; fail-closed on empty allow-/deny-lists |
| HTTP transport | Bearer auth (constant-time SHA-256 + timingSafeEqual), per-token rate-limit, strict CORS |
| Frontmatter | js-yaml@5 load (YAML 1.2 core schema, safe-by-default) — no code execution |
| Cache + index files | chmod 0600, parent dir 0700 |
| 1720 tests · 9 release-required CI checks · 7 branch-protected | Current verified release posture; the operational breakdown is pinned below. |
| CI | 9 release-required checks run on every PR: lint, test (22), test (24), smoke, audit, coverage, version-consistency, docs, and oia. Branch protection currently enforces 7 of them; docs and oia are release-required but unprotected (live-verified 2026-07-23). test-macos is the only continue-on-error advisory job. docker can fail the CI workflow but is unprotected; CodeQL runs two separate unprotected analyses via GitHub default setup. Before npm publish, release.yml re-verifies all 9 on the tagged SHA. |
| Coverage | Lines ≥86% · statements ≥82% · functions ≥75% · branches ≥74% (gated) |
| Releases | npm + GitHub release per tag · semver · signed build provenance (npm + Sigstore, SLSA Build L2; L3 generator on the roadmap) |
| Stability | v3.0+ semver-bound — every CLI flag, tool name, MCP resource, prompt, exported symbol is contract |
Full posture: SECURITY.md · Stability surface: STABILITY.md · Vulns: oomkapwn@gmail.com.
Need Obsidian installed? No. Reads .md + .canvas + .pdf directly. Works against any Obsidian-format vault.
Will it write to my vault? Not unless you pass --enable-write. All 7 write tools are gated; destructive ones support dry_run.
Data sent anywhere? Outbound downloads occur only on explicit acquisition commands: enquire-mcp setup, enquire-mcp build-embeddings, and enquire-mcp install-model may fetch ONNX weights from HuggingFace; enquire-mcp install-ocr-lang fetches a Tesseract language pack. Serve mode never makes outbound HTTP (enforced, not aspirational). Embeddings + reranker run on CPU locally.
Performance? It depends on vault size, hardware, model, and enabled retrieval layers. The public evidence includes a production report of 50–100ms BM25 top-10 at 1,771 chunks / 368 files plus a reproducible synthetic benchmark showing 37–103× FTS5 speedup over linear scan at 100–1,000 notes. Run the built-in eval and benchmark commands on your vault before setting a latency SLO; see benchmarks and the FTS5 implementation note.
Languages? The default embedder is paraphrase-multilingual-MiniLM-L12-v2 (50+ languages), validated end-to-end on Russian + English bilingual vaults. The default cross-encoder reranker is rerank-bge (English-only; the only catalog alias verified end-to-end); multilingual reranker aliases currently fail their transformers.js tokenizer compatibility check. CJK/Thai/Khmer tokenization uses Intl.Segmenter.
Run remotely? Yes — serve-http exposes the same server over Streamable HTTP. Front with Tailscale Funnel or Cloudflare Tunnel for HTTPS. Works with claude.ai web, ChatGPT custom GPT, Cursor HTTP mode, mobile MCP clients. See docs/http-transport.md.
v3.0.0 — stable channel. The v2.x retrieval roadmap is complete and the public surface is now semver-bound. Highlight reel:
v2.0 hybrid retrieval (BM25+TF-IDF+embeddings via RRF) · v2.6 remote MCP · v2.7-2.8 PDFs blended · v2.9 BGE reranker · v2.10 OCR · v2.11 doctor + setup · v2.12 eval harness · v2.13 HNSW · v2.14 stateful sessions · v2.15 late-chunking · v2.16 HNSW persistence · v2.17 int8 quantization · v3.8.0 stable · v3.8.7 HTTP transport hardening · v3.9.0 stable: OCR'd PDF watcher embed-sync, HNSW in-memory live update on file changes, R-10 adaptive HNSW refill (closes the >66% excluded under-return). · v3.10 stable: forgetting-aware freshness — age_days + stale flag + opt-in --recency-weight re-ranking + frontmatter-aware obsidian_search.
Channel: npm install @oomkapwn/enquire-mcp → latest stable (@latest = v3.11.x). Pre-release: npm install @oomkapwn/enquire-mcp@rc (the latest release candidate — see CHANGELOG.md). Full changelog: CHANGELOG.md · Forward plan: ROADMAP.md.
git clone https://github.com/oomkapwn/enquire-mcp.git
cd enquire-mcp && npm install
npm test # full suite (1720 tests)
npm run lint # zero warnings
npm run build # tsc → dist/
Issues, PRs, ideas welcome. For setup questions, bug reports, and private security routing, see SUPPORT.md.
MIT. Built by Alex (@OomkaBear). Named after Tim Berners-Lee's 1980 prototype of the WWW — the original hypertext system, before the web. The original spec was: you could ask the system anything. enquire-mcp brings that to your vault.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows