Free checklist
M

Mastra

Use case: Multi-agent

TypeScript agent framework with workflows, agent networks, memory and evals built in.

Mastra is a TypeScript framework for building AI agents and AI-powered applications. Its README lists the pieces: a model router that connects to more than 40 providers through one interface, agents that use LLMs and tools to solve open-ended tasks, and a graph-based workflow engine with .then(), .branch() and .parallel() for steps that need explicit control. Workflows and agents can be suspended and resumed for human approval, with state kept in storage. It also covers conversation history, retrieval from your own data, an Observational Memory feature, and built-in evals and observability.

It is for TypeScript and JavaScript developers who want agents inside an existing React, Next.js or Node.js app, or deployed as a standalone server, without moving to Python. Mastra can also author Model Context Protocol servers that expose agents and tools to any MCP client. The quickest start is npm create mastra@latest, which scaffolds a project, and running it opens Mastra Studio locally for building and testing agents, workflows and tools. In this directory it sits with the multi-agent frameworks, as the TypeScript-first option next to Python projects such as CrewAI.

The framework is free to use. Mastra's pricing page describes the open-source framework as Apache 2.0 licensed, while its LICENSE file says directories named ee/ are covered by a separate enterprise licence. A hosted Mastra Platform and Enterprise self-hosted features are priced separately, and the platform has a free starter tier; see the official pricing page for current terms. You still pay your model provider for the models your agents call.

Like Mastra? Find tools like it on X.

Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.

At a glance

Category
Multi-agent
Best for
Best multi-agent frameworks in 2026 · Multi-agent use cases
Official site
github.com
Link checked
November 4, 2026
Data
JSON
Visit Mastra →

How Mastra fits an agent workflow

In an agent stack, Mastra belongs to the Multi-agent category, which covers the orchestration layer, where several agents or roles are coordinated, hand work to one another and share state. You will also find it in our curated list: Best multi-agent frameworks in 2026. Other Multi-agent entries worth a look alongside it include Google Agent Development Kit (ADK), Agent2Agent (A2A) Protocol and MetaGPT.

Mastra alternatives

All Multi-agent tools → · Best multi-agent frameworks in 2026

FAQ

Is Mastra open source?

The framework is open source under Apache 2.0. The LICENSE file notes that directories named ee/ are under a separate enterprise licence.

How do I start a Mastra project?

Run npm create mastra@latest and follow the prompts to scaffold a project, then start the dev server and open Mastra Studio on localhost to build and test agents, workflows and tools. The docs also describe a manual install with the @mastra/core package.

Do I need Python or a specific model provider?

No. Mastra is written for TypeScript, runs in Node.js or inside frameworks such as Next.js, and its model router connects to more than 40 providers through one interface, including OpenAI, Anthropic and Gemini.

What are alternatives to Mastra in this directory?

In TypeScript or Python, compare OpenAI Agents SDK, LangGraph, CrewAI, Pydantic AI, Agno and Google ADK. For browser tasks inside an agent, Stagehand is another TypeScript option.

Get new agent tools and tips as they're added

Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.