Skip to main content Switch to mobile version forever-brain-mcp 0.1.1 Local-first, encrypted, source-attributed, bi-temporal memory MCP server for Hermes, Claude, Cursor, Codex, and Antigravity.
pip install forever-brain-mcp Copy PIP instructions
Local-first, encrypted, source-attributed, bi-temporal memory for AI agents.
Built with FastMCP for POSIX hosts. Verified host: Hermes Agent 0.23.3 on macOS. Other stdio clients below are example configurations.
Why Forever Brain (Instead of Markdown Files or Vector RAG)?
In a Python 3.11+ virtual environment on a POSIX host, run:
git clone https://github.com/NextArkDAO/forever-brain-mcp.git cd forever-brain-mcp pip install -e . To run the test suite from the repository root:
pip install -e '.[dev]' python -m pytest -q Try point-in-time recall
This example calls the MCP tools in a temporary vault. It uses the first write’s returned recorded_at as the historical cutoff.
FOREVER_BRAIN_DIR="$(mktemp -d)" python - <<'PYTHON' import asyncio from fastmcp import Client from forever_brain_mcp.server import mcp async def demo(): async with Client(mcp) as client: saved = await client.call_tool("brain_remember", { "record_id": "demo.room.v1", "topic": "demo.room", "text": "Meet in Room A.", "source": "fictional invitation", }) cutoff = saved.data["record"]["recorded_at"] await asyncio.sleep(1.1) # The vault records timestamps to the second. await client.call_tool("brain_correct", { "old_record_id": "demo.room.v1", "new_record_id": "demo.room.v2", "text": "Meet in Room B.", "source": "fictional update", }) for label, filters in [("As of first write", {"as_of": cutoff}), ("Now", {})]: result = await client.call_tool("brain_recall", {"query": "room", **filters}) print(label, result.data["records"][0]["text"], sep=": ") asyncio.run(demo()) PYTHON Expected output:
As of first write: Meet in Room A. Now: Meet in Room B. 2. Wire into Hermes Agent (~/.hermes/config.yaml)
mcp_servers: forever-brain: command: forever-brain-mcp env: FOREVER_BRAIN_DIR: ~/.forever-brain/vault Restart Hermes, and your agent immediately gets brain_startup, brain_remember, brain_correct, brain_recall, brain_trace, and brain_health.
3. Or Install into Claude Code / Claude Desktop / Cursor
fastmcp install claude-code src/forever_brain_mcp/server.py:mcp fastmcp install claude-desktop src/forever_brain_mcp/server.py:mcp fastmcp install cursor src/forever_brain_mcp/server.py:mcp -e . 4. Local Validation (Hermes FastMCP Quality Bar)
fastmcp inspect src/forever_brain_mcp/server.py:mcp fastmcp list src/forever_brain_mcp/server.py --json fastmcp call src/forever_brain_mcp/server.py brain_health --json Tools, Resources & Prompts
For keyfile mode, back up the ciphertext and its original key. Anyone holding both can decrypt the vault. For passphrase mode, retain the ciphertext, original vault.salt and the passphrase. Restore into a dedicated directory owned by the current user (0700), with owner-private files (0600). Back up a consistent snapshot while the server is stopped.
The supported transport is stdio for a trusted local client on POSIX. Every connected client can read and change the entire selected vault. Use a separate vault per trust boundary. Source and trust labels are supplied by the client. Corrections inherit the old trust label unless explicitly set. Keep untrusted inputs attributed as such. A third-party HTTP wrapper is outside the supported configuration.
A correction records its effective date in event_at. The as_of query shows the history the vault knew by the specified recorded time. A future effective date does not defer a saved correction. Set explicit event_at when effective time matters.
Both files in this release have provenance metadata.
MIT View SPDX License List
ai-agents fastmcp forever-brain hermes mcp memory
Development Status 4 - Beta
Intended Audience Developers
Operating System MacOS :: MacOS X
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Release files for forever-brain-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 29.8 kB
Release files / forever_brain_mcp-0.1.1.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Security for forever-brain-mcp 0.1.1
Both files in this release have been uploaded with provenance metadata.
With provenance forever_brain_mcp-0.1.1.tar.gz Nov 24, 2026
Attestation for forever_brain_mcp-0.1.1.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 24, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




