Obsidian RAG CLI - Ingest and Chat with your notes
Project description
Obsidian Vault RAG
Obsidian Vault RAG allows you to import your Obsidian markdown vault into a local LanceDB vector database and expose it via the Model Context Protocol (MCP) for AI agents like Claude.
Features
- Local RAG: No data leaves your machine; embeddings are stored locally in LanceDB.
- Smart Ingestion: Splits notes into chunks and generates embeddings.
- PDF Support: Converts research papers and PDFs to Markdown using Docling.
- Claude Integration: Connect your vault directly to Claude Desktop.
Installation
Clone the repository and install the package:
# Using pip
pip install -e .
# OR using uv (recommended for speed)
uv pip install .
Quick Start
- Configure: Run the setup wizard to link your vault.
obsidian config - Ingest: Index your notes into the database.
obsidian lance - Serve: Start the MCP server (or connect Claude, see below).
obsidian serve
Manual File Creation
To manually add files to your vault, you can use an Obsidian Template to automatically insert the required metadata.
Create a template file in your Obsidian templates folder with the following content:
---
id: {{date:YYYYMMDDHHmm}}
title: {{title}}
authors: []
type: note
status: active
created: {{date:YYYY-MM-DD}}
tags: []
source: "personal"
---
# {{title}}
Your content here...
Documentation
- Usage Guide: Detailed commands for ingestion, PDF conversion, and serving.
- Configuration: Settings, environment variables, and logging.
Connect to Claude Desktop
To chat with your notes in Claude Desktop, add the server to your configuration file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following entry (replace /path/to/your/python with your actual Python executable path):
{
"mcpServers": {
"obsidian-vault": {
"command": "/absolute/path/to/project/.venv/bin/python3",
"args": [
"-m",
"obsidian.cli",
"serve"
]
}
}
}
Tip: You can find your python path by running
which python(Mac/Linux) orwhere python(Windows) inside your project environment.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obsidian_vault_rag-0.1.0.tar.gz.
File metadata
- Download URL: obsidian_vault_rag-0.1.0.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260128","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce06b087f40a79ae8ac7f85197e973c047ca28640d73a9785f0ae04ac7f9731d
|
|
| MD5 |
31c6dec0c34574e53d4a2a2563f825e6
|
|
| BLAKE2b-256 |
4b1f081d9ccaa50d280763e76392768a22f802b9cc7629444971b1ad381a48c3
|
File details
Details for the file obsidian_vault_rag-0.1.0-py3-none-any.whl.
File metadata
- Download URL: obsidian_vault_rag-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"openSUSE Tumbleweed","version":"20260128","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48d1f171201d1a8f8cc4373dd6810b35fd09bd8b876d1ba6fac342ed4387aaf5
|
|
| MD5 |
e1717afea87ce0763e32ab17c731dc45
|
|
| BLAKE2b-256 |
24b87893aa442db8c1a886b6cda372761a90503cf246992095f237991bc613cd
|