LogoTopAIHubs
icon of Mastra

Mastra

TypeScript framework for building, deploying, and observing AI agents

Introduction

What is Mastra

Mastra is an open-source TypeScript framework for building, deploying, and observing AI agents and AI-powered applications. It provides AI primitives including agents, workflows, workspaces, memory, MCP servers, observability, and evals for TypeScript and JavaScript developers. Mastra is created by the team behind Gatsby.js and is backed by Y Combinator.

How to use Mastra

To get started with Mastra, you can follow the Quickstart guide in the documentation to build your first agent. The framework is designed to be used with TypeScript and Node.js. You can also explore templates for agent projects, take a video course on agents, or attend live workshops with the team.

Features of Mastra
  • Agents: Build AI agents that reason, remember, and act.
  • Workflows: Define and orchestrate complex workflows.
  • Memory: Provide agents with memory capabilities.
  • Tools: Integrate external tools and APIs.
  • MCP (Model Context Protocol): Support for MCP servers.
  • Observability: Metrics, logs, and traces for monitoring agent performance.
  • Evals: Evaluate and test agent performance.
  • Studio: Collaborate, evaluate, and iterate on agents.
  • Agent Builder: Build agents with a visual interface.
  • Server: Deploy agents to the cloud with a purpose-built platform.
  • Gateway: Route LLM traffic through a single gateway with access to 300+ models.
  • Mastra Code: An AI coding agent that helps developers build software using Mastra's primitives.
Use Cases of Mastra
  • Internal Agents: Deploy agents in Slack and internal systems.
  • Customer-facing Agents: Build agents that act inside your product.
  • Developer Platform Agents: Create agents that other product teams can build on.
Pricing

Mastra is open-source and free to use. The framework is available under the Apache 2.0 license. Mastra Studio, Server, and Gateway are also offered for free, with pricing details available on the website.

FAQ

What is Mastra? Mastra is an open-source TypeScript framework for building AI agents and AI-powered applications.

Who created Mastra? Mastra was created by the team behind Gatsby.js, including Sam Bhagwat (CEO), Abhi Aiyer (CTO), and Shane Thomas (CPO).

Is Mastra free? Yes, Mastra is open-source and free to use.

What programming languages does Mastra support? Mastra is designed for TypeScript and JavaScript developers.

Does Mastra provide observability? Yes, Mastra includes observability features such as metrics, logs, and traces.

Can I deploy agents with Mastra? Yes, Mastra Server provides cloud deployment for agents, and you can deploy from the CLI.

Does Mastra support MCP? Yes, Mastra supports Model Context Protocol (MCP) servers.

Information

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates