Mastra
Framework for building AI agents with tools, memory and MCP server support.
3. Used by agents' projects
Dependency in 37 public GitHub projects set up for AI coding agents that we scanned (0.6%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Mastra does
Framework for building AI agents with tools, memory and MCP server support.
Mastra popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Mastra is used
- Mastra is a dependency in 37 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.8% of the 4,867 JavaScript/TypeScript ones), #8 of 192 in agent, mcp and tool libraries.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 316; those are left out of every share on this page.
- The most used alternative in our scan is LangChain.js (37 projects).
- Projects that use it most often also use Zod (97.3%), AI SDK (91.9%), TypeScript (91.9%).
By coding agent
Often used with
More about Mastra
Alternatives
Mastra This page
Build applications with LLMs using composable abstractions for chains, agents and memory.
AI framework for building, testing and monitoring generative AI applications.
OpenAI Agents SDK (JavaScript)
Lightweight framework for building multi-agent AI workflows.
Get started
Install it.
npm install @mastra/coreNo step-by-step start for Mastra yet: we have not written its hand-checked card.