Obsidian-Intelligence

Obsidian-Intelligence

Obsidian Intelligence turns your vault into a Model Context Protocol server. Any MCP-enabled AI client (Claude Desktop, Claude Code, Cursor, OpenWebUI, Cline, Continue.dev, ChatGPT Desktop) can then search, analyze, and reason over your vault — without your notes ever leaving your machine.

Category
访问服务器

README

Obsidian Intelligence

Make your Obsidian vault a first-class knowledge source for any MCP-enabled AI assistant. Local, private, headless.

npm version npm downloads CI License: MIT Node Tests MCP

Your Obsidian vault is your most valuable knowledge base. But no AI assistant can read it — not without uploading your notes to some cloud service.

Obsidian Intelligence turns your vault into a Model Context Protocol server. Any MCP-enabled AI client (Claude Desktop, Claude Code, Cursor, OpenWebUI, Cline, Continue.dev, ChatGPT Desktop) can then search, analyze, and reason over your vault — without your notes ever leaving your machine.

┌─────────────────────────────────────────────────────────────┐
│  Your AI client (Claude Desktop / Code / Cursor / OpenWebUI)│
│                          ↕  MCP                             │
│              obsidian-intelligence (this tool)              │
│                          ↕                                  │
│         your vault  +  local SQLite index                   │
└─────────────────────────────────────────────────────────────┘

<p align="center"> <img src="docs/screenshots/terminal-status.png" alt="vault-intelligence status output" width="680"/> <br/> <em>The CLI at a glance — <code>vault-intelligence status</code> on the bundled test fixture vault.</em> </p>

<p align="center"> <img src="docs/screenshots/report.png" alt="HTML report with health score, engagement chart, tag cloud" width="680"/> <br/> <em>The self-contained HTML report (<code>vault-intelligence report</code>) — dark theme, Chart.js visualizations, health score, engagement buckets, tag cloud. Works offline.</em> </p>

Why this exists

The AI tooling ecosystem just converged on a shared standard: MCP. What was an Anthropic experiment six months ago is now the de-facto interface across Claude Desktop, Claude Code, Cursor, OpenWebUI, and a growing list of clients.

That means one MCP server, configured once, works everywhere. Set up obsidian-intelligence once in your favorite client's config, and from then on every chat, every coding agent, every workflow has structured access to your own knowledge base.

Imagine asking Claude Code in your editor:

"Which notes from my vault are relevant to what I'm building right now?" "Did I write something about database migrations? Search semantically." "Which dormant notes could I connect to this current project?"

Or asking Claude Desktop on a Sunday evening:

"Look at the notes I touched in the last 6 days and write me a weekly review prompt."

Or building an OpenWebUI agent that opens every conversation with "this question shows up in 4 of your older notes".

Each of these works without writing any code — once MCP is connected, your vault is part of the context.

What you get

13 MCP tools, ready to use

Tool What it does
vault_status Quick overview: note count, tags, links, indexes
vault_snapshot Full JSON snapshot for complex queries
find_orphans Notes with no connections
find_hubs Best-connected notes — the structural anchors
find_backlinks Who links to a note?
find_related Related notes via shared tags and links
get_tag_cloud Tag statistics
find_notes_by_tag All notes with a tag
engagement_stats Activity distribution + revival candidates
list_catalysts Open AI-generated reflection questions
search_content FTS5 full-text search with BM25 ranking, snippets
semantic_search Vector similarity — finds meaning, not just words
hybrid_search RRF-fused keyword + semantic — usually the best default

Each tool is available the moment your MCP client connects. The assistant decides which one to call.

Beyond MCP

  • CLI for cron, CI, scripts, your own pipelines
  • Self-contained HTML report with charts (engagement donut, tag cloud, hub ranking, health score) — one file you regenerate monthly
  • JSON snapshot export for downstream tooling
  • Watch mode for automatic re-indexing
  • CouchDB adapter for Obsidian LiveSync users
  • Optional document ingestion (obsidian-intelligence-docs, text/markdown/html — pdf/docx in v1.2)

The privacy story

Other RAG products say "upload your notes and we'll search them for you". We do the opposite: your notes stay where they are. The AI assistant comes to the vault, not the other way around.

What Where it runs
Indexing 100% local (SQLite)
Full-text search (FTS5) 100% local
Graph analysis 100% local
Semantic search (embeddings) Your choice: local Ollama, or Gemini free tier, or OpenAI
LLM enrichment Same choice
Catalysts (reflection questions) Same choice — sends only structural metadata, not note content
MCP server Local stdio subprocess of your AI client. No network ports, no daemon.

You can run the entire tool without an API key. With Ollama installed locally (ollama pull nomic-embed-text and any chat model), you get the full feature set including semantic search, fully air-gapped.

No telemetry. No phone-home. No update checks. When you npm install -g obsidian-intelligence, that's the first and last connection to anything I control.

Quick start

60 seconds: install and index

# Install globally
npm install -g obsidian-intelligence

# Index your vault
vault-intelligence index --vault /path/to/your/vault

# See what's there
vault-intelligence status
vault-intelligence graph orphans
vault-intelligence search "your query"
vault-intelligence report --open    # opens HTML report in browser

Or skip the install and run directly with npx:

VAULT_PATH=/path/to/your/vault npx obsidian-intelligence index
VAULT_PATH=/path/to/your/vault npx obsidian-intelligence status

No API key needed for any of that.

90 seconds: hook it into Claude Desktop

Add to claude_desktop_config.json (find it via Settings → Developer → Edit Config):

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": ["/usr/local/lib/node_modules/obsidian-intelligence/mcp-server.mjs"],
      "env": {
        "VAULT_PATH": "/Users/you/Documents/MyVault"
      }
    }
  }
}

Restart Claude Desktop. Now ask:

"What are my best-connected notes?" "Search my vault for anything about database migrations." "Find notes related to the one called 'Project X kickoff'."

Other MCP clients

The same MCP server config pattern works in Claude Code, Cursor, OpenWebUI, Cline, Continue.dev, and any other MCP-faehigen client. See docs/MCP_SETUP.md for client-specific instructions.

Adding semantic search

Semantic search needs embeddings. Three setups, pick whichever fits:

Local (Ollama, free, air-gapped):

# Install Ollama from https://ollama.com, then:
ollama pull nomic-embed-text

export EMBEDDINGS_PROVIDER=ollama
vault-intelligence embed run     # generates embeddings for all notes
vault-intelligence embed search "your query"

Cloud (Gemini, free tier):

export EMBEDDINGS_PROVIDER=gemini
export GEMINI_API_KEY=your-key
vault-intelligence embed run

Cloud (OpenAI):

export EMBEDDINGS_PROVIDER=openai
export LLM_API_KEY=sk-...
vault-intelligence embed run

After that, the semantic_search and hybrid_search MCP tools work in your AI client.

Configuration

All configuration is via environment variables, optionally in a .env file. See .env.example for the full list.

Minimal config (filesystem-only, no API keys)

VAULT_PATH=/path/to/your/vault

That's it. Indexing, graph queries, FTS search, engagement, and HTML reports all work.

Provider matrix

Feature Filesystem Ollama (local) Gemini (free) OpenAI
Indexing ✓ ✓ ✓ ✓
Graph queries ✓ ✓ ✓ ✓
Full-text search ✓ ✓ ✓ ✓
Engagement tracking ✓ ✓ ✓ ✓
HTML reports ✓ ✓ ✓ ✓
Semantic search — ✓ ✓ ✓
Hybrid search (RRF) partial* ✓ ✓ ✓
LLM enrichment — ✓ ✓ ✓
Catalyst questions — ✓ ✓ ✓
MCP server ✓ ✓ ✓ ✓

*Hybrid search falls back gracefully to keyword-only when no embeddings are available.

CLI reference

vault-intelligence index [--force] [--vault <path>]    Full index
vault-intelligence index --rebuild-fts                 Rebuild FTS index
vault-intelligence status                              Show statistics
vault-intelligence test                                Test connections
vault-intelligence report [--output <file>] [--open]   HTML report

vault-intelligence search <query> [--hybrid] [--limit N] [--folder p] [--tag t]
vault-intelligence embed run [limit] [batch_size]      Generate embeddings
vault-intelligence embed similar <note-id>             Find similar notes
vault-intelligence embed search <query>                Semantic search
vault-intelligence enrich run [limit] [delay_ms]       LLM enrichment
vault-intelligence enrich stats                        Enrichment stats

vault-intelligence graph orphans                       Notes without connections
vault-intelligence graph hubs [n]                      Top connected notes
vault-intelligence graph backlinks <note>              Incoming links
vault-intelligence graph related <note>                Related via tags+links
vault-intelligence graph tags [filter]                 Tag cloud

vault-intelligence engagement stats                    Activity distribution
vault-intelligence catalyst generate [n]               Generate AI questions
vault-intelligence proactive [summary|active|revival]  What to look at now
vault-intelligence snapshot [path]                     JSON snapshot
vault-intelligence watch                               Watch mode

Run vault-intelligence --help for the full list.

How it compares

Smart Connections RAG-as-a-Service Custom Python script Obsidian Intelligence
Lives where? Inside Obsidian (plugin) Cloud Your machine Your machine
MCP-native? No No No (you'd build it) Yes (13 tools)
Multi-client? Obsidian only Vendor-locked One-off Any MCP client
Local-by-default? Partial No Yes Yes
Graph + FTS + Semantic + Hybrid? Semantic only Varies Build it yourself All four
Headless? No N/A Yes Yes
Open source? Yes Mostly no Yours Yes (MIT)
Telemetry? Optional Yes No No

Requirements

  • Node.js >= 18
  • An Obsidian vault (or a CouchDB database from Obsidian LiveSync)
  • Optional: an LLM provider for catalysts/enrichment (Ollama, OpenAI-compatible API, or Gemini)
  • Optional: an embeddings provider for semantic search (same options)

Documentation

Contributing

Contributions welcome — see CONTRIBUTING.md. Bug reports, feature requests, and questions all live in GitHub Issues.

Acknowledgements

Built on the shoulders of:

And of course the Obsidian community, whose plugins, vaults, and conversations shaped the design.

License

MIT

Trademarks

This project is an independent, community-built tool. It is not affiliated with, endorsed by, or sponsored by Obsidian.md or Dynalist Inc. "Obsidian" is a trademark of its respective owner and is used here nominatively to describe compatibility. All other trademarks are the property of their respective owners.


Built by Thomas Winkler. Originally a personal tool for a 6,000-note vault — now hopefully useful to you too.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选