# Mastra

CreateWithAI Hub page: https://createwithaihub.com/frameworks/mastra
Latest version of this file: https://createwithaihub.com/frameworks/mastra.md

- Type: Framework · Category: Harnesses & Frameworks
- Publisher: Mastra (Kepler Software, Inc.)
- Pricing: Free · License: Apache-2.0

TypeScript framework for AI agents and graph-based workflows with memory, RAG, evals and model routing.

Mastra is a TypeScript framework for building AI applications and agents. It combines agents that use tools, a graph-based workflow engine with suspend and resume, memory and retrieval for context, MCP server authoring, and built-in evals and observability. It integrates with React, Next.js and Node or runs as a standalone server, and suits TypeScript teams taking agents to production.

Useful for: Building an agent plus a multi-step workflow that pauses for approval, with retrieval over your own data, inside a Next.js or Node app.

## Key features

- Model routing to 40+ providers through one interface
- Agents with tools and stopping conditions
- Graph-based workflows with .then(), .branch(), .parallel() and suspend/resume
- Conversation history, retrieval (RAG) and observational memory
- MCP server authoring, evals and observability; local Studio UI

## Connection

- Language: TypeScript / JS
- Focus: Agents & tool use, Workflows / graphs, RAG & data
- Model support: Multi-provider

## Install steps from the official documentation

Create project:

```
npm create mastra@latest
```

## Limitations

- Code in ee/ directories is under the Mastra Enterprise License and needs a license for production use

## Official links

- Website: https://mastra.ai
- Source repository: https://github.com/mastra-ai/mastra
- Documentation: https://mastra.ai/docs
- Source: https://github.com/mastra-ai/mastra (README: features, create command, dual licensing; LICENSE.md: Apache-2.0 outside ee/ directories)
