Skip to content
Agentmart
Submit a tool

Ax vs Mastra

Ax and Mastra are both agent frameworks for TypeScript. Ax is published by Ax and Mastra by Mastra. On GitHub, Mastra has 29,050 stars and Ax has 2,969. Both were last active in Oct 2026. The table lines up where they differ (publisher, GitHub stars, weekly downloads and languages) and has the install commands for both. Everything here comes from the listings' public sources and is refreshed daily. Ax describes itself as: DSPy-style toolkit for typed LLM signatures, agents and flows, TypeScript-first with Python, Java, C++, Go and Rust libraries. Mastra: TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing. Licenses: Ax Apache-2.0, Mastra unknown.

Updated Oct 26, 2026 · Built from catalog data; how we rank and grade

Who should pick which

  • Pick Ax if you work in Python and Java.
  • Pick Ax if you need several agents working together.
  • Pick Mastra if you want MCP support built in.
  • Mastra has the larger community: 29,050 GitHub stars against 2,969.

From listing data only. We don't pick a winner on security beyond the grades; read how grades work.

Side by side

FactAxMastra
TypeHarnessHarness
PublisherAxMastra
LicenseApache-2.0License unknown
PricingNot statedNot stated
RunsNot statedNot stated
AuthNot statedNot stated
Hosts supportedNot statedNot stated
ToolsNot listed yetNot listed yet
Security grade–Security: not graded yet–Security: not graded yet
Freshness gradeAFreshness: AAFreshness: A
GitHub stars2,96929,050
Weekly downloads27,1681,442,185
Last releaseOct 21, 2026Oct 21, 2026
Last activityOct 21, 2026Oct 24, 2026

Facts from each listing's public sources, checked daily. Tool lists arrive with tool scans.

Install

Ax

npm install @ax-llm/ax

Mastra

npm install @mastra/core

Also consider

Questions

Is Ax or Mastra more popular?
Mastra has more GitHub stars (29,050 against 2,969). Stars measure attention, not quality, so check freshness and docs too.
Are Ax and Mastra open source?
Ax is open source (Apache-2.0); the other is unknown.
Cite this page

Ax vs Mastra. Agent Mart. https://agentmart.dev/compare/ax-vs-mastra (last updated 2026-10-26)