Unified MCP server for AI-assisted development — on-demand Obsidian vault access + worker delegation
Project description
hive-vault
Your AI coding assistant forgets everything between sessions. Hive fixes that.
Hive is an MCP server that connects your AI assistant to an Obsidian vault. Instead of loading everything upfront, it queries only what's needed — on demand.
| Metric | Without Hive | With Hive |
|---|---|---|
| Context loaded per session | ~800 lines (static) | ~50 lines (on demand) |
| Token cost for context | 100% every session | 6% average per query |
| Knowledge retained between sessions | 0% | 100% (in vault) |
Measured on a real vault with 19 projects, 200+ files. See benchmarks.
Quick Start
# Claude Code
claude mcp add -s user hive -- uvx --upgrade hive-vault
# Gemini CLI
gemini mcp add -s user hive-vault uvx -- --upgrade hive-vault
For Codex CLI, GitHub Copilot, Cursor, Windsurf, and other clients, see Getting Started.
Then ask your assistant: "Use vault_list to see my vault"
Tools
| Tool | What it does |
|---|---|
vault_query |
Load project context, tasks, roadmap, lessons — or any file by path |
vault_search |
Full-text search with metadata filters, regex, ranked results, recent changes |
vault_list |
Browse projects and files with glob filtering |
vault_health |
Health metrics, drift detection, usage stats |
vault_write |
Create, append, or replace vault files with auto git commit |
vault_patch |
Surgical find-and-replace with auto git commit |
capture_lesson |
Capture lessons inline or batch-extract from text via worker |
session_briefing |
Tasks + lessons + git log + health in one call |
delegate_task |
Route tasks to cheaper models or summarize vault files |
worker_status |
Budget, connectivity, available models |
Plus 5 resources and 4 prompts for guided workflows.
Architecture
MCP Host (Claude Code, Gemini CLI, Codex CLI, Cursor, ...)
└── hive-vault (MCP server, stdio)
├── Vault Tools (7) ── Obsidian vault (Markdown + YAML frontmatter)
├── Session Tools (1) ── Adaptive context assembly
└── Worker Tools (2) ── Ollama (free) → OpenRouter free → paid ($1/mo cap) → reject
Documentation
Full documentation at mlorentedev.github.io/hive:
- Getting Started — install for all MCP clients
- Configuration — all 16 environment variables
- Vault Structure — how to organize your vault
- Use Cases — real-world workflows
- Architecture — module map and design decisions
- Troubleshooting — common issues and fixes
Contributing
See CONTRIBUTING.md for setup and PR workflow.
git clone https://github.com/mlorentedev/hive.git && cd hive
make install # create venv + install deps
make check # lint + typecheck + test (337 tests, 92% coverage)
License
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 hive_vault-1.11.1.tar.gz.
File metadata
- Download URL: hive_vault-1.11.1.tar.gz
- Upload date:
- Size: 246.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb8ddfdc41d6d813c52e922895b91750c44d3a8293b83ddece080a409e18093
|
|
| MD5 |
5a5bd89054bc85b5fdd221bc3846461d
|
|
| BLAKE2b-256 |
233011162786b7987b290c89a634124971777a588042577b157542f68a3181ff
|
Provenance
The following attestation bundles were made for hive_vault-1.11.1.tar.gz:
Publisher:
release.yml on mlorentedev/hive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hive_vault-1.11.1.tar.gz -
Subject digest:
8eb8ddfdc41d6d813c52e922895b91750c44d3a8293b83ddece080a409e18093 - Sigstore transparency entry: 1088446527
- Sigstore integration time:
-
Permalink:
mlorentedev/hive@20e2b7b7972ea96d8a2ab8327a9e6a1770637ae2 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/mlorentedev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@20e2b7b7972ea96d8a2ab8327a9e6a1770637ae2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hive_vault-1.11.1-py3-none-any.whl.
File metadata
- Download URL: hive_vault-1.11.1-py3-none-any.whl
- Upload date:
- Size: 39.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d30cbadc3543f7464bd696e848fc3db4e11c6c018308a83c84f6399f3d74bea8
|
|
| MD5 |
54a8cf75b242969aa3a7f82d969da9dc
|
|
| BLAKE2b-256 |
cab890e5da82fa067251350d7869afc54c4f0ef513f6895bf2c29947581bdf1f
|
Provenance
The following attestation bundles were made for hive_vault-1.11.1-py3-none-any.whl:
Publisher:
release.yml on mlorentedev/hive
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hive_vault-1.11.1-py3-none-any.whl -
Subject digest:
d30cbadc3543f7464bd696e848fc3db4e11c6c018308a83c84f6399f3d74bea8 - Sigstore transparency entry: 1088446551
- Sigstore integration time:
-
Permalink:
mlorentedev/hive@20e2b7b7972ea96d8a2ab8327a9e6a1770637ae2 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/mlorentedev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@20e2b7b7972ea96d8a2ab8327a9e6a1770637ae2 -
Trigger Event:
push
-
Statement type: