AI Agent Index
ByHeather MacAvelia·Last verified May 31, 2026
Mastra logo

Mastra

4.1/ 5

by Mastra (ex-Gatsby team)

MCP✓ Verified Review
Visit mastra.ai

Open-source TypeScript AI agent framework by the Gatsby team. v1.0 January 2026. YC W25, $13M funded, 24.6k+ GitHub stars. Used by Replit, SoftBank, Factorial. Framework free; Cloud from $250/mo.

Mastra is an open-source TypeScript framework for building production-ready AI agents, agentic workflows, and RAG pipelines. Created by the team behind Gatsby (Sam Bhagwat CEO, Abhi Aiyer CTO, Shane Thomas CPO), it graduated from Y Combinator''s Winter 2025 batch with $13M in funding and reached v1.0 in January 2026. As of May 2026, the framework has 24.6k+ GitHub stars and 300k+ weekly npm downloads. Mastra fills a real gap in the agent ecosystem: while LangChain, CrewAI, and AutoGen began in Python with later JavaScript ports, Mastra was designed from the ground up for TypeScript: the language most web developers already know. The framework provides core primitives: agents (autonomous LLM-driven decision makers), tools (typed external integrations via Zod schemas), and workflows (deterministic multi-step pipelines), plus built-in memory systems, MCP server support, RAG with vector database management, supervisor patterns for multi-agent orchestration, evals, observability, and Mastra Studio (a visual IDE for testing and debugging). The model router connects to 3,300+ models from 94 providers (OpenAI, Anthropic, Google Gemini, DeepSeek, Groq, Mistral, xAI Grok, Amazon Bedrock, Azure OpenAI, Ollama, OpenRouter, Vercel, Hugging Face, Cohere, Cerebras, and more) through one standard interface with automatic fallbacks and IDE autocomplete. Production users include Replit (Mastra powers Replit''s agent builder), Factorial, Counsel Health, Cedar, and SoftBank. Pricing: the core framework is open source under Apache 2.0 and free for any use. Enterprise features (RBAC, SSO, ACL) reside in the ee/ directory and require a commercial license for production use but are freely usable for development and testing. Mastra Cloud is a hosted platform with GitHub-connected deployments, autoscaling, instant rollbacks, and centralized observability. Mastra Cloud pricing (as of May 2026): Starter is free at $0/month (100K observability events, 24 CPU hours, 15 days data retention). Teams is $250/month (1M events, 250 CPU hours, 6 months retention, multiple teams, SSO, SOC 2 docs). Enterprise is custom pricing (custom volume and retention, RBAC, audit logs, uptime SLAs, dedicated support engineer). Self-hosted deployment is available at no cost. Best fit: TypeScript and JavaScript developers building production AI agents without learning Python, full-stack web teams adding agentic features to Next.js, React, Express, or Hono apps, and platform companies (like Replit) embedding agent infrastructure into their own products. Who Mastra is not for: Python-only shops or teams committed to LangChain and CrewAI Python workflows cannot use Mastra without rewriting in TypeScript. Teams needing turn-key no-code agent builders rather than developer frameworks should consider Botpress, Voiceflow, or Microsoft Copilot Studio instead. Teams requiring enterprise compliance documentation (SOC 2, ISO 27001) are available on the Teams and Enterprise Mastra Cloud tiers.

Pricing

freemium · $250

View pricing ↗

Segment

b2b

Setup

moderate

Verified

May 31, 2026

Transparency

Public

Contract

Month-to-month

Data training

Not Disclosed

Autonomy

Human Optional

Capabilities

agentic-codingworkflow-buildermulti-file-editingopen-sourcebyokautonomous

Pros & Limitations

Editorial assessment

Pros

  • TypeScript-native framework rather than Python-first port: designed from scratch for the TS/JS ecosystem with full IDE autocomplete, Zod schema validation, and deep integration with Next.js, React, Express, and Hono; meaningful advantage for web developers who do not want to learn Python to ship production agents
  • Model router connects 3,300+ models across 94 providers (OpenAI, Anthropic, Google, DeepSeek, Groq, Mistral, xAI, Bedrock, Azure, Ollama, OpenRouter, Vercel) through one standard interface with automatic fallbacks: broader provider coverage than LangChain's JS port and dramatically simpler than wiring providers manually
  • Strong adoption signals demonstrate production readiness: 24.6k+ GitHub stars, 300k+ weekly npm downloads, $13M YC funding, v1.0 January 2026, and production use by Replit, Factorial, Counsel Health, Cedar, and SoftBank means it is meaningfully more battle-tested than newer agent frameworks

Limitations

  • TypeScript-only by design with no Python support: the team views this as a feature, but Python-first teams committed to LangChain, CrewAI, or AutoGen workflows cannot use Mastra without rewriting in TypeScript; not appropriate for data science or ML teams already standardized on the Python ecosystem
  • Enterprise features (RBAC, SSO, ACL) require paid Mastra Cloud or commercial license: the Teams plan at $250/month adds SSO and SOC 2 documentation; production deployment with enterprise auth requires either Mastra Cloud Teams or a sales-led enterprise license rather than the free Apache 2.0 tier
  • Framework rather than turn-key product: Mastra provides primitives that developers compose with code; teams without TypeScript engineering capacity should consider hosted no-code agent builders like Botpress, Voiceflow, or Microsoft Copilot Studio rather than investing in framework adoption

Technical Details

Deployment
cloudself-hosted
Model architectureApache 2.0 open source — framework, not a model
Avg setup timeUnder 5 minutes to first running agent via npm create mastra@latest: includes scaffolded project structure, starter agent, model router, and Mastra Studio dev server; minutes to hours depending on integration depth with existing TypeScript codebase
Autonomous rateFramework provides agent primitives that autonomously reason about goals, decide which tools to use, and iterate until completion: with optional stopping conditions, human-in-the-loop approval gates for tool calls, and deterministic workflow controls for cases where full autonomy is not appropriate.
MCP compatibleYes
Integrations
OpenAIAnthropicGeminiNext.jsReactNode.jsMCPVercel AI SDKLanceDBPostgreSQL

Similar agents

Rating

4.1/ 5

Editorial score

How we score this →

Score breakdown

AutCap 4 · IntDepth 5 · PriceTrans 5 · IndEvid 3 · SetupAcc 5 = 4.05

Industries

DevToolsOpen Source

Leave a review

Never displayed publicly.

Agent Stacks

See workflow stacks that feature Mastra.

Compare

Related Content

Is this your tool?

Claim this listing to update your details and get a Verified badge.

Claim listing →