Mastra
Open-source TypeScript framework for building and monitoring AI agents
Introduction
Mastra is a TypeScript framework for building, deploying and observing AI agents and workflows. It includes typed workflows, memory, MCP support, human-in-the-loop steps, model routing and built-in observability. You can self-host it under Apache 2.0 or use Mastra Platform.
- Added on
- Nov 2, 2026
- Website
- mastra.ai
- Pricing model
- Freemium
Product information
What is Mastra?
Mastra is an open-source framework for developers building AI-powered applications such as assistants, automation agents and multi-step workflow apps.
How to use Mastra?
Create a project with the CLI and pick a model provider such as OpenAI, Anthropic, Google or xAI. Define agents with instructions, tools and memory, compose workflows, then register them on a Mastra server and run the dev environment.
Core features of Mastra
- TypeScript agent framework
- Typed workflows with branching and retries
- Durable memory and semantic recall
- Logs, traces and evaluations
- Model routing across 90+ providers
- MCP server and tool support
Use cases of Mastra
- 1Build internal automation agents
- 2Create customer-facing assistants
- 3Make coding agents and research tools
- 4Monitor production agents with traces and scorers
Frequently asked questions about Mastra
What is Mastra?+
An open-source TypeScript framework for agents, workflows, memory, MCP and observability.
What can developers build with Mastra?+
Support assistants, internal automation agents, copilots, coding agents, research tools and workflow automations.
Can Mastra be self-hosted?+
Yes, under the Apache 2.0 license, or deployed through Mastra Platform.
Which category is Mastra in?+
Mastra is listed under AI Code Editor.

