Announcing the Mastra integration for SurrealDB and Agent Memory
Blog post from SurrealDB
SurrealDB has introduced the @surrealdb/mastra-ai package for Mastra, a TypeScript AI agent framework, combining a SurrealDB storage adapter with an optional managed Agent Memory provider. The adapter consolidates conversations, workflow snapshots, observability data, embeddings, and native HNSW vector search into a single ACID database, reducing the need for separate databases, synchronization jobs, and multi-system queries. Agent Memory complements transcript storage by extracting durable facts, enabling semantic recall, and building user profiles across sessions while retaining in-process message history and gracefully handling service outages. The two components can be used independently or together, with the storage adapter available for self-hosted SurrealDB or SurrealDB Cloud and the memory provider using the hosted Agent Memory service. The integration requires SurrealDB v3, Bun 1+ or Node.js 22+, and Mastra Core 1.31.0 or later.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Vector Search | 9 | 1,618 | 377 | 123 | -32% |
| Observability | 3 | 2,761 | 730 | 188 | -15% |
| AI Agents | 2 | 5,586 | 1,408 | 270 | -7% |
| RAG | 1 | 864 | 207 | 84 | -29% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.