Mastra Framework

The Mastra framework is a TypeScript-first agentic stack distributed as the @mastra/* family of npm packages. The core package wires agents, workflows, memory, RAG, tools, MCP, evals, voice, and observability into a single Mastra instance that can be embedded in Next.js, Express, Hono, SvelteKit, Astro, Nest, Fastify, Koa, or stood up as a standalone server. Models are reached through the Vercel AI SDK so any of 40+ providers (OpenAI, Anthropic, Google, Bedrock, Groq, etc.) plug in through one interface. Apache 2.0 licensed.

API entry from apis.yml

apis.yml Raw ↑
aid: mastra-ai:mastra-framework
name: Mastra Framework
description: The Mastra framework is a TypeScript-first agentic stack distributed as the @mastra/* family
  of npm packages. The core package wires agents, workflows, memory, RAG, tools, MCP, evals, voice, and
  observability into a single Mastra instance that can be embedded in Next.js, Express, Hono, SvelteKit,
  Astro, Nest, Fastify, Koa, or stood up as a standalone server. Models are reached through the Vercel
  AI SDK so any of 40+ providers (OpenAI, Anthropic, Google, Bedrock, Groq, etc.) plug in through one
  interface. Apache 2.0 licensed.
humanURL: https://mastra.ai/docs
tags:
- Agents
- Artificial Intelligence
- Workflows
- TypeScript
- Framework
properties:
- type: Documentation
  url: https://mastra.ai/docs
- type: SourceCode
  url: https://github.com/mastra-ai/mastra
- type: PackageManager
  url: https://www.npmjs.com/package/@mastra/core
- type: License
  url: https://github.com/mastra-ai/mastra/blob/main/LICENSE.md
- type: GettingStarted
  url: https://mastra.ai/docs/getting-started/installation
- type: Examples
  url: https://github.com/mastra-ai/mastra/tree/main/examples
- type: Templates
  url: https://mastra.ai/templates