Mastra
TypeScript-first AI agent framework. Workflows, RAG, tool use, evals, and integrations. Built for production Node.js apps. Open-source.
Mastra is an open-source TypeScript framework for building AI agents and workflows in Node.js. It provides first-class primitives for tool calling, RAG pipelines with vector storage, multi-step workflows with branching and loops, and built-in evaluation harnesses for testing agent behavior. The developer experience is TypeScript-native throughout, with full type safety on tools, schemas, and workflow steps. It integrates with multiple LLM providers through a unified interface and includes connectors for common services like databases and APIs. For TypeScript developers who find LangChain too Python-centric and the Vercel AI SDK too low-level for complex agent patterns, Mastra fills the gap with a batteries-included approach.
Similar Tools
Vercel AI SDK
The TypeScript toolkit for building AI apps. Unified API across OpenAI, Anthropic, Google. Streaming, tool calling, structured output, multi-step agents. 50K+ GitHub stars.
LangChain / LangGraph
Most popular LLM framework. 100K+ GitHub stars. Chains, RAG, vector stores, tool use. LangGraph adds stateful multi-agent workflows with cycles and persistence.
LlamaIndex
LLM data framework for connecting custom data sources to language models. Best-in-class RAG, data connectors, and query engines. Python and TypeScript.
Agency Swarm
Multi-agent orchestration framework built on the OpenAI Agents SDK. Define agent roles, typed tools, and directional communication flows. Production-focused, open-source.
Get started with Mastra
TypeScript-first AI agent framework. Workflows, RAG, tool use, evals, and integrations. Built for production Node.js apps. Open-source.
Try MastraGet weekly tool reviews
Honest takes on AI dev tools, frameworks, and infrastructure - delivered to your inbox.
Subscribe FreeMore AI Frameworks Tools
Vercel AI SDK
The TypeScript toolkit for building AI apps. Unified API across OpenAI, Anthropic, Google. Streaming, tool calling, structured output, multi-step agents. 50K+ GitHub stars.
Claude Agent SDK
Anthropic's Python SDK for building production agent systems. Tool use, guardrails, agent handoffs, and orchestration. Released alongside Claude 4.
LangChain / LangGraph
Most popular LLM framework. 100K+ GitHub stars. Chains, RAG, vector stores, tool use. LangGraph adds stateful multi-agent workflows with cycles and persistence.
Related Guides
Claude Code Setup Guide
Configure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsBuilding Your First MCP Server
Step-by-step guide to building an MCP server in TypeScript - from project setup to tool definitions, resource handling, testing, and deployment.
AI AgentsAI Agent Frameworks Compared: CrewAI vs LangGraph vs AutoGen vs Claude Code
Deep comparison of the top AI agent frameworks - architecture, code examples, strengths, weaknesses, and when to use each one.
AI AgentsRelated Posts

What is RAG? Retrieval Augmented Generation Explained
How RAG works, why it matters, and how to implement it in TypeScript. The technique that lets AI models use your data wi...

How I'm Building 24 AI-Powered Apps in Parallel
One dev, one CLI, 24 subdomains, and a lot of parallel agents. The playbook for shipping an AI app portfolio.

AI Agent Memory Patterns
Agents forget everything between sessions. Here are the patterns that fix that: CLAUDE.md persistence, RAG retrieval, co...
