Logo of Mastra

Mastra

TypeScript AI Agent Framework

Open Source Free

About Mastra

Mastra is an open-source TypeScript framework designed to help developers build, test, and deploy autonomous AI agents and applications. It provides essential primitives including workflows, workspaces, observational memory, Model Context Protocol servers, and observability tools.

Ideal for

Building complex multi-step workflows and autonomous agents in TypeScript Creating native Model Context Protocol servers to connect dev agents Evaluating agent output quality and performance locally using evals

Key Features

Pros
  • Natively built for TypeScript and JavaScript developers with full type safety
  • Integrates core agentic concepts like workflows, memory, and evaluations in one SDK
  • Provides native Model Context Protocol (MCP) server support for easy integrations
  • Includes a local developer dashboard (Mastra Studio) to monitor agent runs
  • Fully open-source under the permissive Apache-2.0 license
  • Allows developers to easily swap between over 300 foundation LLMs
  • Enables local testing and offline execution of complex agent logic
Cons
  • Primarily targeted at TypeScript developers; lacks first-class Python support
  • Lacks a massive pre-built template marketplace compared to older frameworks
  • Cloud deployment servers and gateway features require custom configurations

Alternatives to Mastra

Logo of NanoClaw

NanoClaw

Secure Containerized Personal AI Agent

Logo of Magentic-UI

Magentic-UI

AI Task Orchestration

Logo of Chatterbox

Chatterbox

Open-Source Text-to-Speech Models

Logo of Unsloth

Unsloth

High-Performance Model Training and Fine-Tuning Library

Logo of Accomplish

Accomplish

Open Source AI Desktop Agent

Logo of RAGFlow

RAGFlow

Open-Source RAG Engine And Agent Platform

More Libraries Tools

Logo of Cossistant

Cossistant

AI Support Framework For React And Next.js

Logo of Temporal

Temporal

Durable Execution and Workflow Orchestration Platform

Logo of tambo-ai

tambo-ai

React AI Components

Logo of Hugging Face

Hugging Face

Open Source AI Platform

Logo of prompts.chat

prompts.chat

Social Platform for AI Prompts

Logo of MobAI

MobAI

AI Mobile Automation and Testing

More Agents Tools

Logo of LobeHub

LobeHub

Open-Source AI Agent Workspace And Platform

Logo of ZeroClaw

ZeroClaw

Private Local AI Assistant Framework

Logo of OpenCode

OpenCode

Open Source AI Coding Agent

Logo of Kilo

Kilo

Open Source Coding Agent

Logo of BabyAGI

BabyAGI

Autonomous Agent

Logo of AutoGPT

AutoGPT

Autonomous AI Agent

More Open Source Tools

Logo of Ollama

Ollama

Run AI Models Locally

Logo of Puck

Puck

Agentic Design System Visual Editor

Logo of Selene

Selene

Local AI Assistant

Logo of VibeVoice

VibeVoice

Generate Long-Form Multi-Speaker Conversational Audio

Logo of Voicebox

Voicebox

Open Source Voice Cloning Desktop App

Logo of Hunyuan 3D (Unofficial)

Hunyuan 3D (Unofficial)

Advanced AI 3D Model Generator

Discover Other Tools

Logo of Zed

Zed

High-performance code editor

Logo of Sakana AI

Sakana AI

Nature-Inspired AI Models

Logo of LiteLLM

LiteLLM

AI Gateway