At a glance
- Tags
- Open source, Self-hosted
Code
- Last push
- 15 October 2026
What is Mastra?
Mastra is an open-source TypeScript framework for developers and teams building AI-powered applications and agents without switching to Python. It combines FrameworkTS, AI Orchestration, Observability, Studio, Collaborative Studio, Server, Memory Gateway, and Cloud Deployment, with REST API access and integrations like Next.js, Express, Hono, GitHub, Slack, Zapier, Discord, YouTube, and X (Twitter). Pricing runs Free, Pro custom, and Enterprise custom.
A TypeScript framework for agents, with a hosted platform beside it
Mastra's docs open by calling it a TypeScript framework for building AI agents and applications. A project starts from npm create mastra@latest, which scaffolds an agent harness with a local workspace, shell tools, memory, task tracking, web access and recurring schedules, and opens Studio, a local UI for the project.
The homepage groups the framework into agents, workflows ("typed steps, retries, and branches"), a harness for multi-mode agents, memory with observational memory and semantic recall, a server that registers agents and workflows and deploys "the same app to Mastra Cloud", and Factory, "a system of specialized AI agents that takes software from issue to production." Observability covers traces, metrics, logs, evals and datasets.
MCP works in both directions.
Hosted plans charge a base fee, then meter about ten resources
The pricing page has two tabs, Mastra Platform and Self-Hosted, and no monthly/annual billing switch.
On the platform, Starter is $0 a month with 100K observability events (then $10/100K), 24 CPU hours (then $0.35/hr), 15 days of retention and unlimited users, deployments and projects. Teams is $250 a month with 1M events (then $8/100K), 250 CPU hours (then $0.25/hr), 6 months of retention, and "Multiple teams, SSO, and SOC 2 docs". Enterprise is custom priced, with RBAC, audit logs, uptime SLAs and a dedicated support engineer.
The base fee is only part of the bill. The comparison table also meters data egress (10GB on Starter, 100GB on Teams, then $0.10/GB), a persistent 24/7 server at $100 per project, gateway tokens at "Market Rate + 5.5%", memory tokens at $10/1M past the allowance, retrieval storage at $20/GB, and LibSQL rows, Postgres compute hours and database storage, each with its own overage rate. No cost calculator is published.
On the Self-Hosted tab, the framework is free and "Apache 2.0 licensed".
Open source, except the features a larger team needs in production
The license page describes a dual model: Apache 2.0 for most of the codebase, and the Mastra Enterprise License for anything under an ee/ directory, including @mastra/core/auth/ee, @mastra/core/agent-builder/ee and @mastra/editor/ee. That code is source-available and free for development and testing.
The page lists exactly what needs a license in production. Authentication on API routes with any provider (Auth0, Clerk, Okta, WorkOS and others) does not. A Studio sign-in screen with a third-party provider, role-based access control, fine-grained authorization and Agent Builder do. A team that plans to give non-engineers Studio access through its identity provider is buying the Enterprise license.
SOC 2 Type II is published, and so is a 2026 supply-chain attack
The trust center says Mastra "received our SOC 2 Type II Report in October 2025" and offers the report on request.
The same trust center carries Mastra's incident report for June 16, 2026. Anyone who installed @mastra packages in that window was exposed to the credential theft.
A 45-person company from the team behind Gatsby
The about page says Mastra started in 2024, has 45 people working remotely and is based in San Francisco. It names Sam Bhagwat (founder and CEO), Abhi Aiyer (CTO) and Shane Thomas (Chief Product Officer), and says the team previously built Gatsby. It states $35m raised from investors including Spark Capital, Gradient, basecase and Y Combinator, and the founders' video caption refers to a $22m Series A.
The homepage links customer stories from Salesforce, Sanity, WorkOS, MongoDB and Range, all hosted on Mastra's own site.
Engineering teams in TypeScript, and nobody else
The getting started pages show no Python SDK and no route for a team that does not write TypeScript, so a Python shop or a non-technical buyer gets nothing from the framework directly. Agent Builder, the closest thing to a no-code surface, is an Enterprise-licensed feature in production.
Teams that need predictable spend should model the platform's metered lines before committing, since CPU time, egress, gateway tokens and databases are each billed separately above the plan allowance. Teams that want to avoid metering entirely can self-host the Apache 2.0 framework, or pay the flat annual Self-Hosted Enterprise fee once they need SSO, RBAC or Agent Builder.
Mastra price and terms
Terms
- Free plan
- YesYes
The terms in full
Starter platform plan is $0/month with 100K observability events (then $10/100K), 24 CPU hours (then $0.35/hr), 15 days data retention, unlimited users, deployments and projects. The self-hosted framework is free under Apache 2.0.
For AI agents
- MCP server
- Yes
- API
- Yes

Pricing page, captured
mastra.ai/pricing, checked
All plans and limits
| Plan | Price | Data Egress | Memory Token Usage | Compute Hours (Postgres) |
|---|---|---|---|---|
| Free | $0 a month | Not stated | Not stated | Not stated |
| Starter | $0 a month | 10GB | 100,000 | 5 hours |
| Teams | $250 a month | 100GB | 1M | 5 hours |
| Enterprise | Price on request | 100GB | 1M | Not stated |
Read from mastra.ai/pricing.
What we checked on Mastra
What the price counts
The hosted platform charges a flat monthly plan fee with included observability events and CPU hours, then meters overages per 100K events and per CPU hour; Enterprise is quote-only.
Teams For growing teams $250 / month Observability events 1M events + $8/100K CPU time 250 CPU hours + $0.25/hr
mastra.ai/pricingChecked
Free tier
A standing $0 Starter plan on the hosted platform includes 100K observability events, 24 CPU hours and 15-day retention with unlimited users, and the self-hosted framework is Apache 2.0 at $0 a month, so no sales call is needed.
Starter Free for everyone $0/ month
mastra.ai/pricingChecked
Public API
Every registered agent and workflow is exposed as an HTTP endpoint, with OpenAPI/Swagger, a typed client SDK and OpenAI-compatible Responses routes.
Mastra runs as an HTTP server that exposes your agents, workflows, and other functionality as API endpoints.
MCP server
Both directions: MCPClient consumes external MCP servers, and MCPServer publishes your agents, tools and workflows to other MCP clients over stdio or HTTP.
Use MCPServer to expose Mastra agents, tools, workflows, prompts, and resources to other MCP-compatible systems.
Open source
The framework (Community Edition) is Apache 2.0 on GitHub; enterprise features sit in a separately licensed Enterprise Edition.
Mastra is fully open source under the Apache 2.0 license, so you control your source code and infrastructure.
mastra.ai/ai-agent-frameworkChecked
Mastra alternatives
Questions about Mastra
- How much does Mastra cost?
- Mastra has a free plan. Its paid plans are Teams at $250 a month and Enterprise. From mastra.ai/pricing, checked 2 November 2026.
- Does Mastra have an API or an MCP server?
- It has an API. It has an MCP server.
- Is Mastra open source, and can you host it yourself?
- It is open source. You can host it yourself.
- What have we checked on Mastra?
- 5 facts, under these headings: What it costs to start, how you build with it.
- How do we check Mastra?
- We hold 5 facts on Mastra, quoted from 4 pages. Facts and price last checked 2 November 2026.
Sources and changes
Last changed
Sources on mastra.ai4
Repository
- Stars
- 28,835
- Last push
- 15 October 2026
Similar in Agent tools and integrations
See all in Agent tools and integrations
- ERIUS PHONEA dedicated virtual Android phone per AI agent, with Google Play apps and sign-ins that persist between sessions.
- ClineFlowGit-native project memory and handoffs for coding agents.
- UI DiscoveryLibrary of real website and app UI sections, queryable by AI assistants over MCP and a REST API.
- AgentMailEmail inbox API that gives each AI agent its own address, threads, webhooks and MCP server.
From our research
- Daytona vs E2B vs Modal: which sandbox for agent code?Daytona, E2B and Modal compared on sandbox pricing, concurrency, GPU support and open-source status, plus why Daytona's flagship repo is now archived.
- ERIUS PHONE review (2026): pricing, pros and consERIUS PHONE rents AI agents real cloud Android phones they drive by API, priced monthly per phone in euros, but it offers no webhooks.
- Hyper review (2026): an autonomous coding agent that ships verified pull requestsHyper plans, tests and delivers pull requests to your GitHub repository from an isolated cloud sandbox, with a verification check on each one and a hard spending cap on every run.
Is this yours?
Claim it free, then see who reads this page and carry the verified owner mark. You confirm it with an email at mastra.ai.
Report an error if a fact is wrong.