CreateWithAIHub

Framework Mastra (Kepler Software, Inc.)

Mastra

TypeScript framework for AI agents and graph-based workflows with memory, RAG, evals and model routing.

Visit website ↗
Save

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

Create project
npm create mastra@latest

Commands 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.

FreeOpen source

Pydantic's typed Python framework for agents, with model fallback, durable execution, evals and a harness.

FreeOpen source

LangChain's low-level orchestration framework for long-running, stateful agents built as graphs.

FreeOpen source

Open-source Python framework for building LLM agents, event-driven workflows and RAG over your own data.

FreeOpen source

See all 18 Mastra alternatives →

MCP servers for this

Redis's official MCP server that lets agents store, read and search data in Redis, including JSON documents and vectors.

FreeOpen source

Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.

Free plan + paid

Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.

FreeOpen source

Skills for this

Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.

FreeOpen source

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.

Paid

Anthropic's collection of starter projects for building apps and agents on the Claude API.

FreeOpen source

Python library for getting validated, typed structured output from LLMs using Pydantic models.

FreeOpen source

Mistral AI's pay-as-you-go API for chat, code completion, OCR, embeddings, audio and agents, with Python and TypeScript SDKs.

Paid

Type to search. Use ↑ ↓ and Enter.