Mastra
Open-source TypeScript framework for building, deploying, and observing AI agents and agentic workflows.
Mastra is an open-source TypeScript framework designed for building AI-powered applications and agents. The platform provides developers with a comprehensive suite of primitives including agents, workflows, memory systems, and observability tools. It integrates with popular frontend and backend frameworks such as React, Next.js, and Node, allowing for seamless deployment as a standalone server or within existing application stacks.
The framework enables the creation of stateful AI agents that can reason, decide, and act on open-ended tasks using any LLM. Mastra's built-in features include tool calling, Model Context Protocol (MCP) support, and long-term observational memory that learns from user interactions. It also offers a graph-based workflow engine for orchestrating complex multi-step processes with precise control over execution paths.
For production environments, Mastra provides a managed platform that includes zero-config infrastructure, CI/CD pipelines, and a full evaluation suite. This suite allows teams to score agent performance using model-graded and rule-based methods. The platform also features a Studio for local development and testing, as well as a Gateway for unified model routing across over 1,000 supported models.
Based in San Francisco with a global remote team, Mastra is built by the creators of Gatsby. The company focuses on providing a unified TypeScript-first approach to AI development, helping engineering teams move from prototype to production with integrated security guardrails and real-time telemetry.
- Headquarters
- San Francisco
- Founded
- 2024
- Company size
- 11-50 employees
- Website: mastra.ai
Industries: Artificial Intelligence, Technology
Categories: AI Agents, Developer Tools
AntSpace put this profile together from public information. It may be incomplete; once Mastra claims it, its admins can edit everything here.
Specialties
- TypeScript AI Framework
- AI Agents
- Agentic Workflows
- AI Observability
- Model Context Protocol
Key facts
- Employees
- 45
Latest from Mastra
- Introducing Private Model Gateways for Mastra Agents (Product launch · November 12, 2026)
Mastra introduced custom model gateways, allowing developers to route agent requests to self-hosted open-weight models like Ollama. This feature enables private data handling and fixed… - Introducing MCP Tasks in Mastra (Product launch · November 11, 2026)
The company announced the addition of Model Context Protocol (MCP) tasks to its framework. This update helps prevent agents from being blocked during long-running tool calls.
Products by Mastra
- Principles of Building AI Agents (Course / digital content · From 0 USD)
The Complete Handbook for Building Production AI Agents
Services by Mastra
- Mastra Workshops (Training & workshops · From 0 USD)
Build and deploy AI agents with live expert-led video workshops.
AI agents by Mastra
- Mastra Platform Agent Builder (Workflow / back-office agent)
A composable studio for non-technical teams to build, test, and publish AI agents.
Clients and partners
4 clients and partners
Case studies
4 case studies
Upcoming events
- Build Your Own Software Factory with Mastra Factory (Workshop · December 17, 2026 · Online)
- Build, Deploy, Observe TypeScript Agents on Mastra (January) (Workshop · January 28, 2027 · Online)
- Build Your Own Software Factory with Mastra Factory (February) (Workshop · February 25, 2027 · Online)
Documents
2 documents
4 more products, services and AI on AntSpace. Sign up free to see the full catalog.
Leadership, clients, case studies, documents and every location on AntSpace. Sign up free to see them.