Agent FrameworksOpen Source✦ Free Tier

Mastra

TypeScript AI agent framework by Vercel contributors

8,000 stars● Health 80ActiveApp Infrastructure

About

TypeScript-first framework for building AI agents and workflows. Supports tool use, memory, RAG, and evals with first-class Vercel AI SDK integration.

Choose Mastra when…

  • You're building TypeScript-native agentic workflows
  • You want a structured framework for agent + RAG apps
  • Node.js backend with AI logic is your stack

Builder Slot

How do your AI calls chain together?Optional for most stacks

The pipeline layer that connects LLM calls, retrieval, and data processing into a workflow

Dev Tools
Not applicable
App Infra
Optional
Hybrid
Optional

Other tools in this slot:

Stack Genome Detection

AIchitect's Genome scanner detects Mastra in your project via these signals:

npm packages
@mastra/coremastra

Integrates with (4)

OpenAI APILLM Infrastructure

Mastra connects to OpenAI's API natively for agent reasoning, tool calling, and structured output generation.

GPT-4o-powered Mastra agents with native function calling and real-time streaming support.

Compare →
Anthropic APILLM Infrastructure

Mastra uses Anthropic's API via its Claude connector for agent reasoning.

Claude-powered Mastra agents with strong instruction following and long-context tool use.

Compare →
LangfuseLLM Infrastructure

Mastra integrates with Langfuse via OpenTelemetry, tracing every agent step and LLM call automatically.

Out-of-the-box observability for Mastra agents — cost, latency, and full trace quality without custom instrumentation.

Compare →
Vercel AI SDKLLM Infrastructure

Mastra uses the Vercel AI SDK's model interface as its underlying LLM abstraction layer.

All Vercel AI SDK-compatible providers are natively available to Mastra agents through one consistent interface.

Compare →

Pricing

✦ Free tier available

In 1 stack

Ruled out by 1 stack

Legacy App + AI Stack
TypeScript-native framework — assumes you're building in TypeScript from the start

Badge

Add to your GitHub README

Mastra on AIchitect[![Mastra](https://aichitect.dev/badge/tool/mastra)](https://aichitect.dev/tool/mastra)

Explore the full AI landscape

See how Mastra fits into the bigger picture — browse all 207 tools and their relationships.

Explore graph →