# Mastra

> A TypeScript framework for AI applications and agents, with model routing, workflows, RAG and evals.

## Facts
- **Category:** [Agent Frameworks](https://agentsearchengine.app/category/agent-frameworks)
- **Type:** Framework
- **Pricing:** Open source
- **GitHub stars:** 28,277
- **Language:** TypeScript
- **License:** Apache-2.0
- **Last repo activity:** today (Sep 23, 2026)
- **Official site:** https://mastra.ai
- **Source code:** https://github.com/mastra-ai/mastra
- **Listing on Agent Search Engine:** https://agentsearchengine.app/agents/mastra
- **Data verified:** September 2026

## Best for
TypeScript teams building production agents without switching to Python.

## Avoid if
You need its enterprise features in production without a commercial licence; code under ee directories requires one.

## About Mastra
Mastra is a TypeScript framework for AI applications and agents that runs inside React, Next.js and Node projects or as a standalone server. It routes to more than 40 model providers through one interface and covers autonomous agents, graph-based workflows, memory, RAG, MCP and evals, from prototype to production. Most of the code is Apache-2.0; directories marked ee are source-available under an enterprise licence.

## Install

```
npm create mastra@latest
```

## Alternatives
Mastra sits in agent frameworks. Related tools indexed here:
- [langchain](https://agentsearchengine.app/agents/langchain) — The agent engineering platform. · Open source · Framework · 147k★ · Python · MIT · active today
- [ruflo](https://agentsearchengine.app/agents/ruflo) — The leading agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. · Open source · Framework · 73k★ · TypeScript · MIT · active 1 day ago
- [MetaGPT](https://agentsearchengine.app/agents/metagpt) — A multi-agent framework that assigns software-company roles to LLM agents to turn a requirement into a project. · Open source · Framework · 71k★ · Python · MIT · active 8 months ago
- [autogen](https://agentsearchengine.app/agents/autogen) — A programming framework for agentic AI; upstream is in maintenance mode. · Open source · Framework · 61k★ · Python · CC-BY-4.0 · active 5 months ago
- [crewAI](https://agentsearchengine.app/agents/crewai) — Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks. · Open source · Framework · 59k★ · Python · MIT · active today
- [LlamaIndex](https://agentsearchengine.app/agents/llamaindex) — Framework for connecting LLMs and agents to your own documents and data. · Open source · Framework · 52k★ · MIT · active today
- [LangGraph](https://agentsearchengine.app/agents/langgraph-platform) — LangChain's low-level orchestration framework for stateful, controllable agents. · Open source · Framework · 42k★ · Python · MIT · active today
- [DSPy](https://agentsearchengine.app/agents/dspy) — Stanford's framework for programming, not prompting, language models, with optimisers for prompts and weights. · Open source · Framework · 38k★ · Python · MIT · active today

---
Source: [Agent Search Engine](https://agentsearchengine.app) — an independent, hand-curated index of AI agents, MCP servers, and frameworks. Rankings are never sold; sponsored placements are labeled and never numbered. Full directory: https://agentsearchengine.app/llms-full.txt
