Mastra

 »  AI Agents  »  Framework  »  Mastra  URL Share on

 Repository  22,290  1,782

Battery-included TypeScript framework for building AI agents, workflows, RAG, and evaluations

typescript full-stack workflows rag evaluations mcp
Framework Hybrid Stable Maintained

Key Features

Multi-Agent
Single Agent
Human-in-the-Loop
Streaming
Async Support
Type Safe
Short-Term Memory
Long-Term Memory
Shared Memory
Plugin System
Custom Tools
MCP Protocol
A2A Protocol
Code Execution
Web Browsing
File System Access
Sandboxing
Guardrails
Structured Output
DAG Workflows
Visual Builder
CLI
API Server
Self-Hosted
Cloud Hosted

Community Feedback

Strengths

  • Fastest idea-to-deployment for JS/TS
  • End-to-end TypeScript with type safety
  • Built-in workflow engine with DAG primitives
  • Multi-agent supervisor pattern
  • Local dev UI
  • Rapid community growth

Weaknesses

  • Younger than LangChain — fewer integrations (growing)
  • No built-in models
  • Learning curve for workflow/state management
  • Deployment smoothest on Vercel

Mastra Details

OrganizationMastra AI (from Gatsby team)
Organization TypeCompany
FundingSeed
CategoryFramework
SubcategoryOrchestration
DeploymentHybrid
Primary LanguageTypeScript
RuntimeNode.js 18+
LicenseElastic-2.0
Commercial UseRestricted
Install Commandnpx create-mastra
GitHub Stars22,290
GitHub Forks1,782
Release CadenceWeekly
MaturityStable
Pricing ModelFree
Free TierOpen-source (Elastic License 2.0)
Self-Hosted FreeYes
Cost Modelfree + LLM costs
Community SizeLarge (22k stars)
Community ActivityVery active
SentimentPositive
GPU RequiredNo
ConfidenceHigh
Research Date2026-03-24
LLM ProvidersOpenAI, Anthropic, Google Gemini, 40+ providers
API Keys RequiredLLM provider API key

Use Cases

Similar Tools

LangChainMastra TypeScript-native, LangChain Python-first
Vercel AI SDKMastra full agent framework, Vercel AI SDK UI toolkit

When to Use

Best for: TypeScript/JavaScript teams building full-stack AI agent applications

Avoid when: Python-first team or need maximum integrations

  Back to Agent Directory
Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260324