# 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 開發者工具, 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 開發者工具, AI Workflow, AI 應用程式建構器，支援以下平台：網站，其核心能力標籤包括：AI 智慧代理框架, TypeScript AI 框架, JavaScript AI 框架, AI 應用程式開發, LLM 智慧代理, 智能體編排。

## 替代方案

| 工具名稱 | 每月造訪次數 | 定價模式 | 比較 |
| :--- | :--- | :--- | :--- |
| [Agno](https://openaitools.app/tw/tool/agno) | 140,302 | 需聯絡報價、免費 | [比較](https://openaitools.app/tw/compare/agno-vs-mastra) |
| [Dify](https://openaitools.app/tw/tool/dify-ai) | 819,691 | 免費增值 | [比較](https://openaitools.app/tw/compare/dify-ai-vs-mastra) |
| [Agent-Native](https://openaitools.app/tw/tool/agent-native) | 52,065 | 免費 | [比較](https://openaitools.app/tw/compare/agent-native-vs-mastra) |
| [Sim AI](https://openaitools.app/tw/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/tw/compare/mastra-vs-sim-ai) |
| [n8n](https://openaitools.app/tw/tool/n8n) | 4,522,449 | 免費增值 | [比較](https://openaitools.app/tw/compare/mastra-vs-n8n) |
| [Activepieces](https://openaitools.app/tw/tool/activepieces) | 258,553 | 免費增值 | [比較](https://openaitools.app/tw/compare/activepieces-vs-mastra) |
| [Agenta](https://openaitools.app/tw/tool/agenta) | 45,760 | 免費增值 | [比較](https://openaitools.app/tw/compare/agenta-vs-mastra) |
| [Composio](https://openaitools.app/tw/tool/composio) | 2,782,603 | 免費增值、需聯絡報價 | [比較](https://openaitools.app/tw/compare/composio-vs-mastra) |
| [Omnara](https://openaitools.app/tw/tool/omnara) | 14,555 | 免費增值 | [比較](https://openaitools.app/tw/compare/mastra-vs-omnara) |
| [Agents-Flex](https://openaitools.app/tw/tool/agents-flex) | 5,088 | Free / Open Source | [比較](https://openaitools.app/tw/compare/agents-flex-vs-mastra) |

---
來源：https://openaitools.app/tw/tool/mastra