# Mastra

> The modern TypeScript framework for AI-powered applications and agents

Source: https://talira.ai/catalog/mastra-2p2exeg9
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Framework, Library, Infrastructure
- Categories: [ai / agents / frameworks](https://talira.ai/categories/ai/agents/frameworks), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: Apache-2.0[^1]
- Pricing: Free tier, from $25/month[^3]
- Pricing notes: The framework is free and open source. Mastra Platform prices are per workspace a month (22 Nov 2026).
- Free tier: yes[^3]
- Self-hostable: yes[^4]
- Cloud hosted: yes[^3]
- SOC 2: yes[^3]
- SSO: yes[^3]
- SSO tax: SSO only in plans priced by sales (an enterprise plan)
- Backed by: [Mastra](https://talira.ai/orgs/mastra.md)

Mastra is an open source TypeScript framework for building AI agents and AI features, from prototype to production. It routes to models from 40+ providers through one interface, runs agents that use tools until they finish, orchestrates multi-step processes in a graph-based workflow engine with branches, parallel steps and human-in-the-loop suspend and resume, and manages context with conversation history, RAG and memory. It can author MCP servers, embeds in React, Next.js or Node.js apps or deploys as a standalone server, and ships with evals, observability and a local Studio for testing agents. Its makers also sell Mastra Platform, hosted deployment and observability with free and paid plans.

## Links

- Website: https://mastra.ai/
- GitHub: https://github.com/mastra-ai/mastra
- Docs: https://mastra.ai/docs
- Pricing: https://mastra.ai/pricing

## Problems it solves

- build AI agents in TypeScript instead of Python
- add an AI agent to my Next.js app with tools, memory and streaming
- switch between OpenAI, Anthropic and Gemini models without rewriting my agent
- orchestrate a multi-step AI workflow with branches and parallel steps
- pause an AI workflow until a person approves, then resume where it left off
- give my agent long-term memory and retrieval over my own documents
- expose my agent's tools as an MCP server other agents can call
- test and debug my agents locally in a visual studio before shipping
- measure my agent's quality with evals and trace what it did in production
- deploy TypeScript agents without setting up my own infrastructure

## Features

- model routing to 40+ providers through one interface
- agents with tools and stopping conditions
- graph-based workflows with .then(), .branch() and .parallel()
- human-in-the-loop suspend and resume with stored state
- conversation history, RAG and observational memory
- author MCP servers
- embed in React, Next.js or Node.js, or run as a standalone server
- built-in evals and observability
- Mastra Studio for building and testing agents locally
- npm create mastra scaffolding

## Ways to run it

### Mastra Framework

You run it, Apache-2.0. Price: free.[^1]

Not included:

- Enterprise features in ee/ directories (auth, agent builder, editor) need a commercial licence for production use[^2]

You arrange:

- hosting for the Node.js server
- a database for storage and memory
- API keys for model providers

Self-hosting docs: https://mastra.ai/docs

### Mastra Platform

Hosted by Mastra. Price: Free; Starter $25/month; Team $250/month; Enterprise custom.[^3]

Only in this edition:

- zero-config deployments
- hosted observability and trace retention
- SOC 2 report on Team
- RBAC, SSO and audit logs on Enterprise

Pricing: https://mastra.ai/pricing

## Capabilities

- Has a command line tool: plan not known
- Has single sign-on: Enterprise plan, priced by sales[^3]

## Trust

Overall: 0.36 out of 1.
Signals: backing 0.40, extensibility 0.20.

- has a company behind it
- security: SOC 2

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [VoltAgent](https://talira.ai/catalog/voltagent-8ydbe4p9.md): Open source TypeScript AI agent framework, with the VoltOps console for observability, evals and deployment
- [Agent Development Kit (ADK)](https://talira.ai/catalog/agent-development-kit-adk-9g8qsz18.md): Google's open source framework to build, debug and deploy AI agents
- [AI SDK](https://talira.ai/catalog/ai-sdk-6402bhq1.md): The AI Toolkit for TypeScript, from the creators of Next.js
- [AgentScope](https://talira.ai/catalog/agentscope-2sc18s11.md): Build and run agents you can see, understand and trust
- [LangChain](https://talira.ai/catalog/langchain-x3527dp4.md): A framework for building agents and LLM-powered applications
- [LangGraph](https://talira.ai/catalog/langgraph-0wg8grbt.md): Low-level orchestration framework for building stateful agents

## Sources

[^1]: https://github.com/mastra-ai/mastra/blob/main/LICENSE.md (checked 22 Nov 2026)
[^2]: https://github.com/mastra-ai/mastra/blob/main/ee/LICENSE (checked 22 Nov 2026)
[^3]: https://mastra.ai/pricing (checked 22 Nov 2026)
[^4]: https://github.com/mastra-ai/mastra (checked 22 Nov 2026)
