OmniFeed Search

Mastra

Open-source TypeScript framework for building AI agents and workflows

Visit mastra.ai
Promotional image for Mastra (opens full size in a new tab)
Promotional image for Mastra, from mastra.ai

Facts

Price
From a free plan or $25.00/month
Users
About 100K
Runs on
Node.jsNext.jsStandalone server
Needs
Node.js 22.13 or laterStorage adapter such as LibSQL or PostgreSQL for workflow state and memory
License
Apache 2.0 (core) with source-available Mastra Enterprise License for ee/ directories, open source
Category
AI
Facts checked

Price checked · Current prices on mastra.ai ↗

Our verdict

#3 of 10 in AI agent frameworks

The all-in-one TypeScript pick

What it does

  • Agents and graph workflows in TypeScript
  • Suspend and resume with snapshots in your own database
  • Local Studio for running agents and reading traces
  • Model routing across dozens of providers, with fallbacks
  • MCP client and server

Pros

  • Everything a production agent needs in one TypeScript package
  • Free local debugger with no account
  • Provider-neutral model routing

Cons

  • TypeScript only
  • Studio's access controls and editor need an enterprise license in production
  • Many separately versioned packages to upgrade
Choose if:
Your agents live in a Node or Next.js codebase and you want workflows, memory, and a debugger without stitching libraries together

Read the full review →

About Mastra

Mastra is an open-source TypeScript framework for building AI agents and applications (Y Combinator W25). It provides agents, a graph-based workflow engine with suspend and resume, memory, RAG, evals, MCP client and server support, observability, and a local Studio UI, and routes models through a single provider/model string. It runs inside Next.js or Node apps or as a standalone server, and needs Node.js 22.13 or later. The core is Apache 2.0, while code in ee/ directories is source-available under the Mastra Enterprise License. The optional Mastra Platform is a hosted deployment and observability service with Free, Starter, Team and Enterprise plans. Python is not supported.

Ranked in

  • #3 of 10 AI agent frameworks The all-in-one TypeScript pick 4.1/5

    How it scored

    • Control over flow and state , counts double 4/5

      Graph workflow engine in the Apache 2.0 library with snapshots saved to your own storage, suspend/resume and human approval. It is unclear whether it supports per-step crash resume and rewind of saved state, so not 5.

      4/5 means: A workflow or graph engine in the free library with saved state, pause and resume, and human approvals

      • Human-in-the-loop: Suspend an agent or workflow and await user input or approval before resuming. Mastra uses storage to remember execution state, so you can pause indefinitely and resume where you left off.
        github.com/mastra-ai/mastra · checked
      • Workflows: When you need explicit control over execution, use Mastra's graph-based workflow engine to orchestrate complex multi-step processes. Mastra workflows use an intuitive syntax for control flow (.then(), .branch(), .parallel()).
        github.com/mastra-ai/mastra · checked
      • Suspension saves the current execution state as a snapshot. Later, resume from a specific step ID to restore the exact captured state. Snapshots are stored in your configured storage provider and persist across deployments and application restarts.
        mastra.ai/docs/workflows/suspend-and-resume.md · checked
    • Production track record and API stability 4/5

      Stable 1.x (1.78.0 tested Oct 2026), active vendor-backed maintenance, named users such as Replit and SoftBank. Many packages release separately.

      4/5 means: Stable 1.0 or later with a stability commitment, active maintenance and named production users

      • The Apache 2.0 core includes agents, workflows, memory, MCP, tracing and Studio, and you can host it anywhere. Role-based access in Studio and the Studio editor sit in ee folders and need an enterprise licence in production. The Mastra platform hosts agents and Studio with a free Starter plan, and Teams costs $250 a month.
        geekflare.com/open-source/mastra · published · checked
      • Many packages release separately, so upgrades touch several versions
        geekflare.com/open-source/mastra · published · checked
    • Tracing and debugging 4/5

      Built-in spans for agents, workflows, tools and model calls, OpenTelemetry-compatible exporters, and a free local Studio trace viewer. Replay or rewind of a run was not documented.

      4/5 means: Built-in tracing to the backend you choose, plus a visual debugger or trace viewer, local or from the maker, usable without a paid plan

      • mastra dev opens a local UI for chatting with agents, running workflows, testing tools and reading traces, so developers can debug without extra services.
        geekflare.com/open-source/mastra · published · checked
      • Spans cover agents, workflows, tools and model calls, and built-in evals score outputs, with exporters for OpenTelemetry backends.
        geekflare.com/open-source/mastra · published · checked
      • Studio provides an interactive UI for building, testing, and managing your agents, workflows, and tools. Run it locally during development, add authentication, or deploy it to production so your team can manage agents and monitor performance, plus gain insights through built-in observability.
        mastra.ai/docs/studio/overview · checked
      • Mastra also supports external tracing providers like Langfuse, Datadog, and any OpenTelemetry-compatible platform.
        mastra.ai/docs/observability/overview · checked
      Show all 4
    • Freedom to switch model providers 5/5

      One provider/model string across 40+ providers and gateways, with fallback model lists configurable per agent in Studio, and no provider favored. Local models work per the Geekflare review.

      5/5 means: Everything in 4, with no provider getting features others don't, and fallback or routing between providers built in

      • Model routing: Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more.
        github.com/mastra-ai/mastra · checked
      • The Apache 2.0 core includes agents, workflows, memory, MCP, tracing and Studio, and you can host it anywhere. Role-based access in Studio and the Studio editor sit in ee folders and need an enterprise licence in production. The Mastra platform hosts agents and Studio with a free Starter plan, and Teams costs $250 a month.
        geekflare.com/open-source/mastra · published · checked
      • Studio provides an interactive UI for building, testing, and managing your agents, workflows, and tools. Run it locally during development, add authentication, or deploy it to production so your team can manage agents and monitor performance, plus gain insights through built-in observability.
        mastra.ai/docs/studio/overview · checked
    • Multi-agent support 4/5

      Supports agent networks, supervisor-style subagents and A2A; agents can hand off or work together.

      4/5 means: Several built-in patterns, such as supervisor, handoff, parallel and group chat, that the developer controls in code

      • The Apache 2.0 core includes agents, workflows, memory, MCP, tracing and Studio, and you can host it anywhere. Role-based access in Studio and the Studio editor sit in ee folders and need an enterprise licence in production. The Mastra platform hosts agents and Studio with a free Starter plan, and Teams costs $250 a month.
        geekflare.com/open-source/mastra · published · checked
    • Learning curve and everyday developer experience 4/5

      One command scaffold, local Studio, typed zod schemas and clear docs; Geekflare setup took 35 seconds. No practitioner views were collected, so favorable and critical reports are unverified.

      4/5 means: Quick to a working agent with clear docs, and few surprises as the agent grows

      • Mastra is the most complete choice for TypeScript teams, with agents, workflows that suspend and resume, memory, evals and a local Studio in one package. Most of it is Apache 2.0, but some team features sit under an enterprise licence, so check which folder a feature comes from.
        Rity Anand, Director of Geekflare · geekflare.com/open-source/mastra · published · checked
      • Studio provides an interactive UI for building, testing, and managing your agents, workflows, and tools. Run it locally during development, add authentication, or deploy it to production so your team can manage agents and monitor performance, plus gain insights through built-in observability.
        mastra.ai/docs/studio/overview · checked
    • Integrations and community help , counts half 4/5

      MCP both ways, templates, many model providers and storage adapters, OpenTelemetry exporters, and about 29.8k GitHub stars, a large community for a TypeScript-only framework.

      4/5 means: MCP support, many ready-made integrations, and a large community with plenty of examples and answers

      • MCP servers: Author Model Context Protocol servers, exposing agents, tools, and other structured resources via the MCP interface.
        github.com/mastra-ai/mastra · checked
      • The Apache 2.0 core includes agents, workflows, memory, MCP, tracing and Studio, and you can host it anywhere. Role-based access in Studio and the Studio editor sit in ee folders and need an enterprise licence in production. The Mastra platform hosts agents and Studio with a free Starter plan, and Teams costs $250 a month.
        geekflare.com/open-source/mastra · published · checked
      • This repository uses a dual-license model: Apache License 2.0: The core framework and the vast majority of this codebase is open source under Apache-2.0. Mastra Enterprise License: Code in any directory named ee/ (e.g., packages/core/src/auth/ee/) is source-available under the Mastra Enterprise License. These features require a valid enterprise license for production use but can be freely used for development and testing.
        github.com/mastra-ai/mastra · checked

    Top of this ranking

    Read the full review →

Sources

15 quotes from 6 pages; the 10 most useful are below.

  • Pricing 1
    • Team $250/ month 3 Projects and SOC 2 report. Everything in Starter, plus: 2 medium dedicated projects SOC 2 report 10M observability events 50 GB shared egress 50 connections 180-day trace retention
      mastra.ai/pricing · checked
  • Limits and known issues 1
  • What users say 1
    • Mastra is the most complete choice for TypeScript teams, with agents, workflows that suspend and resume, memory, evals and a local Studio in one package. Most of it is Apache 2.0, but some team features sit under an enterprise licence, so check which folder a feature comes from.
      Rity Anand, Director of Geekflare · geekflare.com/open-source/mastra · published · checked
  • Features 6
    • Human-in-the-loop: Suspend an agent or workflow and await user input or approval before resuming. Mastra uses storage to remember execution state, so you can pause indefinitely and resume where you left off.
      github.com/mastra-ai/mastra · checked
    • Workflows: When you need explicit control over execution, use Mastra's graph-based workflow engine to orchestrate complex multi-step processes. Mastra workflows use an intuitive syntax for control flow (.then(), .branch(), .parallel()).
      github.com/mastra-ai/mastra · checked
    • Suspension saves the current execution state as a snapshot. Later, resume from a specific step ID to restore the exact captured state. Snapshots are stored in your configured storage provider and persist across deployments and application restarts.
      mastra.ai/docs/workflows/suspend-and-resume.md · checked
    • Studio provides an interactive UI for building, testing, and managing your agents, workflows, and tools. Run it locally during development, add authentication, or deploy it to production so your team can manage agents and monitor performance, plus gain insights through built-in observability.
      mastra.ai/docs/studio/overview · checked
    • Mastra also supports external tracing providers like Langfuse, Datadog, and any OpenTelemetry-compatible platform.
      mastra.ai/docs/observability/overview · checked
    • The Apache 2.0 core includes agents, workflows, memory, MCP, tracing and Studio, and you can host it anywhere. Role-based access in Studio and the Studio editor sit in ee folders and need an enterprise licence in production. The Mastra platform hosts agents and Studio with a free Starter plan, and Teams costs $250 a month.
      geekflare.com/open-source/mastra · published · checked
    Show all 6
  • License 1
    • This repository uses a dual-license model: Apache License 2.0: The core framework and the vast majority of this codebase is open source under Apache-2.0. Mastra Enterprise License: Code in any directory named ee/ (e.g., packages/core/src/auth/ee/) is source-available under the Mastra Enterprise License. These features require a valid enterprise license for production use but can be freely used for development and testing.
      github.com/mastra-ai/mastra · checked