VaultMind
Enables semantic search and retrieval of relevant note sections from an Obsidian vault, reading full notes, writing new notes with tags, and syncing or re-indexing vault changes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
VaultMind
A local, privacy-first MCP (Model Context Protocol) server that connects your Obsidian vault to any MCP-compatible AI assistant (Claude, Cursor, etc.) via semantic search. Ask questions and the AI retrieves the most relevant note sections from your vault automatically — no API keys, no cloud, fully offline.
How it works
On startup, all
.mdfiles in your vault are chunked by heading and sizeEach chunk is embedded using
all-MiniLM-L6-v2(runs fully locally via sentence-transformers)Embeddings are stored in a local ChromaDB vector database
Claude searches your vault semantically, retrieves full note content, writes new notes, and syncs changes
A file watcher automatically re-indexes notes when you edit them in Obsidian
Related MCP server: Obsidian MCP Assistant
Requirements
Python 3.12+
uv package manager
Setup
1. Install dependencies
cd VaultMind
uv sync2. Configure your vault path
Edit .env:
VAULT_PATH=C:/Users/yourname/path/to/your/obsidian/vault3. Configure Claude Desktop
Open %APPDATA%\Claude\claude_desktop_config.json and add:
{
"mcpServers": {
"vaultmind": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\yourname\\OneDrive\\Desktop\\VaultMind-py",
"run",
"python",
"main.py"
]
}
}
}Replace the --directory value with the actual path to this project.
4. Restart Claude Desktop
On first launch, all-MiniLM-L6-v2 (~80MB) is downloaded from HuggingFace automatically. Background indexing starts immediately — wait ~1-2 minutes before searching.
Configuration
All options are set in .env:
Variable | Default | Description |
| (required) | Absolute path to your Obsidian vault |
|
| Where ChromaDB stores its data |
|
| Sentence-transformers model name |
|
| Number of results returned per search |
|
| Maximum characters per chunk (~400 tokens) |
|
| Overlap between consecutive chunks |
MCP Tools
Tool | Description |
| Semantic search across all notes |
| Get the full content of a note |
| Write a new note and index it immediately |
| Re-index all notes (use after bulk external changes) |
Re-indexing
The file watcher handles individual changes automatically. For a full rebuild:
Delete the
chroma_db/directoryRestart Claude Desktop
Project structure
VaultMind-py/
├── main.py # MCP server entry point and tool definitions
├── vaultmind/
│ ├── config.py # Configuration loaded from .env
│ ├── core/
│ │ └── models.py # Chunk and SearchResult dataclasses
│ ├── infrastructure/
│ │ ├── chunker.py # Splits markdown by heading and size
│ │ ├── embedder.py # sentence-transformers wrapper
│ │ ├── store.py # ChromaDB read/write operations
│ │ ├── repository.py # Vault file I/O and note writing
│ │ └── watcher.py # File system monitor for live re-indexing
│ └── services/
│ └── indexer.py # Orchestrates chunking, embedding, and storing
├── .env # Your local config (not committed)
├── .env.example # Config template
└── pyproject.tomlContributors
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Personal wiki and memory layer for AI assistants. Persistent, structured memory across sessions.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables semantic search and retrieval over an Obsidian vault using local or API-based embeddings, allowing AI assistants to find notes by meaning, get related content, and pull context during conversations.17MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI-powered chat and file operations on Obsidian vaults with local indexing, hybrid search, and MCP access.-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to search, read, create, update, and delete notes in a local Obsidian vault through hybrid semantic and lexical retrieval, with all embedding and vector storage running locally.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to file notes into a self-hosted Obsidian vault and retrieve them later through structured and semantic search over plain Markdown.MIT