# Mastra

Builds TypeScript agents and controllable workflows with tools, memory, approvals and a development interface.

Canonical profile: https://ki-agentenkompass.de/en/agents/mastra/
Editor: [Michael Meierhoff](https://ki-agentenkompass.de/en/about/)
Sources reviewed: 2026-11-16
Basis: provider documentation. Examples are editorial suggestions, not hands-on product tests.

## Overview

Independent agent framework with its own execution loop.

- Provider: Mastra
- Product family: Mastra
- Profile type: Programmable agent framework
- Environment: Custom application using TypeScript, Node.js.
- Connections: Custom functions, provider adapters and documented MCP/API connections.
- Setup: Install the SDK, configure model access and tools, and set up persistence and operations.
- Pricing model: SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

## Key features

### Agents and workflow graphs

Agents use custom tools; workflow graphs control sequences and branches.

Source: https://github.com/mastra-ai/mastra

### Observational Memory

Observation agents compress older history in configured storage.

Source: https://github.com/mastra-ai/mastra

### Studio and human approvals

Studio supports development and inspection; paused workflows can resume after input.

Source: https://github.com/mastra-ai/mastra

### Models and custom tools

Provider/model configuration and typed tool definitions connect custom application functions.

Source: https://github.com/mastra-ai/mastra

### Expose API and MCP

Agents and workflows can be integrated into existing apps or exposed through servers and MCP.

Source: https://github.com/mastra-ai/mastra

## Example workflows

### Embed a knowledge agent in a custom app

- Your input: Documents, defined read tools and model access.
- Possible result: A custom application answers questions through a configured agent loop.
- What to check: Test sources, user isolation and tool interfaces.

### Build a business process with approval

- Your input: Process steps, APIs and a mandatory approval policy.
- Possible result: An agent performs preparatory steps; the custom application controls approval.
- What to check: Verify failure paths, resumption and permissions using realistic cases.

## Requirements and limits

### Setup and access

Requirement: Install the SDK, configure model access and tools, and set up persistence and operations.

Source: https://github.com/mastra-ai/mastra

### Requirements and limits

Limitation: Development, permissions and operations are the responsibility of the custom application. Documented components must be combined and verified for the use case.

Source: https://mastra.ai/docs

### Suitable memory storage

Limitation: Observational Memory requires a compatible storage adapter; this feature is disabled with an unsuitable adapter.

Source: https://mastra.ai/docs/memory/overview

## A good fit if …

- you want to integrate agents into a custom application and operate them yourself
- you can deliberately review results and permissions
- you want to build TypeScript agents with workflow graphs and configurable memory

## Less suitable if …

- you seek a fully managed service without development effort
- you need Observational Memory regardless of the storage adapter in use

Editorial assessment based on provider documentation. Not a product test.

## Usable AI models

Open choice

Provider/model configuration with personal keys for OpenAI, Anthropic, Google and further routing providers; check model adapters and functions before use.

- Model families named: OpenAI (GPT), Anthropic (Claude), Google (Gemini) · Other models can be connected freely
- Model choice: You choose
- Your own API key: Yes
- Router or custom endpoint: Yes
- Local models: Not stated

Partly documented · Sources accessed on: 2026-11-16

- [Mastra · Product](https://mastra.ai/docs)

- [Mastra · Repository](https://github.com/mastra-ai/mastra)

## Europe & regional availability

Access and data processing must be assessed separately.

Reviewed scope: Mastra · Access and processing
Reviewed on: 2026-11-16

### Access and regional conditions

With requirements

The source code or documented download is publicly available. Model providers, external connections and hosting have their own regional and privacy conditions. Uniform EU data residency is unspecified within the checked scope.

Region covered: EU/EEA, United Kingdom and Switzerland

Documented reason: The configured deployment and terms of connected services determine the applicable conditions.

Official source: https://mastra.ai/docs
Official source: https://github.com/mastra-ai/mastra

## Accounts & permissions

Based on provider documentation. Permissions depend on the account, integration and organization policies. Review the permissions actually requested before use.

Configuration covered: Mastra · Accounts and permissions
Sources reviewed: 2026-11-16

### Account used

Documented with conditions: Model and service access is assigned within the custom application.

Evidence: https://mastra.ai/docs
Evidence: https://github.com/mastra-ai/mastra

### Admin approval

Documented with conditions: Configure tool permissions and human approvals for the task; verify coverage for each tool.

Evidence: https://github.com/mastra-ai/mastra

### Data access & team sharing

Documented with conditions: Custom functions, provider adapters and documented MCP/API connections.

Evidence: https://github.com/mastra-ai/mastra

## Prices and included usage

Pricing checked: 2026-11-16

SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

### SDK / Source

SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

Documented product scope; verify external services and their billing separately.

Price source: https://github.com/mastra-ai/mastra

Pricing details: https://github.com/mastra-ai/mastra

## Operation & oversight

Based on public provider documentation. Assessments are editorial inferences from the stated properties. Actual time requirements and reliability have not been measured.

Deployment covered: Mastra · Documented execution scope
Sources reviewed: 2026-11-16

### Files and working state

Documented with conditions: Configured storage retains messages, working memory and observations. Resource and thread define scope; Observational Memory compresses older messages.

Evidence: https://github.com/mastra-ai/mastra

### Sign-ins

Documented with conditions: Install the SDK, configure model access and tools, and set up persistence and operations.

Evidence: https://github.com/mastra-ai/mastra

### Starting further runs

Documented with conditions: The custom application or an external scheduler starts further runs.

Evidence: https://github.com/mastra-ai/mastra

### Human intervention

Documented with conditions: Integrate approvals, cancellation and questions into the custom interface and tool logic.

Evidence: https://github.com/mastra-ai/mastra

### Detecting errors

Documented with conditions: Evaluate tool errors and execution results; use product-specific logs and traces for review.

Evidence: https://github.com/mastra-ai/mastra

### Resuming after failures

Documented with conditions: Stored context supports further work. Verify automatic retries of failed actions and side effects separately.

Evidence: https://github.com/mastra-ai/mastra

### Editorial assessment

Editorial operational assessment; reliable resumption depends on configuration and executed tools.

## Memory and conversation continuity

Scope: Mastra · documented product scope
Sources accessed: 2026-11-16

Configured storage retains messages, working memory and observations. Resource and thread define scope; Observational Memory compresses older messages.

### Storage and scope

Partly documented: Configured storage retains messages, working memory and observations. Resource and thread define scope; Observational Memory compresses older messages.

- [Mastra · Memory / Context](https://mastra.ai/docs/memory/overview)

### Selection and timing

Partly documented: Messages are stored; working memory and Observational Memory are enabled separately.

- [Mastra · Memory / Context](https://mastra.ai/docs/memory/overview)

### Inspect, edit and delete

Partly documented: Memory APIs and Studio expose stored context; define deletion and retention policy in your own service.

- [Mastra · Memory / Context](https://mastra.ai/docs/memory/overview)

### Agent and channel boundaries

Partly documented: Resource identifies a user or entity, thread identifies a conversation; delegated subagents receive their own context.

- [Mastra · Memory / Context](https://mastra.ai/docs/memory/overview)

### Retrieval

Partly documented: History, working memory and optional semantic recall populate model context.

- [Mastra · Memory / Context](https://mastra.ai/docs/memory/overview)

### Session reset and compaction

Partly documented: Persistence requires a suitable storage adapter. Observational Memory replaces older raw history with observations and reflections.

- [Mastra · Memory / Context](https://mastra.ai/docs/memory/overview)

## Context

Development, permissions and operations are the responsibility of the custom application. Documented components must be combined and verified for the use case.

Official sources checked. Features are provider claims; examples and suitability are editorial. Independent product testing is pending.

## Sources

- https://mastra.ai/docs

- https://github.com/mastra-ai/mastra

- https://mastra.ai/docs/memory/overview

## Provider

Mastra develops the TypeScript agent framework under mastra-ai with its own documentation and Studio. Repository on 2026-11-16: 29,546 stars, 3,104 forks; license identifier NOASSERTION; last push 2026-11-16.

- Operator: Mastra
- Organization: Software project and provider
- Website: https://mastra.ai/docs
- Reviewed: 2026-11-16

- Provider source: https://mastra.ai/docs

- Provider source: https://github.com/mastra-ai/mastra

[Sources and method](https://ki-agentenkompass.de/en/sources/)
