
Framework Mastra (Kepler Software, Inc.)
Mastra
TypeScript framework for AI agents and graph-based workflows with memory, RAG, evals and model routing.
What it is
Mastra is a TypeScript framework for building AI applications and agents. It combines agents that use tools, a graph-based workflow engine with suspend and resume, memory and retrieval for context, MCP server authoring, and built-in evals and observability. It integrates with React, Next.js and Node or runs as a standalone server, and suits TypeScript teams taking agents to production.
What it's useful for
Building an agent plus a multi-step workflow that pauses for approval, with retrieval over your own data, inside a Next.js or Node app.
Key features
- Model routing to 40+ providers through one interface
- Agents with tools and stopping conditions
- Graph-based workflows with .then(), .branch(), .parallel() and suspend/resume
- Conversation history, retrieval (RAG) and observational memory
- MCP server authoring, evals and observability; local Studio UI
How to use it
npm create mastra@latestCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Code in ee/ directories is under the Mastra Enterprise License and needs a license for production use
Alternatives
Inngest's open-source TypeScript framework for multi-agent networks with routers, shared state and MCP tools.
Pydantic's typed Python framework for agents, with model fallback, durable execution, evals and a harness.
LangChain's low-level orchestration framework for long-running, stateful agents built as graphs.
Open-source Python framework for building LLM agents, event-driven workflows and RAG over your own data.
MCP servers for this
Redis's official MCP server that lets agents store, read and search data in Redis, including JSON documents and vectors.
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.
Anthropic's collection of starter projects for building apps and agents on the Claude API.
Python library for getting validated, typed structured output from LLMs using Pydantic models.
Mistral AI's pay-as-you-go API for chat, code completion, OCR, embeddings, audio and agents, with Python and TypeScript SDKs.