Mastra
A TypeScript toolkit for building AI apps and agents, from first prototype to finished product.
- Your data
- Sent to an online service
- Coding needed
- Developers only
- Cost
- Free, with optional paid extras
- Runs on
- Server
A TypeScript toolkit for building AI apps and agents, from first prototype to finished product.
Mastra gives JavaScript and TypeScript programmers the pieces to build AI-powered apps. It connects to many AI providers through one interface.
You can build agents that decide which tools to use, or step-by-step workflows when you want tight control. Agents and workflows can pause and wait for a person's approval, remember past conversations, and pull in data from files or databases.
It also includes testing ("evals") and monitoring tools, and a local studio screen for trying out agents.
Web developers who want to add AI agents or chat features to their apps.
Developers only. Set up with an npm command and used by writing code. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?