Skip to content
Agentmart
Submit a tool

LangGraph.js vs Mastra

LangGraph.js and Mastra are both agent frameworks. LangGraph.js is published by LangChain and Mastra by Mastra. On GitHub, Mastra has 29,050 stars and LangGraph.js has 3,370. Both were last active in Oct 2026. The table lines up where they differ (publisher, GitHub stars and weekly downloads) and has the install commands for both. Everything here comes from the listings' public sources and is refreshed daily. LangGraph.js describes itself as: Open-source agent harness from LangChain for building agents with code, with LangSmith for testing and monitoring. Mastra: TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing. Licenses: LangGraph.js MIT, Mastra unknown.

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.
  • Mastra has the larger community: 29,050 GitHub stars against 3,370.

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

Side by side

FactLangGraph.jsMastra
TypeHarnessHarness
PublisherLangChainMastra
LicenseMITLicense 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 stars3,37029,050
Weekly downloads2,326,8971,442,185
Last releaseOct 22, 2026Oct 21, 2026
Last activityOct 22, 2026Oct 24, 2026

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

Install

LangGraph.js

npm install @langchain/langgraph

Mastra

npm install @mastra/core

Also consider

Questions

Is LangGraph.js or Mastra more popular?
Mastra has more GitHub stars (29,050 against 3,370). Stars measure attention, not quality, so check freshness and docs too.
Are LangGraph.js and Mastra open source?
LangGraph.js is open source (MIT); the other is unknown.
Cite this page

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