Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Analogy - RAG in your vault

liaocaoxuezheliaocaoxuezhe65 downloads

Search your vault semantically with local vector embeddings and expose RAG search to MCP clients.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates12

Analogy adds local semantic search to Obsidian and exposes your indexed vault to MCP clients for retrieval-augmented generation.

The plugin is desktop-only because it uses Node.js APIs, starts a local ChromaDB process, and loads local embedding models.

Features

  • Index Markdown notes into local vector chunks.
  • Search the current vault semantically from the Analogy side pane.
  • Exclude folders or files from the local index.
  • Run ChromaDB locally on 127.0.0.1.
  • Use the companion MCP server to let tools such as Claude Code or Cursor search approved vault content.

Install

Community plugin release

Download the release assets from GitHub and copy them into:

<Vault>/.obsidian/plugins/analogy-rag-in-your-vault/

Required release assets:

  • main.js
  • manifest.json
  • styles.css

Enable the plugin in Obsidian Settings -> Community plugins.

Local RAG runtime

Obsidian only installs the three plugin assets above. Open Analogy settings and use the Local RAG runtime installer to install the embedding runtime in the plugin folder. Analogy also creates a small runtime package.json, installs the embedding runtime, and starts ChromaDB automatically when possible.

If automatic installation fails, run the setup command inside the installed plugin folder:

npm run setup:local

If you need the companion MCP server files too, download the full runtime zip from the GitHub release.

Usage

  1. Open Obsidian and enable Analogy.
  2. Click the Analogy ribbon icon to open the side pane.
  3. Open Settings -> Analogy - RAG in your vault.
  4. Verify that ChromaDB and the embedding model show as ready.
  5. Click Continue index or Rebuild index.
  6. Search your vault from the Analogy pane, or connect an MCP client to the bundled MCP server.

Privacy and data flow

  • Your vector index is stored locally in the plugin folder.
  • ChromaDB listens on 127.0.0.1 by default.
  • Markdown content is read from the current vault for indexing.
  • Embedding model files may be downloaded from the configured model host, which defaults to https://hf-mirror.com/.
  • Optional license validation may connect to your configured license server. License validation sends the license key, plugin version, a local device identifier, and a vault identifier. The plugin caches the license key locally so it can silently refresh the license about every 7 days. It does not upload note contents for license validation.
  • MCP clients can access search snippets only when you explicitly configure and run the MCP server.
  • Use ANALOGY_ALLOWED_PATHS to restrict which vault paths the MCP server can return.

Development

npm install
npm run dev

Build production assets:

npm run build

Prepare release assets:

npm run release:prepare

The release tag must exactly match manifest.json version.

Repository layout

  • src/ - Obsidian plugin source.
  • mcp-server/ - Companion MCP server source.
  • scripts/ - Setup helpers such as model download.
  • .obsidian/ - Local development vault, ignored by the standalone plugin repo.

License

Apache-2.0

HealthExcellent
ReviewRisks
About
Index your vault and retrieve notes relevant to queries to build a local knowledge base. Generate context-aware answers or concise summaries with a connected language model that reference your notes.
AISearchResearch
Details
Current version
1.1.2
Last updated
Yesterday
Created
2 weeks ago
Updates
12 releases
Downloads
65
Compatible with
Obsidian 1.12.7+
Platforms
Desktop only
License
Apache-2.0
Report bugRequest featureReport plugin
Sponsor
Support
Author
liaocaoxuezheliaocaoxuezheliaocaoxuezhe
liaocaoxuezhe.com
GitHubliaocaoxuezhe
Xliaocaoxuezhe
  1. Community
  2. Plugins
  3. AI
  4. Analogy - RAG in your vault

Related plugins

Smart Lookup

Semantic search for your vault. Ask in natural language, find notes by meaning when exact words fail, preview matching notes, and turn forgotten ideas into links, context, and next steps.

Smart Connections

Find related notes and excerpts while writing. Your link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Khoj

An AI personal assistant for your digital brain.

Citations

Automatically search and insert citations from a Zotero library.

Semantic Notes Vault MCP

Give Claude Desktop and other AI assistants semantic access to your notes through a built-in Model Context Protocol (MCP) server.

InfraNodus AI Graph View

Interactive 3D graph view: text analysis, topic modeling, gap detection, and AI.

Gemini Helper

AI-powered assistant using Google Gemini with File Search RAG capabilities.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Copilot

Your AI Copilot: Chat with Your Second Brain, Learn Faster, Work Smarter.