Agent framework - verified
Mastra: features, install and latest version
Mastra is an AI agent framework maintained by Mastra (Kepler Software, Inc.). As its docs describe it: Mastra is a TypeScript framework for building AI agents and applications, combining agents, graph-based workflows, memory, evals and observability, with models addressed through a provider/model router. It supports TypeScript. License: Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License). Latest release: TypeScript package @mastra/core 1.78.0 (October 15, 2026).
Homepage - Source on GitHub - License - In our tools directory
- Languages
- 1
- Latest TypeScript
- 1.78.0
- Released
- 2026-10-15
- Features documented
- 10 of 10
Install
Copied verbatim from the page linked under each command.
TypeScript
npm create mastra@latestnpm install @mastra/core@latest zod@latest typescript@latest @types/node@latest mastra@latestSource: mastra.ai/docs/agents/overview
Quickstart
The first example from the official docs, unchanged. It may need an API key for the model provider it calls.
import { Agent } from '@mastra/core/agent'
export const testAgent = new Agent({
id: 'test-agent',
name: 'Test Agent',
instructions: 'You are a helpful assistant.',
model: 'openai/gpt-5.6-sol',
})Source: mastra.ai/docs/agents/overview
Features
What the Mastra docs say it supports. Not stated means the docs do not say either way.
| Feature | Value | Source |
|---|---|---|
| MCP | Yes | mastra.ai/reference/tools/mcp-client |
| Multi-agent | Yes | mastra.ai/docs/guides/multi-agent-systems |
| Durable execution | Yes | mastra.ai/reference/workflows/run-methods/restart |
| Human in the loop | Yes | mastra.ai/docs/agents/human-in-the-loop |
| Streaming | Yes | mastra.ai/docs/agents/overview |
| Structured output | Yes | mastra.ai/docs/agents/overview |
| Tracing | Yes | mastra.ai/docs/observability/tracing/overview |
| Memory | Yes | mastra.ai/docs/agents/overview |
| Evals | Yes | mastra.ai/docs/evals/overview |
| Model-agnostic | Yes | mastra.ai/models |
| Languages | TypeScript | See sources below |
| License | Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License) | github.com/mastra-ai/mastra/blob/main/LICENSE.md |
| Latest TypeScript release | @mastra/core 1.78.0October 15, 2026 | github.com/mastra-ai/mastra/releases |
Mastra on Developers Digest
Compare Mastra
FAQ
Does Mastra support MCP?
Which languages does Mastra support?
TypeScript. Published packages: @mastra/core (TypeScript).
How do I install Mastra?
For TypeScript: "npm create mastra@latest", as shown at https://github.com/mastra-ai/mastra/blob/main/README.md. This page lists 2 install commands, each copied from the linked source.
What is the latest version of Mastra?
As of October 18, 2026: TypeScript package @mastra/core 1.78.0 (October 15, 2026), https://github.com/mastra-ai/mastra/releases.
What license is Mastra released under?
Apache-2.0 (code in ee/ directories is under the Mastra Enterprise License). The license is at https://github.com/mastra-ai/mastra/blob/main/LICENSE.md.
Does Mastra support durable execution?
Yes, per https://mastra.ai/reference/workflows/run-methods/restart
Does Mastra support human-in-the-loop?
Is Mastra model-agnostic?
Yes, per https://mastra.ai/models
Which features does Mastra document?
10 of the 10 tracked here: MCP, Multi-agent, Durable execution, Human in the loop, Streaming, Structured output, Tracing, Memory, Evals and Model-agnostic.
Sources
Last verified from the pages below.
- Docs home - mastra.ai
- Agents overview - mastra.ai
- Multi-agent systems - mastra.ai
- Agent human-in-the-loop - mastra.ai
- Workflow snapshots - mastra.ai
- Run.restart() reference - mastra.ai
- MCPClient reference - mastra.ai
- Tracing overview - mastra.ai
- Evals overview - mastra.ai
- Models - mastra.ai
- GitHub README - github.com
- GitHub releases - github.com
- npm package - npmjs.com
Newsletter
Agent frameworks, every week
One email per week. Framework releases, new agent tooling and what they mean for what you build.