Mastra website screenshot

Mastra

Mastra is a TypeScript framework for building AI-powered applications and agents, built by the team behind Gatsby (Sam Bhagwat, Abhi Aiyer, Shane Thomas). The framework provides production-grade primitives for agents, workflows, RAG, tools, memory, evals, voice, and observability, and integrates with 40+ model providers through the Vercel AI SDK. The framework is Apache 2.0 licensed open source, with a hosted commercial offering (Mastra Cloud) for deployment, tracing, and team collaboration, and an enterprise self-hosted edition for regulated environments.

Mastra publishes 12 APIs on the APIs.io network. Tagged areas include Agents, Artificial Intelligence, Workflows, RAG, and MCP.

Mastra’s developer surface includes documentation, GitHub presence, engineering blog, changelog, pricing, code examples, YouTube channel, and 14 more developer resources.

13.5/100 emerging ▬ flat Agent 2/100 human only Full breakdown ↓
scored 2026-07-28 · rubric v0.6
12 APIs
AgentsArtificial IntelligenceWorkflowsRAGMCPMemoryEvaluationLLM ObservabilityTypeScriptVoiceOpen Source

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 13.5/100 · emerging
Contract Quality 0.0 / 25
Developer Ergonomics 3.0 / 20
Commercial Clarity 2.1 / 20
Operational Transparency 2.7 / 13
Governance 0.0 / 12
Discoverability 6.5 / 10
Agent readiness — 2/100 · human only
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 10
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 7 / 7
Rate-Limit Signaling 0 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/mastra-ai: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 12

Individual APIs this provider publishes, each with its own machine-readable definition.

Mastra Framework

The Mastra framework is a TypeScript-first agentic stack distributed as the @mastra/* family of npm packages. The core package wires agents, workflows, memory, RAG, tools, MCP, ...

Mastra Agents

Mastra agents define behavior with a model, instructions, tools, memory, and processors, then expose .generate() and .stream() for typed text, object, and structured output gene...

Mastra Workflows

Workflows are durable, graph-based pipelines composed from typed steps with branching, parallelism, loops, suspension, human-in-the-loop, and event triggers. Step inputs and out...

Mastra Memory

The memory package provides conversation history, working memory, and semantic recall for agents, pluggable across PostgreSQL, LibSQL, Redis, Upstash, MongoDB, MS SQL, DynamoDB,...

Mastra RAG

The RAG package provides document loaders, chunkers, embedders (including FastEmbed local embeddings), rerankers, and retrieval helpers that compose with any Mastra vector store...

Mastra MCP

First-class Model Context Protocol support — Mastra ships an MCP client for connecting to any MCP server and exposing its tools to agents, plus an MCP server implementation for ...

Mastra Evals

Built-in evaluation library with model-graded (LLM-as-judge), rule-based, and statistical metrics for measuring agent output quality, hallucination, faithfulness, relevance, bia...

Mastra Voice

Voice abstractions for speech-to-text, text-to-speech, and realtime voice agents with provider adapters for OpenAI (including Realtime API), ElevenLabs, Deepgram, Google, Google...

Mastra Observability

OpenTelemetry-native tracing for agents, workflows, tools, and LLM calls with first-party exporters for Mastra Cloud, Langfuse, LangSmith, Braintrust, Arize, Arthur, Laminar, Da...

Mastra CLI

The mastra CLI scaffolds projects (`npm create mastra`), runs the local dev server with hot reload, opens the Studio playground, generates types, runs migrations on memory store...

Mastra Client SDKs

Client-side SDKs that talk to a Mastra server from the browser, React applications, or any JavaScript runtime. Includes @mastra/client-js (universal JS client), @mastra/react (R...

Mastra Deployers

Deployer packages that bundle a Mastra app for a target runtime. Built-in deployers cover Mastra Cloud, Cloudflare Workers, Vercel, and Netlify. Custom deployers can be written ...

Scroll for all 12

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Mastra Ai Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Resources

Documentation 1

Reference material describing how the API behaves

Build 4

SDKs, sample code, and the tooling you integrate with

Access & Security 1

Authentication, authorization, and security posture

Learn 2

Tutorials, courses, talks, and written guidance

Operate 2

Status, limits, changes, and where to get help

Commercial 2

Pricing, plans, and the legal terms of use

Company 5

The organization behind the API

Other 4

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: mastra-ai
name: Mastra
description: Mastra is a TypeScript framework for building AI-powered applications and agents, built by the team behind Gatsby
  (Sam Bhagwat, Abhi Aiyer, Shane Thomas). The framework provides production-grade primitives for agents, workflows, RAG,
  tools, memory, evals, voice, and observability, and integrates with 40+ model providers through the Vercel AI SDK. The framework
  is Apache 2.0 licensed open source, with a hosted commercial offering (Mastra Cloud) for deployment, tracing, and team collaboration,
  and an enterprise self-hosted edition for regulated environments.
kind: contract
accessModel:
  pricing: unknown
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Unknown
  confidence: low
  source: []
  generated: '2026-07-22'
  method: derived
position: Producing
access: Open Source
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/mastra-ai.png
tags:
- Agents
- Artificial Intelligence
- Workflows
- RAG
- MCP
- Memory
- Evaluation
- LLM Observability
- TypeScript
- Voice
- Open Source
created: '2026-05-25'
modified: '2026-05-25'
url: https://raw.githubusercontent.com/api-evangelist/mastra-ai/refs/heads/main/apis.yml
specificationVersion: '0.19'
x-type: opensource
x-tier: 2
apis:
- aid: mastra-ai:mastra-framework
  name: Mastra Framework
  description: The Mastra framework is a TypeScript-first agentic stack distributed as the @mastra/* family of npm packages.
    The core package wires agents, workflows, memory, RAG, tools, MCP, evals, voice, and observability into a single Mastra
    instance that can be embedded in Next.js, Express, Hono, SvelteKit, Astro, Nest, Fastify, Koa, or stood up as a standalone
    server. Models are reached through the Vercel AI SDK so any of 40+ providers (OpenAI, Anthropic, Google, Bedrock, Groq,
    etc.) plug in through one interface. Apache 2.0 licensed.
  humanURL: https://mastra.ai/docs
  tags:
  - Agents
  - Artificial Intelligence
  - Workflows
  - TypeScript
  - Framework
  properties:
  - type: Documentation
    url: https://mastra.ai/docs
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra
  - type: PackageManager
    url: https://www.npmjs.com/package/@mastra/core
  - type: License
    url: https://github.com/mastra-ai/mastra/blob/main/LICENSE.md
  - type: GettingStarted
    url: https://mastra.ai/docs/getting-started/installation
  - type: Examples
    url: https://github.com/mastra-ai/mastra/tree/main/examples
  - type: Templates
    url: https://mastra.ai/templates
- aid: mastra-ai:mastra-agents
  name: Mastra Agents
  description: Mastra agents define behavior with a model, instructions, tools, memory, and processors, then expose .generate()
    and .stream() for typed text, object, and structured output generation. Agents support multi-step tool calls, dynamic
    instructions, runtime context, scoped memory, and Vercel AI SDK v5 message format.
  humanURL: https://mastra.ai/docs/agents/overview
  tags:
  - Agents
  - Artificial Intelligence
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/agents/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/packages/core/src/agent
- aid: mastra-ai:mastra-workflows
  name: Mastra Workflows
  description: Workflows are durable, graph-based pipelines composed from typed steps with branching, parallelism, loops,
    suspension, human-in-the-loop, and event triggers. Step inputs and outputs are validated against Zod schemas and each
    run is persisted so workflows can be replayed, resumed, and observed.
  humanURL: https://mastra.ai/docs/workflows/overview
  tags:
  - Workflows
  - Orchestration
  - Durable Execution
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/workflows/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/workflows
- aid: mastra-ai:mastra-memory
  name: Mastra Memory
  description: The memory package provides conversation history, working memory, and semantic recall for agents, pluggable
    across PostgreSQL, LibSQL, Redis, Upstash, MongoDB, MS SQL, DynamoDB, Cloudflare D1, ClickHouse, Couchbase, and other
    backends. Vector recall integrates with PgVector, Pinecone, Chroma, Qdrant, Astra, Elasticsearch, OpenSearch, Turbopuffer,
    Vectorize, LanceDB, DuckDB, S3Vectors, and more.
  humanURL: https://mastra.ai/docs/memory/overview
  tags:
  - Memory
  - Vector Database
  - Persistence
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/memory/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/packages/memory
  - type: PackageManager
    url: https://www.npmjs.com/package/@mastra/memory
- aid: mastra-ai:mastra-rag
  name: Mastra RAG
  description: The RAG package provides document loaders, chunkers, embedders (including FastEmbed local embeddings), rerankers,
    and retrieval helpers that compose with any Mastra vector store. Supports semantic, keyword, and hybrid retrieval, metadata
    filtering, and graph RAG patterns.
  humanURL: https://mastra.ai/docs/rag/overview
  tags:
  - RAG
  - Retrieval
  - Embeddings
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/rag/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/packages/rag
  - type: PackageManager
    url: https://www.npmjs.com/package/@mastra/rag
- aid: mastra-ai:mastra-mcp
  name: Mastra MCP
  description: First-class Model Context Protocol support — Mastra ships an MCP client for connecting to any MCP server and
    exposing its tools to agents, plus an MCP server implementation for publishing your own agents, workflows, and tools as
    MCP-callable capabilities. Includes a docs MCP server and a registry-of-registries.
  humanURL: https://mastra.ai/docs/mcp/overview
  tags:
  - MCP
  - Model Context Protocol
  - Tools
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/mcp/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/packages/mcp
  - type: PackageManager
    url: https://www.npmjs.com/package/@mastra/mcp
- aid: mastra-ai:mastra-evals
  name: Mastra Evals
  description: Built-in evaluation library with model-graded (LLM-as-judge), rule-based, and statistical metrics for measuring
    agent output quality, hallucination, faithfulness, relevance, bias, toxicity, and answer correctness. Evals run locally
    or against Mastra Cloud and emit traces alongside production runs.
  humanURL: https://mastra.ai/docs/evals/overview
  tags:
  - Evaluation
  - Testing
  - LLM-as-Judge
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/evals/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/packages/evals
  - type: PackageManager
    url: https://www.npmjs.com/package/@mastra/evals
- aid: mastra-ai:mastra-voice
  name: Mastra Voice
  description: Voice abstractions for speech-to-text, text-to-speech, and realtime voice agents with provider adapters for
    OpenAI (including Realtime API), ElevenLabs, Deepgram, Google, Google Gemini Live, Azure, AWS Nova Sonic, Gladia, Inworld,
    Murf, PlayAI, Sarvam, Speechify, ModelsLab, and xAI Realtime.
  humanURL: https://mastra.ai/docs/voice/overview
  tags:
  - Voice
  - Speech
  - Realtime
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/voice/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/voice
- aid: mastra-ai:mastra-observability
  name: Mastra Observability
  description: OpenTelemetry-native tracing for agents, workflows, tools, and LLM calls with first-party exporters for Mastra
    Cloud, Langfuse, LangSmith, Braintrust, Arize, Arthur, Laminar, Datadog, Sentry, ClickHouse, and PostHog. AI SpanKind
    semantic conventions and an OTel bridge are supported out of the box.
  humanURL: https://mastra.ai/docs/observability/overview
  tags:
  - Observability
  - Tracing
  - OpenTelemetry
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/observability/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/observability
- aid: mastra-ai:mastra-cli
  name: Mastra CLI
  description: The mastra CLI scaffolds projects (`npm create mastra`), runs the local dev server with hot reload, opens the
    Studio playground, generates types, runs migrations on memory stores, deploys to Mastra Cloud, and runs evals. Installable
    as @mastra/cli.
  humanURL: https://mastra.ai/docs/cli/overview
  tags:
  - CLI
  - Developer Tools
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/cli/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/packages/cli
  - type: PackageManager
    url: https://www.npmjs.com/package/mastra
- aid: mastra-ai:mastra-client-sdks
  name: Mastra Client SDKs
  description: Client-side SDKs that talk to a Mastra server from the browser, React applications, or any JavaScript runtime.
    Includes @mastra/client-js (universal JS client), @mastra/react (React hooks for agents, streaming, and workflows), and
    @mastra/ai-sdk (adapters for the Vercel AI SDK UI primitives).
  humanURL: https://mastra.ai/docs/client-sdks/overview
  tags:
  - SDK
  - Client
  - React
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/client-sdks/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/client-sdks
  - type: PackageManager
    url: https://www.npmjs.com/package/@mastra/client-js
- aid: mastra-ai:mastra-deployers
  name: Mastra Deployers
  description: Deployer packages that bundle a Mastra app for a target runtime. Built-in deployers cover Mastra Cloud, Cloudflare
    Workers, Vercel, and Netlify. Custom deployers can be written for any Node-compatible platform.
  humanURL: https://mastra.ai/docs/deployment/overview
  tags:
  - Deployment
  - Serverless
  - Edge
  properties:
  - type: Documentation
    url: https://mastra.ai/docs/deployment/overview
  - type: SourceCode
    url: https://github.com/mastra-ai/mastra/tree/main/deployers
common:
- type: DomainSecurity
  url: security/mastra-ai-domain-security.yml
- type: Website
  url: https://mastra.ai
- type: Documentation
  url: https://mastra.ai/docs
- type: GitHub
  url: https://github.com/mastra-ai/mastra
- type: GitHubOrg
  url: https://github.com/mastra-ai
- type: Blog
  url: https://mastra.ai/blog
- type: ChangeLog
  url: https://github.com/mastra-ai/mastra/releases
  name: GitHub Releases
- type: Pricing
  url: https://mastra.ai/pricing
- type: PackageManager
  url: https://www.npmjs.com/org/mastra
  name: npm @mastra Org
- type: Examples
  url: https://github.com/mastra-ai/mastra/tree/main/examples
- type: Templates
  url: https://mastra.ai/templates
- type: Community
  url: https://discord.gg/BTYqqHKUrf
  name: Discord
- type: XTwitter
  url: https://x.com/mastra_ai
- type: LinkedIn
  url: https://www.linkedin.com/company/mastra-ai
- type: YouTube
  url: https://www.youtube.com/@mastra-ai
- type: Course
  url: https://mastra.ai/course
  name: Mastra MCP Course
- type: Book
  url: https://mastra.ai/book
  name: Principles of Building AI Agents
- type: Podcast
  url: https://mastra.ai/agent-hour
  name: Agent Hour
- type: License
  url: https://github.com/mastra-ai/mastra/blob/main/LICENSE.md
  name: Apache 2.0 + Mastra Enterprise License
- type: YCombinator
  url: https://www.ycombinator.com/companies/mastra
- type: Crunchbase
  url: https://www.crunchbase.com/organization/mastra-44ba
overlays:
- type: APIs.io Search
  url: overlays/apis-io-search.yml
- type: API Evangelist Ratings
  url: overlays/api-evangelist-ratings.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com