Getting Started
Prerequisites
Section titled “Prerequisites”- An MCP-compatible client — Claude Code, Codex CLI, Gemini CLI, GitHub Copilot, Cursor, Windsurf, or any other MCP host
- An Obsidian vault (or any directory of Markdown files) — see Vault Structure for the expected layout
- Optional for worker delegation:
- Ollama running locally — pull a model with
ollama pull qwen2.5-coder:7b - OpenRouter account — create an API key at openrouter.ai/keys (free tier available)
- Ollama running locally — pull a model with
Install
Section titled “Install”One command. No cloning, no venv, no config files.
claude mcp add -s user hive -- uvx --upgrade hive-vaultAdd to ~/.codex/config.toml:
[mcp_servers.hive-vault]command = "uvx"args = ["--upgrade", "hive-vault"]gemini mcp add -s user hive-vault uvx -- --upgrade hive-vaultAdd to .vscode/mcp.json in your project:
{ "servers": { "hive-vault": { "command": "uvx", "args": ["--upgrade", "hive-vault"] } }}The --upgrade flag ensures you always get the latest version from PyPI on each session start. uvx handles the Python environment automatically.
First Query
Section titled “First Query”Once registered, your AI assistant can use Hive tools. Try asking:
“Use vault_list to see my vault”
The assistant will call vault_list() and list all projects with file counts and available shortcuts.
Configure Vault Path
Section titled “Configure Vault Path”By default, Hive looks for your vault at ~/Projects/knowledge. If this path doesn’t exist, vault tools will return a helpful error with setup instructions — the server still starts, so worker tools remain available.
To point Hive to your vault:
claude mcp add -s user hive -e VAULT_PATH=/path/to/your/vault -- uvx --upgrade hive-vault[mcp_servers.hive-vault]command = "uvx"args = ["--upgrade", "hive-vault"]
[mcp_servers.hive-vault.env]VAULT_PATH = "/path/to/your/vault"gemini mcp add -s user -e VAULT_PATH=/path/to/your/vault hive-vault uvx -- --upgrade hive-vault{ "servers": { "hive-vault": { "command": "uvx", "args": ["--upgrade", "hive-vault"], "env": { "VAULT_PATH": "/path/to/your/vault" } } }}Configure Worker (Optional)
Section titled “Configure Worker (Optional)”To enable task delegation to cheaper models:
claude mcp add -s user hive \ -e VAULT_PATH=/path/to/your/vault \ -e HIVE_OLLAMA_ENDPOINT=http://your-ollama:11434 \ -e OPENROUTER_API_KEY=sk-or-... \ -- uvx --upgrade hive-vault[mcp_servers.hive-vault]command = "uvx"args = ["--upgrade", "hive-vault"]
[mcp_servers.hive-vault.env]VAULT_PATH = "/path/to/your/vault"HIVE_OLLAMA_ENDPOINT = "http://your-ollama:11434"OPENROUTER_API_KEY = "sk-or-..."gemini mcp add -s user \ -e VAULT_PATH=/path/to/your/vault \ -e HIVE_OLLAMA_ENDPOINT=http://your-ollama:11434 \ -e OPENROUTER_API_KEY=sk-or-... \ hive-vault uvx -- --upgrade hive-vault{ "servers": { "hive-vault": { "command": "uvx", "args": ["--upgrade", "hive-vault"], "env": { "VAULT_PATH": "/path/to/your/vault", "HIVE_OLLAMA_ENDPOINT": "http://your-ollama:11434", "OPENROUTER_API_KEY": "sk-or-..." } } }}See Configuration for all environment variables.
Verify
Section titled “Verify”Run a health check:
“Use vault_health to check my vault”
You should see project counts, file counts, and staleness metrics for each project in your vault.
Next Steps
Section titled “Next Steps”- Use Cases — real-world workflows with Hive
- Configuration — full environment variable reference
- Vault Tools — all vault tools
- Worker Tools — task delegation and routing
- Vault Structure — how to organize your vault
- Troubleshooting — common issues and fixes