{
 "kind": "tool",
 "slug": "mastra",
 "path": "tools/mastra/",
 "name": "Mastra",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Agent, MCP and tool libraries",
   "tools/agent-libraries/"
  ]
 ],
 "lead": "Framework for building AI agents with tools, memory and MCP server support.",
 "chips": [
  {
   "label": "Agent, MCP and tool libraries",
   "path": "tools/agent-libraries/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @mastra/core"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/mastra-ai/mastra"
  },
  {
   "label": "Website",
   "href": "https://mastra.ai"
  },
  {
   "label": "Its AgentGid profile",
   "path": "agents/mastra/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/mastra-ai/mastra"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 18, 2026. ",
   "src": "https://github.com/mastra-ai/mastra"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "37 projects",
   "status": "info",
   "sub": "#8 of 192 in its category",
   "note": "Dependency in 37 public GitHub projects set up for AI coding agents that we scanned (0.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Mastra does",
   "parts": [
    {
     "t": "prose",
     "text": "Framework for building AI agents with tools, memory and MCP server support."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Mastra popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "73",
       "of": "/ 100",
       "l": "Gid Score, #278 overall"
      },
      {
       "n": "4M",
       "l": "downloads a week, npm"
      },
      {
       "n": "29.8K",
       "l": "GitHub stars"
      },
      {
       "n": "37",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Mastra is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Mastra is a dependency in 37 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.8% of the 4,867 JavaScript/TypeScript ones), #8 of 192 in agent, mcp and tool libraries.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 316; those are left out of every share on this page.",
      "The most used alternative in our scan is LangChain.js (37 projects).",
      "Projects that use it most often also use Zod (97.3%), AI SDK (91.9%), TypeScript (91.9%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "21 projects, 0.7%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "16 projects, 0.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "15 projects, 0.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 97.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 91.9% of its projects",
       "v": "AI SDK",
       "path": "tools/ai/"
      },
      {
       "l": "In 91.9% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 40.5% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 21.6% of its projects",
       "v": "Zustand",
       "path": "tools/zustand/"
      },
      {
       "l": "In 27.0% of its projects",
       "v": "next-themes",
       "path": "tools/next-themes/"
      },
      {
       "l": "In 27.0% of its projects",
       "v": "Sonner",
       "path": "tools/sonner/"
      },
      {
       "l": "In 48.6% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Mastra",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Agent, MCP and tool libraries",
       "path": "tools/agent-libraries/",
       "items": [
        {
         "text": "Model Context Protocol SDK (JavaScript)",
         "path": "tools/modelcontextprotocol/"
        },
        {
         "text": "Model Context Protocol SDK (Python)",
         "path": "tools/mcp/"
        },
        {
         "text": "FastMCP (Python)",
         "path": "tools/fastmcp-pypi/"
        },
        {
         "text": "LangChain",
         "path": "tools/langchain-pypi/"
        },
        {
         "text": "LangGraph",
         "path": "tools/langgraph/"
        },
        {
         "text": "Agent Client Protocol SDK",
         "path": "tools/agentclientprotocol-sdk/"
        },
        {
         "text": "MCP Inspector",
         "path": "tools/modelcontextprotocol-inspector/"
        },
        {
         "text": "fastMCP (JavaScript)",
         "path": "tools/fastmcp-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Mastra",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 73",
        "4M/wk"
       ]
      },
      {
       "name": "LangChain.js",
       "why": "Build applications with LLMs using composable abstractions for chains, agents and memory.",
       "path": "tools/langchain-npm/",
       "facts": [
        "MIT",
        "Gid 75",
        "8.7M/wk"
       ]
      },
      {
       "name": "Google Genkit",
       "why": "AI framework for building, testing and monitoring generative AI applications.",
       "path": "tools/genkit/",
       "facts": [
        "Apache-2.0",
        "Gid 46",
        "264K/wk"
       ]
      },
      {
       "name": "OpenAI Agents SDK (JavaScript)",
       "why": "Lightweight framework for building multi-agent AI workflows.",
       "path": "tools/openai-agents-npm/",
       "facts": [
        "MIT",
        "Gid 59",
        "2.4M/wk"
       ]
      }
     ],
     "more": "Compare Mastra with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @mastra/core"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Mastra yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @mastra/core"
  ],
  [
   "Category",
   "Agent, MCP and tool libraries"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "72.9"
  ],
  [
   "Rank in category",
   "#8 of 192"
  ],
  [
   "GitHub",
   "mastra-ai/mastra"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/mastra-ai.png"
}