Skip to main content
M

Mastra

Open-source TypeScript framework for building and monitoring AI agents

Mastra homepage
Default cover

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

  1. 1Build internal automation agents
  2. 2Create customer-facing assistants
  3. 3Make coding agents and research tools
  4. 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.

Tags

ai agentstypescriptworkflowsobservabilitydeveloper tools

Mastra alternatives

G

Google's workspace for prototyping with Gemini models and API keys

Z

Fully managed vector database built on Milvus, for search, RAG and AI applications at scale.

Z

Cloud platform for deploying code, frontends, backends and databases with pay-as-you-go pricing.

Y

Community platform where you chat with an AI agent to build, deploy and share web projects.

W

AI development platform for code generation, database work, mock data and team collaboration

W

Terminal with built-in AI assistance and shared team workflows.