Mastra Memory
https://mastra.ai/docs/memory/overview
TypeScript-first agent framework. Default memory: LibSQL store + on-device fastembed-js for semantic recall.
At a glance
- Type
- LibSQL + semantic recall
- Tier
- T2
- Section
- Framework-embedded memory
- Created
- 2025-10
- Latest release
- not applicable — not OSS
- License
- not applicable — not OSS
- GitHub
- not applicable — no GitHub repo
- Pricing
- Free + paid
- Funding
- $35M total Series A · 2026-01
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.
- 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
ListMemory chronological context + teachable agents that vectorise corrections. Integrates with Mem0/Zep rather than building deep memory natively.
- CrewAI Memory T2
Memory subsystem inside the CrewAI orchestration framework; integrates with Mem0 for the long-term tier.
- AGiXT Adaptive Memory T2
Open-source AI automation platform. Routes between short-term and long-term memory adaptively across any LLM provider; plugin system for storage backends. Memory managed at the instruction-management layer — task context, instruction state, conversation history as unified agent state.
- Agno (Phidata) Memory T2
Agno (formerly Phidata). AgentStorage persists sessions to a DB; AgentMemory auto-classifies/store user preferences and conversation summaries. Single-line integrations with LanceDB, Pinecone, Weaviate, Qdrant.
- Botpress LLMz T1
Per-plan vector-DB storage quota + LLMz autonomous engine (in-session working memory) + Knowledge Base (semantic search over uploaded docs). Long-term user memory persists across sessions.