# Mastra

> Open-source TypeScript framework for AI agents, workflows, and RAG.

- Website: https://mastra.ai
- Category: AI Agents & Automation
- Source page: https://opendirs.com/en/tools/mastra
- Pricing: Open source
- Starting price: $0
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: United States
- Last verified: Nov 28, 2026

## Overview

Mastra is an open-source TypeScript framework from the team behind Gatsby for building AI agents and applications. It includes agents with tools and memory, graph-based workflows, RAG, evals, MCP support, and built-in observability, plus a local playground for testing before deploying to any Node.js environment.

**Best for:** TypeScript developers building production AI agents.

## Key features

- Agents with tools, memory, and MCP
- Durable graph-based workflows
- RAG and evals built in
- Local dev playground and tracing

## Use cases

- Shipping an AI agent inside a Next.js or Node app
- Orchestrating multi-step LLM workflows
- Evaluating agent quality before release

## Pros

- First-class TypeScript experience
- Batteries-included framework
- Open source with fast release cadence

## Cons

- TypeScript-only
- Fast-moving APIs may change between versions

## Alternatives

- [Dify](https://opendirs.com/en/tools/dify.md)
- [Cassidy](https://opendirs.com/en/tools/cassidy.md)
- [FastGPT](https://opendirs.com/en/tools/fastgpt.md)
- [Dust](https://opendirs.com/en/tools/dust.md)
- [Watchflows](https://opendirs.com/en/tools/watchflows.md)

## FAQ

### What is Mastra?

Mastra is an open-source TypeScript framework from the team behind Gatsby for building AI agents and applications. It includes agents with tools and memory, graph-based workflows, RAG, evals, MCP support, and built-in observability, plus a local playground for testing before deploying to any Node.js environment.

### Is Mastra free?

Mastra uses a Open source pricing model (verified Nov 28, 2026).

### Does Mastra have an API?

Yes. Mastra offers an API for developers.

### Does Mastra support Chinese, and is it available in China?

Mastra does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to Mastra?

Popular alternatives to Mastra include Dify, Cassidy, FastGPT, Dust.

_Last verified: Nov 28, 2026_