TypeScript AI agent framework by Vercel contributors
TypeScript-first framework for building AI agents and workflows. Supports tool use, memory, RAG, and evals with first-class Vercel AI SDK integration.
The pipeline layer that connects LLM calls, retrieval, and data processing into a workflow
AIchitect's Genome scanner detects Mastra in your project via these signals:
@mastra/coremastraMastra 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.
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.
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.
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.
Add to your GitHub README
[](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.