Mastra homepage

Mastra

TypeScript framework for building AI agents and workflows

FrameworkSupervised

Last reviewed 2026-06-18

Mastra is an open-source TypeScript framework for building AI-powered applications and agents, from the team behind the Gatsby web framework. It gives TypeScript developers agents, a graph-based workflow engine, memory, and observability out of the box. Agents reason about a goal, decide which tools to use, and iterate until the model emits a final answer; the workflow engine orchestrates multi-step processes with explicit control flow (.then(), .branch(), .parallel()); and a memory system provides conversation history and working/semantic memory. Mastra is Apache-2.0 licensed and is a developer framework, so the autonomy of anything you build is developer-defined. It targets TypeScript/JavaScript teams who want a production-oriented agent stack rather than a Python one, and it is backed by a Y Combinator company.

What it can do

  • Build tool-using agents

    Supervised

    Agents use LLMs and tools to solve open-ended tasks, reasoning about goals, choosing tools, and iterating until a final answer is produced.

    source
  • Orchestrate graph-based workflows

    Supervised

    A workflow engine orchestrates multi-step processes with explicit control flow using .then(), .branch(), and .parallel().

    source
  • Provide agent memory

    Supervised

    A memory system supplies conversation history plus working and semantic memory so agents behave coherently across turns.

    source

Strengths

  • +TypeScript-first, filling a gap for JS/TS teams in a Python-dominated space
  • +Includes agents, workflows, memory, and observability out of the box
  • +Apache-2.0 licensed and backed by the experienced Gatsby team

Limitations

  • TypeScript/JavaScript only
  • A framework, not a product: you build, host, and secure your agents
  • Younger ecosystem than Python frameworks; autonomy is developer-defined

Overview

Mastra is an open-source, TypeScript-first framework for building AI agents and workflows, from the team behind the Gatsby web framework. It is Apache-2.0 licensed.

What it does

Mastra ships agents, a graph-based workflow engine, memory, and observability out of the box. Agents reason about a goal, choose tools, and iterate until a final answer; the workflow engine orchestrates multi-step processes with explicit control flow via .then(), .branch(), and .parallel(); and the memory system provides conversation history plus working and semantic memory.

Autonomy note

This is a developer framework, not an end-user agent. How autonomously a built agent acts depends on the tools, control flow, and approvals the developer configures; we list it as supervised-agent conservatively.

Integrations & setup

Installed as a TypeScript/Node library. Model-agnostic across major providers, with MCP support.

Pricing

Free and open source; you pay for the underlying model usage.

Best for / not for

Best for JavaScript/TypeScript teams who want a batteries-included agent framework in their own language. Not for Python-only stacks or teams wanting a no-code platform.

Alternatives

LangChain, LangGraph, CrewAI, the OpenAI Agents SDK, and Pydantic AI are competing frameworks (most Python-first).

What people are saying

We aggregate real LinkedIn discussion into sentiment for the agents people search most. Mastra isn't tracked yet, want it added? Request tracking.

FAQ

What language is Mastra for?+

Mastra is a TypeScript-first framework. It targets JavaScript/TypeScript developers who want a production-oriented agent stack without switching to Python.

Is Mastra open source?+

Yes. Mastra's core framework is released under the Apache-2.0 license, so you can use, modify, and build commercial products on top of it.

Sources

Last reviewed 2026-06-18

Alternatives & related