Seven-layer agent memory: episodic, semantic, procedural and core. Local SQLite, no account.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The neuroscience-inspired memory system for AI agents.
7 memory layers. Real neuroscience β FSRS, Hebbian, sleep consolidation, emotional tagging, plus 10 advanced research modules (vmPFC-FSRS, two-factor Hebbian, simulation-selection sleep, Fiedler-value KG health, IB budget, Hopfield STM, ...).
Pure TypeScript. Zero dependencies. 528 tests. Extracted from a production AI platform.
Status: pre-1.0, semver β the public API can still change before 1.0.
528 tests green on Node 22, 24 and 26 in CI Β· every release published to npm with build provenance Β·
every change recorded in the CHANGELOG Β· issues and pull requests get a first response typically within 72 hours.
βΆ Try the live playground in your browser β runs this published code, no install required.
Feedback, replications, and counter-results are explicitly welcome β please open an issue or reach out via research@zensation.ai.
Your AI forgets everything after every conversation. ZenBrain fixes that β with the same mechanisms your brain uses: spaced repetition, emotional consolidation, Hebbian strengthening, and exponential forgetting curves. Not a vector database with a wrapper. Actual neuroscience.
Architecture vs. this package. ZenBrain's architecture is 15 neuroscience-inspired mechanisms β 9 foundational algorithms + 6 Predictive Memory Architecture (PMA) components (paper). The 6 PMA components are proprietary and run in the production system. This open-source package ships the algorithm library: 10 core algorithms + 10 advanced research modules (20 modules), zero-dependency.
On LongMemEval-500, ZenBrain wins all nine head-to-head answer-quality comparisons against Letta, Mem0 and A-Mem β three competitors x three LLM judges, under Bonferroni-corrected significance (alpha = 0.05/18, p_min = 6.2e-31, d in [0.18, 0.52]). It reaches 91.3% of a full-context oracle's binary-judge accuracy at 1/106th of the per-query token cost (47.7% vs. 52.2%).
The paper prints where ZenBrain loses as well: on LoCoMo, substring-based aggregate F1 favours lexical retrieval (BM25) by metric design, and we do not contest that. The advantage is most pronounced on judge-graded answer quality and cross-session reasoning.
The mechanism comparison further down re-runs from this repository in under a minute β
bash scripts/compare-mechanisms.sh, no API keys and nothing to install. It prints a positive
and a negative control before the result, so the instrument can be checked before its output
is trusted. The method, the effect sizes and the ablations behind the numbers above are in the
paper; this repository ships no runner for them. The archived packages below run the significance
tests and effect sizes in full, and the mechanism ablation behind paper Tables 7β9.
The raw material behind the numbers above is deposited on Zenodo, open access and citable. Both links are concept DOIs and resolve to the latest version, the same convention this README uses for the paper archive; each description was measured against the version named after it.
verify-against-reference.mjs, which diffs a fresh run against
that reference and exits non-zero on drift. npm install && npm run experiments; the run itself
needs no API keys and no network, and finishes in under a minute on a laptop. Two of the paper's
other ablation tables need data this package does not carry: Table 11 the LoCoMo corpus, Table 13
a different pipeline. The package says so itself.SHA256SUMS.txt covering every file in the package, and the analysis scripts. Three of those
scripts are stdlib-only and self-checking β the oracle comparison behind the 91.3% figure, the
judge-agreement figures, and the real-pipeline flag-ablation table: each prints every re-derived
value next to the reference it has to match, and exits non-zero on mismatch. The significance
tests behind the nine head-to-head comparisons against Letta, Mem0 and A-Mem sit in a separate
script that needs numpy and scipy; it recomputes all eighteen pairwise tests and rewrites the
deposited significance JSON byte-identically, so what catches a mismatch there is the checksum,
not an exit code.Both packages name what they do not cover. Replications and counter-results are welcome: research@zensation.ai.
ZenBrain implements fifteen mechanisms taken from human memory research. No system among those surveyed in the paper integrates more than two of them. The table below records which of the mechanisms appear in the public source of three widely used memory systems, at pinned versions, on a fixed date.
| Mechanism | ZenBrain | Mem0 | Letta | Zep |
|---|---|---|---|---|
| FSRS spaced repetition | yes | β | β | β |
| Hebbian learning | yes | β | β | β |
| Ebbinghaus forgetting curves | yes | β | β | β |
| Sleep consolidation | yes | β | β | β |
| Emotional tagging | yes | β | β | β |
| Zero runtime dependencies | yes | β | β | β |
How this was measured, 27 August 2026. Full-text search over the
checked-out public source of mem0ai/mem0
(npm mem0ai 3.1.7, PyPI mem0ai 2.0.19),
letta-ai/letta-code
(npm @letta-ai/letta-code 0.31.2) and
getzep/zep, lockfiles excluded. A dash means
the term does not occur in that snapshot β not that the system cannot do
something comparable under another name. Dependency counts are declared direct dependencies:
@zensation/core resolves to two packages, both our own; mem0ai
declares four, @letta-ai/letta-code eighteen. Re-run the whole check yourself with
scripts/compare-mechanisms.sh; it
prints its own positive and negative controls so you can see the instrument works before you
trust the result.
Human memory does not work like a key-value store. The brain keeps specialised systems for different kinds of memory, forgets actively, modulates by emotion and retrieves by context. ZenBrain brings those mechanisms to AI agents.
On top of the 10 core algorithms above, @zensation/algorithms ships 10 advanced algorithms grounded in recent neuroscience and ML research. Each is exposed as its own sub-path (@zensation/algorithms/<name>) and remains zero-dependency:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/zenbrain-memory)<a href="https://allmcps.com/mcp/zenbrain-memory"><img src="https://allmcps.com/api/badge/zenbrain-memory?style=directory" alt="ZenBrain Memory on AllMCPs" /></a>