Mastra
Mastra is the modern TypeScript framework for AI-powered applications and agents.
vendor-statedGitHub description
In the 7 days to Mastra gained +149 GitHub stars, to 30k. Maintainer health 94/100, last commit on .
- What it does
- Mastra is a TypeScript framework for building AI agents and applications, with model routing across providers, a graph-based workflow engine, human-in-the-loop suspend and resume, conversation memory and retrieval, MCP server authoring, and built-in evals and observability. mastra-ai/mastra README
- Who it suits
- TypeScript developers adding agents and workflows to React, Next.js or Node.js apps, or shipping them as standalone servers. mastra-ai/mastra README
- Watch for
- Code in Mastra's ee directories is under the Mastra Enterprise License and needs a valid enterprise license for production use, though it is free for development and testing. mastra-ai/mastra README
- Repository
- mastra-ai/mastra
- Licence
- Apache-2.0LICENSE read 2026-10-24 (editorial)changed 2026-03-03
- Language
- TypeScript
- Contributors
- 463
- Forks
- 3,179
- Last commit
Star history
- earlier
- last 7 days
- latest reading
History starts 2026-10-08, so the 90-day view fills in on 2027-01-06.
How hard to run?
- Deploy
- Runs inside your app
- Server, our estimate
- no server of its own
OpenSSF Scorecard
Not scanned
No published scan for mastra-ai/mastra when we checked on 2026-12-04.
Licence history
commit
Apache-2.0 to Apache-2.0 for the core + Mastra enterprise licence for directories named ee/
“All content that resides under any directory named "ee/" within this repository, including but not limited to:”
announced
Elastic-2.0 to Apache-2.0
“[…] we’re excited to announce that Mastra is now licensed under Apache 2.0.”
A summary, not legal advice: the licence file in the project’s repository is what applies.
Similar AI agent frameworks
- Google ADK22.5k ★ · Apache-2.0▲up 0.7% over 7 days
- LangGraph45.8k ★ · MIT▲up 0.7% over 7 days
- Pydantic AI21.5k ★ · MIT▲up 0.5% over 7 days
- OpenAI Agents SDK31k ★ · MIT▲up 0.5% over 7 days
Mastra’s licence, in short
Is Mastra open source?
Yes. Mastra's source code is published under Apache-2.0, a permissive open-source licence approved by the Open Source Initiative. Its LICENSE file: “Content outside of the above-mentioned directories or restrictions is available under the "Apache License 2.0" as defined below.” and “All content that resides under any directory named ee/ within this repository […] is licensed under the license defined in ee/LICENSE.” (mastra-ai/mastra/blob/main/LICENSE.md, read 2026-10-24). Every tracked tool’s licence, with the same sources: Licences.
Is Mastra free?
Mastra is released under the Apache-2.0 licence, so it is free to use in your own application.
Quoted from mastra-ai/mastra’s LICENSE file, read on 2026-10-24. Every tracked licence
Sources
- measured
- GitHub API, 6 times a day; as of 2026-12-05 00:37 UTC.
- security
- No OpenSSF scan published; checked 2026-12-04.
- editorial
- Self-host profile and “In short”: the project’s own docs. Licence: its LICENSE file, 2026-10-24.
Rankings are never paid for. Star counts measure attention, not installs. Methodology
README badge and star chart
[](https://toolstrends.com/tools/mastra)<a href="https://toolstrends.com/tools/mastra"><picture><source media="(prefers-color-scheme: dark)" srcset="https://toolstrends.com/badge/mastra/history-dark.svg"><img alt="Mastra GitHub stars, tracked by Tools Trends" src="https://toolstrends.com/badge/mastra/history.svg" width="440"></picture></a>Click a snippet to select it; it links back to this page.