# Mastra

**Source:** https://www.startuphub.ai/startups/mastra
**Profile type:** Startup

> An open-source TypeScript/JavaScript framework for building AI agents, from the creators of Gatsby.

## About

Mastra is an open-source framework designed for building AI agents using TypeScript and JavaScript. Developed by the team behind Gatsby, it provides a comprehensive suite of AI primitives, including workflows for complex operations, agents for autonomous decision-making, Retrieval Augmented Generation (RAG) for knowledge integration, and evaluation tools for quality assurance.

## Key facts

- **Slug:** mastra
- **Website:** https://mastra.ai
- **Location:** San Francisco, United States
- **Founded:** 2024-01-01
- **Employees:** 53
- **Operating status:** Active
- **Total funding:** $36M
- **Sectors / tags:** Agentic AI, AI Agents, Developer Tools, Open Source, Framework, TypeScript, JavaScript
- **Social:**
  - LinkedIn: https://www.linkedin.com/company/mastra-ai/
  - Twitter: https://x.com/calcsam
  - GitHub: https://github.com/mastra-ai/mastra

## Frequently asked

### What does Mastra do?

Mastra is an open-source framework designed for building AI agents using TypeScript and JavaScript. Developed by the team behind Gatsby, it provides a comprehensive suite of AI primitives, including workflows for complex operations, agents for autonomous decision-making, Retrieval Augmented Generation (RAG) for knowledge integration, and evaluation tools for quality assurance.

### What is Mastra's revenue?

StartupHub estimates Mastra's annual revenue at $8.3M (range $4.3M to $27.7M, 65% confidence), based on comparable companies in the sector.

### What is Mastra's valuation?

StartupHub estimates Mastra's effective valuation at $305.0M (range $89.2M to $431.2M, 55% confidence), based on comparable companies in the sector.

### How much funding has Mastra raised?

Mastra has raised a total of $36M in funding. The most recent round on record is Series A.

### Where is Mastra headquartered?

Mastra is headquartered in San Francisco, United States.

### When was Mastra founded?

Mastra was founded in 2024.

### What industry does Mastra operate in?

Mastra operates in Agentic AI, AI Agents, Developer Tools, Open Source, Framework, TypeScript.

### How many employees does Mastra have?

Mastra has approximately 53 people on record.

## JSON-LD

Structured data aligned with this page's `<script type="application/ld+json">` (included when the profile is server-rendered).

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.startuphub.ai"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Startups",
          "item": "https://www.startuphub.ai/startups"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Mastra",
          "item": "https://www.startuphub.ai/startups/mastra"
        }
      ]
    },
    {
      "@type": "ProfilePage",
      "@id": "https://www.startuphub.ai/startups/mastra#webpage",
      "url": "https://www.startuphub.ai/startups/mastra",
      "name": "Mastra - AI Startup Profile | StartupHub.ai",
      "description": "This is the official profile of Mastra. Mastra is a startup founded in 2024, operating in Agentic AI and AI Agents. An open-source TypeScript/JavaScript framework for building AI agents, from the creators of Gatsby. Headquartered in San Francisco, United States. The company has approximately 53 employees.",
      "dateModified": "2026-07-01T09:30:43.137864+00:00",
      "mainEntity": {
        "@id": "https://www.startuphub.ai/startups/mastra#organization"
      }
    },
    {
      "@type": "Organization",
      "@id": "https://www.startuphub.ai/startups/mastra#organization",
      "name": "Mastra",
      "url": "https://mastra.ai",
      "logo": "https://cdn.startuphub.ai/storage/v1/object/public/entity-images/logos/bb51aa04-3bf1-4b76-b57d-25dc8a6c082c-square.webp",
      "image": "https://cdn.startuphub.ai/storage/v1/object/public/entity-images/logos/bb51aa04-3bf1-4b76-b57d-25dc8a6c082c-square.webp",
      "description": "This is the official profile of Mastra. Mastra is a startup founded in 2024, operating in Agentic AI and AI Agents. An open-source TypeScript/JavaScript framework for building AI agents, from the creators of Gatsby. Headquartered in San Francisco, United States. The company has approximately 53 employees.",
      "sameAs": [
        "https://www.linkedin.com/company/mastra-ai/",
        "https://x.com/calcsam",
        "https://github.com/mastra-ai/mastra",
        "https://www.startuphub.ai/startups/mastra"
      ],
      "foundingDate": "2024-01-01",
      "numberOfEmployees": {
        "@type": "QuantitativeValue",
        "value": 53
      },
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "San Francisco",
        "addressCountry": "US"
      },
      "knowsAbout": [
        "Agentic AI",
        "AI Agents",
        "Developer Tools",
        "Open Source",
        "Framework",
        "TypeScript",
        "JavaScript"
      ]
    }
  ]
}
```
