# Mastra

根据 OpenAITools.app 于 2026-11-11 核对的流量数据，Mastra（mastra.ai）是一个收录在 AI Agent 下的 AI 平台，月访问量为 31.9万，月度环比流量变化为 -1.67万（-5%）。其主要地理市场为美国（21.3% 流量份额），采用免费增值，定价请咨询定价模式。按月流量计算的主要竞争替代方案包括 Agno（14.03万次访问/月），Dify（81.97万次访问/月），Agent-Native（5.21万次访问/月）。

Mastra is an open-source TypeScript framework for building, deploying, and observing AI agents and workflows. It gives JavaScript developers typed agents, durable workflows, memory, MCP tool support, and built-in observability so prototypes can scale into production.

## 关键遥测与规格

| 指标 | 数值 |
| :--- | :--- |
| 工具名称 | Mastra |
| 标识 | mastra |
| Status | active |
| Origin | open_source |
| Maintenance | active |
| 官方域名 | mastra.ai |
| 官网地址 | https://mastra.ai |
| 分类 | AI Agent, AI Developer Tools, AI Workflow, AI 应用构建器 |
| 定价模式 | 免费增值，定价请咨询 |
| 月访问量 | 318,954 |
| 月度环比流量变化 | -16,743 |
| 月度环比增长率 | -5% |
| 主要市场 | 美国 |
| 市场份额 | 21.3% |
| 直接访问量 | 139,222 |
| 自然搜索访问 | — |
| 社交访问 | — |
| 推荐访问 | 18,220 |
| 邮件访问 | 3,416 |
| 评价得分 | 4.6 |
| 收藏数 | 0 |
| 支持平台 | 网站 |
| 计费平台 |  |
| 属性 | 定价: 免费增值; 定价: 定价请咨询; 功能: 网站 |
| 标签 | AI 智能体框架, TypeScript AI 框架, JavaScript AI 框架, AI 应用开发, LLM 智能体, 智能体编排, AI 工作流, 类型化工作流, 工作流自动化, 智能体记忆, 观察式记忆, 语义召回, 人工介入, MCP 服务器, Model Context Protocol, AI 工具, 模型路由, OpenAI 集成, Anthropic 集成, Google Gemini 集成, xAI 集成, AI 可观测性, LLM 追踪, AI 指标, AI 日志, 智能体评估, LLM 评估, 数据集, 评分器, 智能体实验, Mastra Studio, 智能体构建器, 编码智能体, 内部智能体, 面向客户的智能体, 开发者平台智能体, AI 助手（Copilot）, AI 自动化, 自托管 AI, AI 云端部署, 企业级 AI, RBAC（基于角色的访问控制）, SSO, VPC 部署, Apache 2.0 开源 |

## 概览

Mastra is an open-source TypeScript framework for building, deploying, and observing AI agents and workflows. It gives JavaScript developers typed agents, durable workflows, memory, MCP tool support, and built-in observability so prototypes can scale into production.

## 定价与套餐

Freemium. The framework is Apache 2.0 open source and free to self-host. Mastra Cloud offers paid/managed tiers, with enterprise pricing available on request.

## 关键功能与能力

- **Typed agents and workflows:** Define agents with instructions, models, tools, and runtime behavior, then compose typed workflow steps with retries and branching in TypeScript.
- **Durable agent memory:** Give agents long-lived context with observational memory, semantic recall, and thread-aware storage.
- **Built-in observability:** Traces, metrics, logs, and datasets show every model call, tool call, and handoff in a searchable timeline.
- **Evaluations and scorers:** Score agent runs against repeatable checks and experiments before changes reach production.
- **MCP and model integrations:** Connect MCP servers for tool use and route across major model providers including OpenAI, Anthropic, Google Gemini, and xAI.

## 主要用例

- **Build production AI agents in TypeScript (Backend / Full-stack Developer):** Ship typed agents with tools, memory, and workflows without leaving the JavaScript ecosystem.
- **Add observability to agent deployments (Platform / AI Engineer):** Use traces, metrics, and evals to debug agent behavior and catch regressions before release.
- **Standardize agent infrastructure (Engineering Team Lead):** Give a team one framework for agents, workflows, and deployment, with self-hosting or managed cloud options.

## 优势

- TypeScript-first design fits existing JavaScript and Node.js stacks
- Apache 2.0 open source with a free self-hosted path
- Observability, evals, and datasets are built in rather than bolted on
- Memory, workflows, MCP, and multi-provider routing included
- Managed cloud adds enterprise controls like RBAC, SSO, and VPC

## 局限

- Requires TypeScript and developer familiarity to get value
- Cloud and enterprise pricing is quote-based with limited public detail
- Fast-moving framework means APIs can change between releases
- Best suited to engineering teams, not no-code users

## 常见问题

### Is Mastra free to use?
The framework is Apache 2.0 open source and free to self-host. Mastra Cloud offers managed paid plans, with enterprise pricing available on request.

### What language does Mastra use?
Mastra is built for TypeScript and JavaScript, so agents, workflows, and tools live in the same codebase as the rest of your app.

### Does Mastra include observability?
Yes. It ships traces, metrics, logs, evaluations, datasets, and scorers so you can inspect and score every production agent run.

### Can I self-host Mastra?
Yes. The open-source framework runs locally and on your own infrastructure, and the same app can be deployed to Mastra Cloud when you want managed hosting.

### Mastra 的月流量和增长趋势如何？
Mastra 目前每月获得 31.9万访问量，月度环比流量变化为 -1.67万（增长率 -5%）。其主要来源市场是美国（21.3% 份额），包括每月 13.92万次直接访问和每月 — 次自然搜索访问。

### Mastra 免费吗？它的定价模式是什么？
Mastra 采用免费增值，定价请咨询定价模式。Freemium. The framework is Apache 2.0 open source and free to self-host. Mastra Cloud offers paid/managed tiers, with enterprise pricing available on request. 支持的计费和结账平台包括：未列出。

### 2026 年 Mastra 的最佳替代方案有哪些？
基于 OpenAITools.app 的分类流量和功能契合度，Mastra 的前五个替代方案是：1. Agno（14.03万次访问/月）; 2. Dify（81.97万次访问/月）; 3. Agent-Native（5.21万次访问/月）; 4. Sim AI（14.1万次访问/月）; 5. n8n（452.24万次访问/月）。

### Mastra 支持哪些平台和核心 AI 能力？
Mastra 被归类在 AI Agent, AI Developer Tools, AI Workflow, AI 应用构建器下，支持以下平台：网站，其核心能力标签包括：AI 智能体框架, TypeScript AI 框架, JavaScript AI 框架, AI 应用开发, LLM 智能体, 智能体编排。

## 替代工具

| 工具名称 | 月访问量 | 定价模式 | 对比 |
| :--- | :--- | :--- | :--- |
| [Agno](https://openaitools.app/zh/tool/agno) | 140,302 | 定价请咨询，免费 | [对比](https://openaitools.app/zh/compare/agno-vs-mastra) |
| [Dify](https://openaitools.app/zh/tool/dify-ai) | 819,691 | 免费增值 | [对比](https://openaitools.app/zh/compare/dify-ai-vs-mastra) |
| [Agent-Native](https://openaitools.app/zh/tool/agent-native) | 52,065 | 免费 | [对比](https://openaitools.app/zh/compare/agent-native-vs-mastra) |
| [Sim AI](https://openaitools.app/zh/tool/sim-ai) | 140,953 | Freemium, Paid (per user/month), and Enterprise with custom pricing; self-hosting free under Apache 2.0 | [对比](https://openaitools.app/zh/compare/mastra-vs-sim-ai) |
| [n8n](https://openaitools.app/zh/tool/n8n) | 4,522,449 | 免费增值 | [对比](https://openaitools.app/zh/compare/mastra-vs-n8n) |
| [Activepieces](https://openaitools.app/zh/tool/activepieces) | 258,553 | 免费增值 | [对比](https://openaitools.app/zh/compare/activepieces-vs-mastra) |
| [Agenta](https://openaitools.app/zh/tool/agenta) | 45,760 | 免费增值 | [对比](https://openaitools.app/zh/compare/agenta-vs-mastra) |
| [Composio](https://openaitools.app/zh/tool/composio) | 2,782,603 | 免费增值，定价请咨询 | [对比](https://openaitools.app/zh/compare/composio-vs-mastra) |
| [Omnara](https://openaitools.app/zh/tool/omnara) | 14,555 | 免费增值 | [对比](https://openaitools.app/zh/compare/mastra-vs-omnara) |
| [Agents-Flex](https://openaitools.app/zh/tool/agents-flex) | 5,088 | Free / Open Source | [对比](https://openaitools.app/zh/compare/agents-flex-vs-mastra) |

---
来源：https://openaitools.app/zh/tool/mastra