Mastra Memory

https://mastra.ai/docs/memory/overview

TypeScript-first agent framework. Default memory: LibSQL store + on-device fastembed-js for semantic recall.

Active · Verified 2026-10-22 · fresh as of 2026-10-22 · 66 cited facts, 3 with a third-party source · 1 recorded change · Suggest a correction

At a glance

Tier
T2
Created
2025-10 vendor fix
Pricing
Free + paid vendor fix
Freshness
2026-10-22 fix
Layer
agent-infra repo fix
Licensing
open-core repo fix
Deployment locus
hybrid vendor fix
Platform vs product
platform vendor fix
Accelerator
yc-w25 third-party fix
SDK languages
typescript repo fix
Protocols
mcp-client, mcp-server vendor fix

Memory taxonomy

storage
relational
retrieval
similarity
persistence
cross-session
update
append-only
unit
episode
governance
inspectable
conflict
none

When to use

Optimised for: TypeScript-native developer experience + LibSQL semantic recall

Anti-fit: not for Python-only stacks

Pros & cons

Pros

Modern TypeScript-first framework with memory built in; LibSQL default substrate keeps ops simple.

Cons

TypeScript ecosystem — less appealing for Python-only shops.

Claims & capabilities

"Observational Memory" reports 94.87% on LongMemEval with gpt-5-mini, 84.23% with the official gpt-4o (highest openly reproducible score per their post).

Technical surface

API surface
SDK: TypeScript
Backend storage
pluggable (Postgres, LibSQL, etc.)
Deployment
Both
Embedding model
multiple supported
Multi-tenancy
namespace (resourceId, threadId)
MCP
native (first-party) — Mastra MCP server + client
A2A
supported — Mastra A2A protocol
OpenTelemetry
first-class — built-in OTel support

Similar systems

Other framework-embedded memory in the catalog, ranked by inbound references.

  • Spring AI ChatMemory T3

    Wraps conversation memory behind an Advisor abstraction. MessageWindowChatMemory default 20-msg sliding window (preserves system messages); pluggable ChatMemoryRepository backends (in-memory, JDBC, Cassandra, Neo4j). Memory injected as cross-cutting concern at the ChatClient level.

  • Flowise Memory T1

    Discontinued: Flowise (acquired by Workday, Aug 2025) was sunset in 2026 — code freeze 2026-07-29, GitHub repo archived 2026-08-13, end of life 2026-08-31. Was a visual LangChain canvas with LangChain-native memory nodes (Buffer, Buffer Window, Conversation Summary Buffer) backed by an internal chat_message DB table; Buffer Window kept the last K interactions, Summary Buffer compressed older turns while keeping recent ones verbatim.

  • LangGraph Persistence T2

    Distinct from LangMem. Built-in checkpointer saves graph state per super-step (short-term, thread-scoped). Store System adds long-term hierarchical key-value memory across threads with optional vector search + TTL. Postgres / Mongo / Redis stores for production.

  • AutoGen Memory T2

    AutoGen's memory layer: ListMemory chronological context plus teachable agents that vectorise corrections; integrates with Mem0/Zep rather than building deep memory natively. Microsoft AutoGen is in maintenance mode (community managed, bug and security fixes only), and Microsoft points new projects to Microsoft Agent Framework.

  • CrewAI Memory T2

    Memory subsystem inside the CrewAI orchestration framework; integrates with Mem0 for the long-term tier.

  • Hermes Agent memory (Nous Research) T3

    Nous Research's open-source self-improving agent keeps an agent-curated MEMORY.md/USER.md notebook injected at session start, full-text (FTS5) search over past sessions that returns raw messages without LLM summarisation, and optional Honcho user modelling. one of the most-starred agent projects of 2026.

Sources (65 cited facts, 3 third-party)

Each fact links to the page it came from; the badge says who published it (how to read sources).

What changed

Changes to this record's lifecycle, licence, release, pricing and hosting facts, from the catalog's git history. Subscribe (Atom)

  1. 2026-10-22
    • License “not applicable — not OSS” → “Apache-2.0 (core; ee/ dirs under source-available Mastra Enterprise License)” source
    • Latest release “not applicable — not OSS” → “@mastra/core v1.79.0 (2026-10-21)” source
    #195

Related systems

References (1)

  • Opencode (SST) integrates with — Mastra repo ships @mastra/opencode, an OpenCode plugin for Mastra Observational Memory. (verified 2026-10-29)