Skip to content
aitoolfor.org

Mastra

TypeScript framework for AI agents, workflows, memory and evals

Open source

What is Mastra?

Mastra is a TypeScript framework for building AI agents, workflows and AI-powered apps, with memory, tools and observability included. It suits JavaScript and TypeScript teams that want to stay in their own stack. The core is Apache-2.0 licensed, with some enterprise features under a separate license.

Best for: TypeScript and Next.js teams, Shipping agents inside web apps, Workflows with memory

Is Mastra free?

Yes, Mastra is open source, so you can self-host it for free. Free plan available. It's a good fit for typeScript and Next.js teams, Shipping agents inside web apps, Workflows with memory. Free alternatives include AI SDK and n8n. Limits change, so confirm on mastra.ai.

Pros

  • +Native TypeScript
  • +Workflows, memory and evals in one package
  • +Local dev playground

Cons

  • −Not for Python teams
  • −Younger ecosystem
  • −Enterprise features under a different license

How much does Mastra cost?

Mastra is free to self-host because it's open source.

Free plan
Free plan available
Paid from
—
Trial
—

Prices from mastra.ai (Core Apache-2.0; enterprise features source-available.), checked November 2026. Vendors change plans often, so confirm before buying.

Mastra alternatives

All Mastra alternatives →

Mastra FAQ

Is Mastra free?

Mastra is open source and free to self-host.

What are the best Mastra alternatives?

The best Mastra alternatives are AI SDK, n8n, LangGraph, CrewAI and Dify. AI SDK, n8n and LangGraph have a free plan.

Who is Mastra best for?

TypeScript and Next.js teams, Shipping agents inside web apps, Workflows with memory

More AI agent builders and frameworks

See all →