Why you'd want it
Mastra is a TypeScript framework for agents and workflows that plugs into React, Next.js and Node apps or runs as a standalone server. It connects to 40+ model providers through one interface, has a graph-based workflow engine with .then(), .branch() and .parallel(), and can suspend an agent or workflow for human input and resume from stored state. It also covers conversation history, RAG, observational memory, MCP server authoring, evals and observability.
Best for
- TypeScript and Next.js teams
- Agents with human approval steps
- Apps that need memory and RAG in one stack
Use it when
You want agents, workflows, memory and evals in one TypeScript framework instead of assembling separate libraries.
Skip it if
You work in Python. Features in ee/ directories (for example auth) need a Mastra enterprise license for production use.