Mastra Framework
Developer tools
Open-source TypeScript framework for defining typed agents with instructions, models, and tools, and for composing multi-step workflows with retries and branching.
- Typed agents and multi-step workflows
- Memory with conversation history and semantic recall
- Model router covering 90+ AI providers
- Built-in evals, traces, and observability
- MCP server authoring
- Deploys as a standalone server, inside Next.js, or to the cloud
Built for
Engineering teams building customer-facing AI products, internal automation agents, and developer platforms