Skip to main content

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.md and 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

leviathan_hivemind_mcp-0.2.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

leviathan_hivemind_mcp-0.2.1-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file leviathan_hivemind_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: leviathan_hivemind_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.7

File hashes

Hashes for leviathan_hivemind_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 903f4cf4c2ad6285eaae6feea5cbd0e19268243485ffd484cade692fcb0506cd
MD5 a279945097db4c2a8d5adc690c96ecfc
BLAKE2b-256 92ba0f1e8da61244c895e06f87d5f396bbbca9e1e392d7d702035905d37159bb

See more details on using hashes here.

File details

Details for the file leviathan_hivemind_mcp-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for leviathan_hivemind_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf59fd80c95ad4bcfe399296d21490935d195bd3984ea24deb72a681b9e92b9
MD5 58f0950a0613ee29c91a5036bf53065d
BLAKE2b-256 bc11bf29a26e61bcf1ac070d3c8fcc9f9278761f6ac9304fb8e8d87ece973eb2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page