aicoolies logo
Mastra logo
Mastra logo

Mastra

TypeScript AI agent framework

open sourceupdated Aug 16, 2026

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.

Read our Mastra review

A detailed review by the aicoolies team — click to read

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

Apache-2.0 core free; Mastra Platform Starter $0, Teams $250/mo, Enterprise custom

Platforms

Node.js, TypeScript

Categories

Tags

Use Cases

LangChain logo

LangChain

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.

Open Source
LlamaIndex logo

LlamaIndex

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.

Open Source
Vercel AI SDK logo

Vercel AI SDK

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
assistant-ui logo

assistant-ui

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.

Open Source
VoltAgent logo

VoltAgent

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.

Open Source
Cloudflare Agents logo

Cloudflare Agents

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.

freemiumOpen Source

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Agent Skills logo

Agent Skills

Open standard for portable skills across AI agents

Agent Skills is the open SKILL.md folder specification for packaging reusable instructions, scripts, references, and assets that compatible AI agents load through progressive disclosure. Originally developed by Anthropic and released as an open standard, it defines the portable format itself—not an example library, marketplace, or hosted agent product.

Open Source
hyperagent

HyperAgent

Open-source natural-language browser automation framework for AI agents

An AGPL-3.0 TypeScript framework that drives a real browser from natural-language tasks — the self-hostable OSS framework from Hyperbrowser, distinct from the vendor's paid cloud browser product.

freeOpen Source
KaibanJS logo

KaibanJS

JavaScript framework for building and visualizing multi-agent workflows on a Kanban board

KaibanJS is an MIT-licensed JavaScript framework for defining AI agents, tasks, tools, and teams, then orchestrating their work through a Kanban-inspired runtime and visual board. It can run inside Node.js, React, or Next.js projects, supports custom UIs and headless workflows, and provides real-time task-state visibility for multi-agent applications.

Open SourceTelemetry
Sakana Fugu logo

Sakana Fugu

Multi-agent model API that orchestrates frontier models behind one OpenAI-compatible endpoint

Sakana Fugu is a hosted model-provider API that exposes a learned multi-agent system as one OpenAI-compatible model. It dynamically routes coding, code review, research, and reasoning tasks across a frontier-model pool, with Fugu for lower-latency work and Fugu Ultra for harder workloads where answer quality matters more than cost or speed.

paidTelemetry
LangChain logo

OpenWiki

LangChain CLI for maintaining agent-friendly codebase documentation

OpenWiki is LangChain’s open-source CLI for generating and maintaining an agent-focused wiki inside a codebase. It can create an openwiki/ documentation folder, update it from repository changes, add guidance to AGENTS.md or CLAUDE.md, and run via an interactive CLI or daily GitHub Action so coding agents have durable context without stuffing every detail into prompts.

Open SourceTelemetry
Accomplish Coworker logo

Accomplish Coworker

Open-source desktop AI coworker for browsing and code execution.

Accomplish Coworker is an MIT-licensed open-source AI coworker that runs on the desktop, combining computer-use style browsing with code execution so agents can research, implement, run, and debug workflows in one local environment.

Open SourceTelemetry

Used in Stacks

Comparisons

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 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

Mastra vs LangGraph — TypeScript-First Agent Framework vs Graph-Based Orchestration

Mastra and LangGraph both build AI agents with workflow orchestration, but from different ecosystems. Mastra is a TypeScript-first framework with $13M seed funding, 220K weekly npm downloads, and integrated MCP support. LangGraph extends LangChain with stateful graph-based agent orchestration in Python and TypeScript. This comparison helps agent developers choose between TypeScript-native design and the LangChain ecosystem.

MastraLangGraph

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. Apache-2.0 core free; Mastra Platform Starter $0, Teams $250/mo, Enterprise custom

Is Mastra open source?

Yes — Mastra is open source.

What are the best Mastra alternatives?

The top editor-verified Mastra alternatives are LangChain, LlamaIndex, Vercel AI SDK, and more.

How does Mastra score in our review?

Our hands-on review scores Mastra 86/100 overall, based on speed, privacy, and developer-experience testing.