# Mastra

Mastra is a TypeScript framework for building AI agents and applications with tools, memory and workflow capabilities.

Canonical URL: https://a2a-mcp.org/entry/mastra

Language: en

Category: Frameworks & SDKs

Updated: 2026-09-14

## About

Mastra is a TypeScript framework for building AI agents and applications with tools, memory and workflow capabilities.

## Key Features

- Create agents that call application tools and external integrations.
- Add memory and MCP-connected capabilities to an agent application.

## Use Cases

Build application-owned agents with tools, workflow control and model integration.

## Setup or Requirements

Create a TypeScript project with an ESM package.json. The documented dependency command is `npm install @mastra/core@latest zod@latest typescript@latest @types/node@latest mastra@latest`. Define an agent, register it in Mastra and configure the model provider. Follow the guide for tsconfig and local development.

## Compatibility

TypeScript/JavaScript application framework; the current guide describes direct TypeScript execution on Node.js 22.18.0 and later.

## Limitations

This is an application framework; model credentials and deployment resources are supplied by the developer.

## Sources

- Project documentation: https://mastra.ai/docs
- Setup reference: https://mastra.ai/course

## Tags

- agent-framework
- typescript
- MCP

## Alternatives

- Microsoft AutoGen
- OpenAI Agents SDK

## Sources

- [Project website](https://mastra.ai/docs)
- [Project documentation](https://mastra.ai/docs)
- [Setup reference](https://mastra.ai/course)

Last checked: 2026-09-14
