Mastra
TypeScript-first agent framework with native MCP, RAG, and observability
View on GitHubWhat it solves
Building agents in TypeScript without reaching for Python: Mastra brings RAG, memory, and observability to the Node.js ecosystem in a single cohesive package.
Overview
TypeScript agent framework from the team behind Gatsby, backed by Y Combinator (W25). Mastra treats MCP (Model Context Protocol) as a first-class transport for tool discovery, bundles RAG and long-term memory into the same package, and ships built-in OpenTelemetry tracing. Runs on Node.js and reaches 300k+ weekly npm downloads. The `ee/` directory adds a self-hosted UI and deployment layer.
Key facts
- Language
- TypeScript
- License
- Apache 2.0
- Maturity
- Fast-moving
- Maintainer
- mastra-ai
- Reviewed
- 2026-06-11
Where to start
Start with the core package README to understand how agents, tools, and workflows compose before pulling in storage or observability layers.
packages/core/README.mdTechnologies
More in this domain
LangGraph
Stateful multi-agent orchestration for LLM applications
The state management problem in multi-agent systems: how you build agents that pass context across turns without losing the execution thread.
AutoGen
Multi-agent conversation framework from Microsoft Research
How to coordinate multiple specialized agents toward a shared goal without writing low-level orchestration logic by hand.
CrewAI
Role-based multi-agent orchestration for collaborative task execution
The boilerplate problem in multi-agent setup: defining roles, delegation rules, and task routing without writing a custom orchestration graph.