Something like this project (see Rafal Wilinski’s tweet) but via LM Studio (private; offline) for my Obsidian vault.
Rafal’s project:
A Model Context Protocol (MCP) server that enables semantic search and RAG (Retrieval Augmented Generation) over your Apple Notes.
Building blocks
- embedding model e.g. SentenceTransformers or SONAR
- vector lookup e.g. via FAISS but probably there is a hyperoptimized tool
- want this to run on Metal
- interface with LM Studio (or whatever local LM app; could fall back to Ollama if impl. simpler)
- LM Studio API docs
- this Reddit thread might be useful (OP learns there is an API)
- interface with Obsidian
- see the Obsidian Developer Docs
Existing Projects
Looks like someone else is also having this idea, but implementing it via the Model Context Protocol that Anthropic provides (for Claude).
Look at this post Claude MCP for Obsidian using Rest API on the Obsidian developer forum.
I don’t like this because it’s specific to Claude (or is it?) using the Model Context Protocol.
Have a look at Model Context Protocol. It already implements support for Obsidian