Mastra

Mastra

TypeScript framework for building agents, workflows, memory and evals, with a local Studio for testing.

TypeScriptApache-2.0v1.74.0 · 2026-10-01

Install

Run in your terminal

npm install @mastra/core

Latest version read from npm package @mastra/core.

Multi-agent patterns

Handoffs: supported

Handoffs

One agent passes the conversation to another agent, which takes over.

How Mastra does it
Subagents / agents as tools: supported

Subagents / agents as tools

A main agent calls other agents like tools and gets their result back, each with its own context.

How Mastra does it
Graph or workflow: supported

Graph or workflow

You define steps and edges (or a workflow), and the framework runs agents and functions through them.

How Mastra does it
?Group chat / crew: not yet verified

Group chat / crew

Several agents with roles work together on a task, coordinated by a manager or a selection rule.

Not shown in the docs.

Human in the loop: supported

Human in the loop

The run pauses for a person to approve, edit or answer before it continues.

How Mastra does it

Protocols and hosting

MCP: supported
A2A: supported

Hosted runtime

Mastra platform (Server)

Source

Questions

Does Mastra support MCP?

Yes. Mastra's documentation shows agents using tools from MCP servers.

Does Mastra support the A2A protocol?

Yes. Mastra's documentation covers the Agent2Agent (A2A) protocol.

What multi-agent patterns does Mastra support?

The docs show: handoffs, subagents / agents as tools, graph or workflow, human in the loop.

Links

Alternatives in the same languages

Get the weekly agent stack update

New official MCP servers, spec changes and harness releases, checked against the source. One email a week, no fluff.

Reviewed Oct 7, 2026.