Mastra provides a TypeScript framework for creating AI applications and agent workflows.

github.com/mastra-ai/mastra
Mastra homepage screenshot

About Mastra

Mastra is a TypeScript framework for building AI-powered applications and agents. It integrates with React, Next.js, and Node.js, or can run as a standalone server, with setup starting from npm create mastra@latest.

It provides model routing across providers, agents that use tools, graph-based workflows for multi-step processes, suspension for human input, context and memory management, MCP server authoring, and built-in evals and observability.

Key features

  • Connect to 40+ model providers through one standard interface
  • Build autonomous agents that use LLMs and tools
  • Orchestrate multi-step processes with graph-based workflows
  • Suspend agents or workflows for human input and resume
  • Supply conversation history, retrieved data, and observational memory
  • Author MCP servers exposing agents and tools
Best for: Developers building AI applications and agents in TypeScript using React, Next.js, or Node.js.
Good for
  • Integrates with React, Next.js, and Node.js or deploys as standalone server
  • Connects to 40+ providers including OpenAI, Anthropic, and Gemini through one interface
  • Includes human-in-the-loop suspension, memory handling, evals, and observability

Mastra at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Not stated
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Mastra alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Agent Frameworks

Well-known listings from the same topic.

All 75

Mastra FAQ

How do I get started with Mastra?
Run npm create mastra@latest and follow the Installation guide for CLI or manual setup.
How does human-in-the-loop work?
An agent or workflow can suspend to await input or approval, with execution state stored so it can resume where it left off.
Which models and app frameworks can it work with?
It connects to 40+ providers including OpenAI, Anthropic, and Gemini, and integrates with React, Next.js, and Node.js.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing