Skip to main content

Obsidian RAG CLI - Ingest and Chat with your notes

Project description

Obsidian Vault RAG

Python 3.10+ License: MIT MCP Compatible CI Code style: ruff PyPI version Downloads

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

  1. Configure: Run the setup wizard to link your vault.
    obsidian config
    
  2. Ingest: Index your notes into the database.
    obsidian lance
    
  3. 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) or where python (Windows) inside your project environment.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obsidian_vault_rag-0.1.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obsidian_vault_rag-0.1.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

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

Hashes for obsidian_vault_rag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce06b087f40a79ae8ac7f85197e973c047ca28640d73a9785f0ae04ac7f9731d
MD5 31c6dec0c34574e53d4a2a2563f825e6
BLAKE2b-256 4b1f081d9ccaa50d280763e76392768a22f802b9cc7629444971b1ad381a48c3

See more details on using hashes here.

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

Hashes for obsidian_vault_rag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48d1f171201d1a8f8cc4373dd6810b35fd09bd8b876d1ba6fac342ed4387aaf5
MD5 e1717afea87ce0763e32ab17c731dc45
BLAKE2b-256 24b87893aa442db8c1a886b6cda372761a90503cf246992095f237991bc613cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page