Skip to content
Agentmart
Submit a tool

Claude Agent SDK (TypeScript) vs Mastra

Claude Agent SDK (TypeScript) and Mastra are both agent frameworks for TypeScript. Claude Agent SDK (TypeScript) is published by Anthropic and Mastra by Mastra. On GitHub, Mastra has 29,050 stars and Claude Agent SDK (TypeScript) has 1,831. Both were last active in Oct 2026. The table lines up where they differ (publisher, GitHub stars, weekly downloads and category) and has the install commands for both. Everything here comes from the listings' public sources and is refreshed daily. Claude Agent SDK (TypeScript) describes itself as: TypeScript SDK that gives programs Claude Code's built-in tools for reading, editing and running code, installed from npm. Mastra: TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing.

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

Who should pick which

  • Pick Mastra if you want MCP support built in.
  • Pick Mastra if you want a stable release (Claude Agent SDK (TypeScript) is marked beta).
  • Mastra has the larger community: 29,050 GitHub stars against 1,831.

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

Side by side

FactClaude Agent SDK (TypeScript)Mastra
TypeHarnessHarness
PublisherAnthropicMastra
LicenseLicense unknownLicense 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 stars1,83129,050
Weekly downloads8,074,1821,442,185
Last releaseOct 23, 2026Oct 21, 2026
Last activityOct 23, 2026Oct 24, 2026

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

Install

Claude Agent SDK (TypeScript)

npm install @anthropic-ai/claude-agent-sdk

Mastra

npm install @mastra/core

Also consider

Questions

Is Claude Agent SDK (TypeScript) or Mastra more popular?
Mastra has more GitHub stars (29,050 against 1,831). Stars measure attention, not quality, so check freshness and docs too.
Are Claude Agent SDK (TypeScript) and Mastra open source?
Neither has an open-source license on record.
Cite this page

Claude Agent SDK (TypeScript) vs Mastra. Agent Mart. https://agentmart.dev/compare/claude-agent-sdk-typescript-vs-mastra (last updated 2026-10-26)