Agent Framework
mastra-ai/mastra
mastra-ai/mastra· TypeScript
TypeScript-first agent framework with workflows, RAG, evals, and MCP from the Gatsby team.
GitHub stats
- Stars
- 23,425
- Forks
- 1,980
- Watchers
- 91
- Open issues
- 392
meta
- License
- NOASSERTION
- Primary language
- TypeScript
- Last commit
- 2026-04-29
- Stats fetched at
- 2026-04-29
Mastra is an open-source TypeScript framework for building AI agents and applications, created by the team behind Gatsby. It bundles agents, deterministic workflows (graph-based steps with branching/suspend-resume), RAG, memory, evals, and MCP support into one stack that runs on Node.js and deploys to Vercel/Cloudflare/serverless. Spin up a project with `npm create mastra@latest`; integrates cleanly with Next.js and the Vercel AI SDK.
Editor's verdict
Pick Mastra if your team lives in TypeScript/Next.js and you want LangGraph-style workflows without dropping into Python. The workflow primitive (suspend/resume, branching, durable execution) plus built-in evals is the killer combo versus thinner wrappers like the raw Vercel AI SDK. Skip it if your stack is Python-native (use LangGraph), or if you just need a single-shot chatbot — Mastra's surface area is overkill for that.