Skip to content
aicoolies logo
Mastra logo

Mastra

TypeScript AI agent framework

TypeScript-native framework for building AI agents and workflows with great developer experience. Provides primitives for agents with tool calling, RAG pipelines, workflow orchestration with branching/parallel steps, and integration connectors. First-class TypeScript support with type-safe tool definitions. Local dev server with playground UI for testing. Growing as a LangChain alternative for TypeScript developers building AI apps.

About Mastra

Mastra is an open-source TypeScript AI framework created by the team behind Gatsby for building AI-powered applications and agents with a modern web development stack. It solves the challenge of bringing AI agent capabilities to the TypeScript ecosystem by providing primitives including workflows for complex operations, agents for autonomous decisions, RAG for knowledge integration, and evaluations for quality assurance. Backed by Y Combinator W25, Mastra has grown to 25K+ GitHub stars and more than 1M weekly npm downloads for @mastra/core, establishing itself as a leading TypeScript-native agent framework.

Mastra provides autonomous agents that use LLMs and tools to solve open-ended tasks with built-in reasoning, model routing across 40+ providers through a unified interface, and both short-term and long-term memory systems for maintaining context across threads and sessions. The framework includes Mastra Studio, a built-in IDE for testing and debugging agents, along with workflow orchestration for multi-step processes, built-in support for data syncing, web scraping, and vector database management. Mastra supports structured outputs, streaming responses, tool calling, and integrates with the Model Context Protocol (MCP) for connecting agents to external services.

Mastra is designed for TypeScript and JavaScript developers building AI-powered web applications, chatbots, research assistants, and automated workflows who want a framework that feels native to the modern web development ecosystem. It integrates seamlessly with frontend and backend frameworks like React, Next.js, Nuxt, and Astro, and can be deployed anywhere as a standalone server or embedded within existing applications. The framework is particularly appealing to teams already working in the TypeScript ecosystem who prefer a more integrated development experience compared to Python-centric alternatives like LangChain or CrewAI.

Pricing & Platform Specs

Pricing Summary

Mastra is 100% open-source under the Apache 2.0 license for self-hosting. Its hosted Mastra Studio platform offers a free Starter tier (100k events, 24 CPU hours), a Teams plan at $250/month (1M events, 250 CPU hours, 6-month retention, SSO), and custom Enterprise plans with SLAs and audit logging.

full pricing breakdown →

Supported Platforms

Node.js, TypeScript

Explore categories, tags & use cases

Framework for LLM applications

The most widely-used framework for building LLM-powered applications, available in Python and JavaScript. Provides abstractions for chains, agents, RAG, memory, tool usage, and structured output. Integrates with 100+ LLM providers, vector stores, document loaders, and tools. LangSmith offers tracing and evaluation. LangGraph enables stateful, multi-agent workflows with cycles. 100K+ GitHub stars. The de facto standard for LLM application development despite growing alternatives like LlamaIndex.

freemiumOpen Source

Data framework for LLM applications

Leading Python framework for building LLM-powered applications with focus on data-aware and agentic workflows. Provides tools for RAG (Retrieval-Augmented Generation), document indexing, vector store integrations, query engines, and multi-agent orchestration. 150+ data connectors for various sources. Works with OpenAI, Anthropic, local models, and more. Includes LlamaHub for community tools and LlamaCloud for managed RAG pipelines. 50K+ GitHub stars.

freemiumOpen Source

Build AI-powered web apps

Open-source TypeScript toolkit by Vercel for building AI-powered apps with streaming chat UIs, structured outputs, tool calling, and agent workflows. Framework-agnostic core with integrations for React, Next.js, Svelte, Vue, and Nuxt. Supports a broad AI SDK v6 provider catalog including OpenAI, Anthropic, Google, xAI, Mistral, Bedrock, Groq, and OpenAI-compatible providers. Includes useChat and useCompletion hooks for rapid UI development. The standard SDK for adding AI features to web apps.

Open Source

React components for building AI chat interfaces

assistant-ui is a TypeScript/React component library for building AI chat interfaces with streaming responses, tool rendering, branching conversations, and LLM provider integrations. It supports Vercel AI SDK, LangGraph, and custom backends out of the box. Used by LangChain, Browser Use, and Stack AI. YC W25-backed with 9,000+ GitHub stars and 450K+ monthly npm downloads.

freemiumOpen Source

TypeScript-first AI agent framework with built-in observability

VoltAgent is an open-source TypeScript AI agent framework with built-in observability, RAG support, memory management, and MCP integration. It provides a structured approach to building production AI agents in the Node.js ecosystem with agent debugging tools, sub-agent orchestration, and tool management. Over 7,000 GitHub stars and 150K+ weekly npm downloads.

freemiumOpen Source

Build and deploy AI agents on Cloudflare's edge network

Cloudflare Agents is an open-source SDK for building and deploying AI agents that run on Cloudflare's global edge network. It provides durable state, scheduled tasks, WebSocket communication, and browser rendering capabilities within Workers. Agents persist across requests using Durable Objects and can orchestrate multi-step workflows with built-in MCP server support. Over 7,000 GitHub stars.

Open Source

Side-by-Side Comparisons

Mastra logo
Mastra
vs
Agno logo
Agno

Mastra vs Agno — TypeScript Agent Framework vs Lightweight Python Agent Builder

Mastra and Agno are modern agent frameworks that prioritize developer experience over heavyweight abstractions. Mastra is TypeScript-native with web framework integration and Mastra Studio. Agno, formerly Phidata, is a lightweight Python framework focused on minimal boilerplate agent creation with multi-model support and a built-in agent UI for rapid prototyping.

MastraAgno
Mastra logo
Mastra
vs
CrewAI logo
CrewAI

Mastra vs CrewAI — TypeScript-First Agent Framework vs Python Multi-Agent Orchestration

Mastra and CrewAI represent the language divide in AI agent development. Mastra is a TypeScript-native framework from the Gatsby team with 22K+ stars, built for web developers with Next.js integration and Mastra Studio. CrewAI is a Python framework with role-based multi-agent orchestration where specialized agents collaborate on complex tasks through defined crew workflows.

MastraCrewAI
View 1 more comparisons

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Mastra?

TypeScript-native framework for building AI agents and workflows with great developer experience. Provides primitives for agents with tool calling, RAG pipelines, workflow orchestration with branching/parallel steps, and integration connectors. First-class TypeScript support with type-safe tool definitions. Local dev server with playground UI for testing. Growing as a LangChain alternative for TypeScript developers building AI apps.

Is Mastra free?

Yes — Mastra is open source and free to use. Mastra is 100% open-source under the Apache 2.0 license for self-hosting. Its hosted Mastra Studio platform offers a free Starter tier (100k events, 24 CPU hours), a Teams plan at $250/month (1M events, 250 CPU hours, 6-month retention, SSO), and custom Enterprise plans with SLAs and audit logging.

Is Mastra open source?

Yes — Mastra is open source.

Is Mastra still maintained?

Yes — Mastra is active. Its listing was last verified on August 26, 2026.

What are the best Mastra alternatives?

The first editor-selected Mastra alternatives are LangChain, LlamaIndex, Vercel AI SDK, and more.

How does Mastra score in our review?

The published editorial review lists Mastra at 86/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.