Provides semantic search, tag-based filtering, and document retrieval tools for Obsidian vaults, allowing AI agents to find and access notes by meaning and metadata.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Obsidian RAG MCP ServerFind notes related to database connection issues in my vault"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Obsidian RAG MCP Server
Semantic search for your Obsidian vault, exposed as an MCP server for Claude Code integration.
What This Does
Turn your Obsidian vault into a searchable knowledge base that AI assistants can query semantically. Instead of keyword matching, find documents by meaning.
Example:
"Find RCAs where database timeouts caused customer-facing issues"
Returns relevant RCA documents even if they use terms like "CosmosDB latency", "connection pool exhaustion", or "query timeout" β not just exact keyword matches.
Features
π Semantic Search: Find documents by meaning, not just keywords
π·οΈ Tag-Aware: Filter searches by Obsidian tags
π Metadata Extraction: Leverages frontmatter and document structure
π MCP Integration: Works directly with Claude Code
π Local-First: Your data stays on your machine (only embeddings sent to OpenAI)
β‘ Fast: Sub-second queries on 100+ document vaults
Quick Start
Prerequisites
Python 3.11+
OpenAI API key (for embeddings)
An Obsidian vault (or use the included sample vault)
Installation
Index Your Vault
Test It
Connect to Claude Code
Add to your Claude Code MCP configuration:
MCP Tools
Once connected, Claude Code has access to these tools:
Tool | Description |
| Semantic search across all vault content |
| Search filtered by Obsidian tags |
| Find notes related to a given note |
| Retrieve full content of a specific note |
| List recently modified notes |
Sample Vault
The vault/ directory contains sample RCA documents for testing. To regenerate:
Architecture
See docs/ARCHITECTURE.md for detailed system design.
Development
Configuration
Environment variables:
Variable | Required | Description |
| Yes | OpenAI API key for embeddings |
| No | Default vault path |
| No | ChromaDB storage location |
Cost
Embedding costs with OpenAI text-embedding-3-small:
~100 notes (avg 2000 tokens each): ~$0.02 per full reindex
Queries: ~$0.00001 per query
License
MIT