What is Mastra?
Mastra is an open-source TypeScript framework for building AI agents and workflows. It includes agents with tools and memory, graph-based workflows, RAG, evals and a local playground, and deploys anywhere Node runs.
Key features
- Agents with tools and memory
- Durable graph-based workflows
- Built-in evals and tracing
- Local dev playground
Use cases
- Agents in TypeScript products
- RAG applications
- Workflow automation
Mastra alternatives
Compare all →Build controllable, stateful agents as graphs.
Orchestrate role-playing, collaborative AI agent teams.
A lightweight SDK for building multi-agent workflows.
The agent harness behind Claude Code, as an SDK.
Type-safe agent framework from the Pydantic team.
Microsoft’s open-source framework for multi-agent applications.
Mastra FAQ
What is Mastra?
Mastra is an open-source TypeScript framework for building AI agents and workflows. It includes agents with tools and memory, graph-based workflows, RAG, evals and a local playground, and deploys anywhere Node runs.
How much does Mastra cost?
Mastra is open source. Open source; paid cloud offering. Check the official website for current pricing.
Who is Mastra best for?
TypeScript and JavaScript teams.
Is Mastra open source?
Yes, Mastra is open source.
What are the best alternatives to Mastra?
Popular alternatives include LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK. See our full list of Mastra alternatives for a comparison.
Listing last reviewed November 2026. Spotted something out of date? Tell us.