HiveMind MCP
Persistent swarm memory through Obsidian — powered by your preferred LLM providers, gated by a GitHub Sponsors subscription.
Created by HaChazal (Chaz Leland Hamm) — Metanoia Unlimited LLC. This is the memory layer of the LeviathanTalon swarm. Every agent, every conversation, every decision lives in your Obsidian vault and is recalled semantically — across any provider you already pay for.
Why this exists
AI agents forget. HiveMind MCP makes them remember — permanently, locally, in your own Obsidian vault, with semantic recall across all your preferred LLM providers (OpenAI, Anthropic, Gemini, Grok, DeepSeek, Mistral, Cohere, Cerebras, Together, OpenRouter, Braintrust) routed through the Leviathan Key Rotator so you never burn a single key dry.
What it does
- Persistent memory — reads/writes
HiveMind.mdand the full vault (journals, entities, decisions) through Obsidian. - Semantic recall — embeddings + cosine similarity, not just keyword grep. Ask "what did we decide about the video pipeline?" and get the actual decision, even if the words don't match.
- Provider-agnostic — one interface, your preferred providers, key-rotated and budget-capped.
- Subscription-gated — a GitHub Sponsors subscription unlocks the paid provider tier. Free tier works fully local (Ollama) with no API costs.
Credit
This project is the work of HaChazal (Chaz Leland Hamm), Principal Operator of the LeviathanTalon swarm, founder of Metanoia Unlimited LLC. The HiveMind vault architecture, the key rotator, the swarm memory protocol, and the Obsidian integration are all his design. If you use this, star the repo and follow HaChazal — the swarm runs on community.
Install
pip install leviathan-hivemind-mcp
The distribution is leviathan-hivemind-mcp on PyPI; the command stays hivemind-mcp. Zero-config launch from anywhere (auto-downloads on first use):
uvx --from leviathan-hivemind-mcp hivemind-mcp
Or clone and run from source:
git clone https://github.com/chazam41892-gif/leviathan-hivemind-mcp
cd leviathan-hivemind-mcp
pip install -e .
Configure
Set your vault and provider keys — or drop them into the unified
~/.leviathan/HiveMind/.obsidian/HiveMind.env, which every HiveMind MCP
server loads automatically (front-end ↔ back-end):
export HIVEMIND_VAULT=~/.leviathan/HiveMind # your Obsidian vault
export HIVEMIND_OWNER=1 # owner mode: skip subscription gate
export LEVIATHAN_KEY_OPENAI_1=sk-... # key rotator format
export LEVIATHAN_KEY_ANTHROPIC_1=sk-ant-...
export LEVIATHAN_BUDGET_OPENAI=10.0 # optional budget caps
Run
hivemind-mcp
Register it in your MCP client (Claude Desktop, Cursor, OpenCode, etc.):
{
"mcpServers": {
"hivemind": {
"command": "hivemind-mcp",
"args": []
}
}
}
Tools
| Tool | Description |
|---|---|
read_shared_memory |
Read HiveMind.md shared swarm state |
read_soul |
Read SOUL.md — swarm identity + doctrine |
append_to_journal |
Append a memory to an agent's journal (append-only) |
recall |
Keyword or semantic recall across the vault |
semantic_recall |
Embedding-based recall (needs a provider or local model) |
read_entity / upsert_entity |
Read / layer canonical entities |
read_agent_identity |
Read an agent's identity.md |
read_openai_hivemind |
Read the OpenAI/Codex shared operating memory |
record_openai_highlight |
Write a resumable project capsule → 4 replicas |
chat |
Ask any preferred provider (gated by subscription) |
list_providers |
Show configured providers + key health |
License
MIT — but the credit is HaChazal's. Star the repo. Follow the swarm.
Built by HaChazal — Metanoia Unlimited. The swarm remembers.
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 leviathan_hivemind_mcp-0.2.0.tar.gz.
File metadata
- Download URL: leviathan_hivemind_mcp-0.2.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33448ff71f082abd56f13647c9f6f70083931a3940c2625f693fbff0b167f06a
|
|
| MD5 |
b070c1bbea926482f014fdfa1c9c4121
|
|
| BLAKE2b-256 |
80b4c1bacbcb82cdc938882ac413f9e095962e7bd4986131ba5173161a055a29
|
File details
Details for the file leviathan_hivemind_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: leviathan_hivemind_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9232f482fa97eea38ee1caee75712e5de794f540b2003335415b9e341fdd4328
|
|
| MD5 |
7bde3b9051c53460e3981b9452a74c7c
|
|
| BLAKE2b-256 |
67837ee1d1bdb753e2dbf75a9b7410d7866d8ef03960ca848a5e123f699638aa
|