Mastra
TypeScript-first AI agent framework. Agents, tools, memory, workflows, RAG, evals, tracing, MCP, and production deployment for Node.js apps.
Mastra is an open-source TypeScript framework for building AI agents and workflows in Node.js. It provides first-class primitives for agents with tools and memory, durable workflows with branching and loops, RAG pipelines, model routing, evals, tracing, and local testing in Mastra Studio. The developer experience is TypeScript-native throughout, with typed tools, schemas, and workflow steps. It integrates with modern JavaScript frameworks like Next.js, React, Express, Hono, and SvelteKit, and can connect agents to external tools through MCP. For TypeScript developers who find LangGraph too Python-oriented and the Vercel AI SDK too low-level for complex agent products, Mastra fills the gap with a batteries-included backend framework.
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.
CopilotKit
Frontend stack for agent-native apps. React hooks, prebuilt copilot UI, AG-UI runtime, frontend tools, shared state, and human-in-the-loop flows.
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.
Get started with Mastra
TypeScript-first AI agent framework. Agents, tools, memory, workflows, RAG, evals, tracing, MCP, and production deployment for Node.js apps.
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.
CopilotKit
Frontend stack for agent-native apps. React hooks, prebuilt copilot UI, AG-UI runtime, frontend tools, shared state, and human-in-the-loop flows.
Claude Agent SDK
Anthropic's Python SDK for building production agent systems. Tool use, guardrails, agent handoffs, and orchestration. Released alongside Claude 4.
Related Guides
AI Agent Frameworks Compared: LangGraph vs CrewAI vs Mastra vs CopilotKit
Deep comparison of the top AI agent frameworks - LangGraph, CrewAI, Mastra, CopilotKit, AutoGen, and Claude Code.
AI AgentsClaude 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 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...

Agents 101: How to Build and Deploy Anything with AI Agents
A companion guide to the Agents 101 video: a behind-the-scenes walkthrough of building and deploying AI agents fast on V...

DiffusionGemma: Google Bets Diffusion Can Make Text Generation 4x Faster
Google released DiffusionGemma today, a 26B MoE open model that generates entire 256-token blocks in parallel instead of...

Mastra: Review and Setup Guide for TypeScript Agent Apps (2026)
A hands-on look at Mastra, the open source TypeScript framework for building production-ready AI agents and workflows --...

Mastra for Durable TypeScript Agents: Where It Fits and Where It Does Not
Mastra is the strongest fit when a TypeScript product needs agents, workflows, memory, tools, MCP, evals, and traces in...

Agentic Search Works Best When It Writes Queries, Not Answers
SNEWPAPERS is a useful Show HN signal: the strongest agentic search products do not replace search results with prose. T...
