
mastra-ai/mastra
🏗️ Frameworkmastra-ai
Open-source TypeScript framework for building AI apps and agents, from the team behind Gatsby.
Mastra is a modern TypeScript framework designed to streamline the development of AI-powered applications and agents. Built by the team behind Gatsby (Exlabs), it offers a comprehensive set of features including agent orchestration, LLM integrations (OpenAI, Anthropic, etc.), RAG pipelines, evals, and MCP server support. The framework is framework-agnostic (works with Next.js, Express, etc.) and emphasizes developer experience with type safety, hot-reloading, and pre-built components. It supports both cloud and open-source LLMs, allows building custom tools, and includes a workflow engine for complex task automation. Mastra aims to be the 'Ruby on Rails for AI apps', reducing boilerplate and enabling rapid prototyping.
💡Highlights
- ├─TypeScript-native, 25k+ stars
- ├─Agents, evals, RAG, MCP support
- └─Framework-agnostic, works with Next.js
🎯For
- ├─TypeScript developers
- ├─AI startup builders
- └─Full-stack developers