Ebbtide MCP
Local long-term memory for AI agents: hybrid search over what you've told it, with a forgetting curve that keeps a bounded store to what keeps mattering.
Ebbtide MCP is a memory server, not the zombie strategy game of the same name. It was called
Engram until October 31, 2026; I renamed it because several other memory servers for AI agents
already use that name. It began as a notes app, whose last version is the git tag
notes-app.
Live: aimsotrash-ebbtide.vercel.app
Install
With uv, on Linux, Windows, or an Apple silicon Mac (macOS 14 or later). For Claude Code:
uv tool install ebbtide==0.3.1
claude mcp add ebbtide -s user -- ebbtide
For any other MCP client, add this to its configuration:
{
"mcpServers": {
"ebbtide": {
"command": "uvx",
"args": ["ebbtide==0.3.1"]
}
}
}
The install is about 180 MB: ONNX Runtime rather than PyTorch. The first remember or
recall downloads the 90 MB embedding model and checks it against a pinned SHA-256; after
that, Ebbtide never goes online. The examples pin a version because the project is young; drop
==0.3.1 to track the latest. Settings and the memory panel are in
ebbtide/README.md.
What it does
Five tools:
| Tool | What it does |
|---|---|
remember(text, tags?) |
Stores one fact, preference, decision or lesson. Returns similar memories already stored, so the agent can drop an older version instead of keeping both. |
recall(query, k) |
The most relevant memories, by keyword search (BM25) fused with embedding search. Recalling a memory strengthens it. |
update(id, text) |
Corrects a memory in place when a fact changes. |
forget(id) |
Deletes a memory. |
memory_stats() |
Count, budget, policy and mean strength. |
Two resources, ebbtide://memories and ebbtide://memories/{id}, let a client attach
memories as context; reading one never strengthens it. Two prompts, recall_first and
save_session, start the common workflows. A local panel shows every memory and how strong it
is, with a slider that looks ahead to show which ones are fading.
Everything lives in one SQLite file on your machine, and only what a recall returns enters the agent's context. Each tool call is one transaction, so two agents can share a database.
Choosing a policy
Each memory fades along a forgetting curve unless it is recalled, and every recall makes it last longer. Fading only matters once the store is full: until it holds its budget, 1000 memories by default, nothing is forgotten and Ebbtide is a local hybrid-search memory. At the budget, the weakest memory goes first.
By the benchmarks below, keeping everything retrieves best when you can afford it. If you'd
rather never lose a memory, set EBBTIDE_POLICY=keep-all; the store then grows without limit.
The default, ebbtide-count, is for a bounded store: of the forgetting rules tested, it usually
kept the most of what later questions needed, and it was benchmarked exactly as it ships
(RESULTS-defaults.md).
Should an agent forget?
I replayed six memory policies on two public long-conversation benchmarks and measured whether the memory still finds the evidence each question needs. LongMemEval has 500 questions with histories of about 490 turns; its 30 abstention questions have no evidence to find, so 470 are scored. Settings were picked on 92 dev questions and fixed before the other 378 were first scored. LoCoMo has 10 conversations that span 5 to 10 months, and nothing was tuned on it.
- Retrieval mattered more than forgetting. Fusing keyword search with the embeddings, untuned, raised keep-all's turn_all@10 from 58.5 to 69.8 on LongMemEval and from 44.6 to 53.3 on LoCoMo, with 95% intervals above zero (RESULTS-hybrid.md). That is a bigger gain than any forgetting rule produced, so the server now ranks this way. It lost ground on preference questions (−12.5 points, 24 questions, interval crossing zero).
- The default holds up as it ships. With hybrid search in every recall of the budgeted replays, and ebbtide-count at exactly the server's settings, the default gained 8.2 points [+2.9, +13.2] with room for half of a LongMemEval history, and 2.3 to 5.6 points at every budget on LoCoMo, all with intervals above zero. With less room on LongMemEval the change was −0.8 and +3.2, intervals crossing zero. Preference questions lost again, by 4 to 17 points (RESULTS-defaults.md; rules fixed before the run).
- Keeping everything wins when you can afford it. With room for half the history, the best forgetting policy finds all the evidence in its top 10 results for 44% of LongMemEval questions and 30% of LoCoMo questions. Keeping everything does for 70% and 53%.
- No forgetting rule wins everywhere. On LongMemEval, keeping what gets used beats keeping the newest. On LoCoMo, keeping the newest does best at the turn level, except with the smallest budget.
- Strengthening on recall beats plain LRU, modestly. In the hybrid replays, with the comparison named before the run, ebbtide-count kept 3 to 5 points more of the evidence than LRU on LongMemEval with room for a quarter or half the history, and ranked every answer session in its top 10 6 to 10 points more often. On LoCoMo the session gain held (4 to 6 points), and the rest was within 3 points. The earlier embedding-only replays pointed the same way.
- Strengthening too hard backfires on facts that change. FSRS-style spacing made old
facts stick: on LongMemEval's knowledge-update questions it found the newest fact 12 to
17 points less often than LRU. This is why
updateexists, and whyrememberpoints out similar memories. - Fading didn't help as a ranking signal. Tuning picked similarity alone almost everywhere, so the gains come from what is kept, not from how it is ranked.
Reading the numbers. turn_all@10 is strict: a question counts only if every evidence turn is in the top 10 results. It measures retrieval, not answers, so it isn't comparable to the answer-accuracy percentages, often in the 90s, that other memory projects report with an LLM grading the answers.
MemoryBank (Zhong et al., 2023) already applied an Ebbinghaus curve to LLM memory. What is new here is the measured comparison with simple baselines, losses included.
Limitations
- Recall strengthens whatever it returns, whether or not the agent used it, so a memory that resembles many queries can stay strong. The benchmarks measured exactly this behavior.
- The benchmark agent recalls at every user turn, five memories at a time. A real agent recalls less often, so which memories survive a full store may differ in practice.
- Hybrid search does worse on preference questions, such as a recipe request that should recall "I'm vegetarian", where the words rarely match: 12.5 points lower with nothing forgotten, and 4 to 17 lower in the budgeted replays. That is on only 24 questions, so the intervals are wide, but every measurement so far points the same way.
- The embedding model is small and reads 256 tokens (about 1,000 characters), so
rememberrefuses longer text and asks for one fact per memory. It works best in English. - "Similar" is a rough hint: a cosine similarity of 0.5 or more. Replayed on LongMemEval's changed facts, it named the outdated message for 26% of them, and 65% of other user messages got a hint too. Those are whole chat messages, not one-fact memories, so this is a proxy, but treat the list as a prompt to check rather than as detection. Ebbtide never deletes or merges memories by itself.
- It's young: renamed on October 31, 2026, with version 0.3.0 the first on ONNX Runtime. Pin a version.
Stack
Python · MCP · ONNX Runtime · NumPy · SQLite · React · TypeScript · Vite · Tailwind CSS · Motion
Run it locally
To run the MCP server, follow the setup in ebbtide/README.md.
To reproduce the benchmarks, from the repo root:
uv venv -p 3.12 .venv && uv pip install --python .venv -e .
.venv/bin/python -m bench.longmemeval embed # downloads the data and embeds it once, ~45 min on a laptop CPU
.venv/bin/python -m bench.longmemeval run # writes bench/RESULTS.md
.venv/bin/python -m bench.locomo # writes bench/RESULTS-locomo.md
.venv/bin/python -m bench.hybrid # writes bench/RESULTS-hybrid.md
.venv/bin/python -m bench.defaults # writes bench/RESULTS-defaults.md, ~30 min
The benchmark embeddings were made with sentence-transformers and PyTorch before Ebbtide moved to ONNX Runtime. The two agree to a cosine similarity of at least 0.9999998 on about 4,000 sampled texts, including the longest, so the results stand.
The landing page lives in site/ (Vite, React and Tailwind):
cd site && npm install && npm run dev # http://localhost:5173
The Python tests (25: 15 intelligence, 6 MCP server, 4 benchmark) stub the embedding model,
so they need only requirements-test.txt, which adds pytest:
uv pip install --python .venv -r requirements-test.txt
.venv/bin/python -m pytest intelligence/tests ebbtide/tests bench
References
- Di Wu et al. LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. 2024. arXiv:2410.10813
- Adyasha Maharana et al. Evaluating Very Long-Term Conversational Memory of LLM Agents. ACL 2024. arXiv:2402.17753. The LoCoMo data is CC BY-NC 4.0; it is downloaded, never committed, and used here for non-commercial research.
- Wanjun Zhong et al. MemoryBank: Enhancing Large Language Models with Long-Term Memory. 2023. arXiv:2305.10250
- FSRS, the spaced-repetition scheduler whose default weights the spaced rule uses: open-spaced-repetition
License
MIT.
Metadata
Release files for ebbtide 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ebbtide-0.3.1.tar.gz | 64.0 kB | With provenance | Details for ebbtide-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ebbtide-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for ebbtide-0.3.1-py3-none-any.whl |
Total release size: 124.6 kB
Release files / ebbtide-0.3.1.tar.gz
| Download URL | ebbtide-0.3.1.tar.gz |
|---|---|
| Size | 64.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71cda8249f5b790134c8467aa5a680120e8bf3ab32f0abdef1b4944e8e2f4882
|
|
BLAKE2b-256 checksum How to use checksums |
c21169ec22af05bb60478154cac87f1f15a617afa92c56b54ce5da52ec876cd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logRelease files / ebbtide-0.3.1-py3-none-any.whl
| Download URL | ebbtide-0.3.1-py3-none-any.whl |
|---|---|
| Size | 60.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad845fb094162f98a8230d62d141acded85c25f3152fcbab0a3dcefd2f43dbd8
|
|
BLAKE2b-256 checksum How to use checksums |
7699e05657db82f5e64681cf5b169bd9d52ba8cd2d2832241837e85d7d6ebaa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logSecurity for ebbtide 0.3.1
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ebbtide-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logA 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.