Mastra
From the team behind Gatsby, Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
At a glance.
A compact read before the deeper capability notes and official setup links.
Core features.
Feature cards focus on what the tool helps users do, not generated setup commands.
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
Model routing - Connect to 40+ providers through one standard interface.
Use models from OpenAI, Anthropic, Gemini, and more.
Agents - Build autonomous agents that use LLMs and tools to solve open-ended tasks.
Agents reason about goals, decide which tools to use, and iterate internally until the model emits a final answer or an optional stopping condition is met.
Workflows - When you need explicit control over execution, use Mastra's graph-based workflow engine to orchestrate complex multi-step processes.
Mastra workflows use an intuitive syntax for control flow (.then(), .branch(), .parallel()).
Human-in-the-loop - Suspend an agent or workflow and await user input or approval before resuming.
Agent / Skill / MCP / Workflow fit.
This panel keeps technical format separate from the user-facing AI category.
Official setup path.
Generated install snippets are intentionally not mirrored here because they drift. The page links to source-owned setup docs instead.
Evidence and adoption notes.
These notes help a user decide whether to investigate the official project further.
Source repository last pushed at 2026-05-20T03:35:03Z.
Generated from source metadata; confirm operational details in the official project before adopting it.
Review the upstream license, maintenance activity, and issue history before using it in production.