Skip to main content

Unified MCP server for AI-assisted development — on-demand Obsidian vault access + worker delegation

Project description

hive-vault

CI codecov PyPI Python 3.12+ Docs License: MIT

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

Hive runs without a vault — vault tools return a friendly error until VAULT_PATH is set, so you can install first and configure later.

# Minimal — uses default vault path ~/Projects/knowledge
claude mcp add -s user hive -- uvx --upgrade hive-vault

# With a custom vault path
claude mcp add -s user hive -e VAULT_PATH=$HOME/path/to/vault -- uvx --upgrade hive-vault

# Gemini CLI
gemini mcp add -s user -e VAULT_PATH=$HOME/path/to/vault hive-vault uvx -- --upgrade hive-vault

Default vault path: ~/Projects/knowledge. Override with VAULT_PATH (or HIVE_VAULT_PATH) as shown above.

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:

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 (423 tests, 91% coverage)

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

hive_vault-1.12.9.tar.gz (274.8 kB view details)

Uploaded Source

Built Distribution

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

hive_vault-1.12.9-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file hive_vault-1.12.9.tar.gz.

File metadata

  • Download URL: hive_vault-1.12.9.tar.gz
  • Upload date:
  • Size: 274.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hive_vault-1.12.9.tar.gz
Algorithm Hash digest
SHA256 2834009452296c0d8d12def7530ebeb0bfd2b10aa3670c193311d08d964e3f5b
MD5 537a32599a8232b44d8f18cf518c9e95
BLAKE2b-256 ed38ed86f9e322b125a195fd796563ba9f8bdd1d0a5f93f800c1b463870854c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hive_vault-1.12.9.tar.gz:

Publisher: release.yml on mlorentedev/hive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hive_vault-1.12.9-py3-none-any.whl.

File metadata

  • Download URL: hive_vault-1.12.9-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hive_vault-1.12.9-py3-none-any.whl
Algorithm Hash digest
SHA256 99dc5ed0e5cecfc6d1bd513660f86c460eddf62685ec950d2924e4907c10355a
MD5 302fc2838982aaccfaa3a3d49dcbe126
BLAKE2b-256 716de4695f6436ee79ce4c4aabaa970c16364f8aaf28df050bab6c58c9a8af8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hive_vault-1.12.9-py3-none-any.whl:

Publisher: release.yml on mlorentedev/hive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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