{"slug":"mastra","id":"mastra","type":"agent","title":"Mastra","description":"TypeScript-first agent framework built by the team behind Gatsby. Features built-in model routing, RAG pipelines, memory management, and MCP integration, designed for developers who prefer the TypeScript ecosystem.","last_updated":"2026-04-10","last_verified":null,"verification_status":"unverified","markdown_url":"/content/agents/mastra.md","html_url":"/agents/mastra","api_url":"/api/v1/agents/mastra.json","content_hash":"8133223160a23939c3baaa3c97ffec3a6a83e25637fd21b4ff25a4f7631e00e2","sha256":"8133223160a23939c3baaa3c97ffec3a6a83e25637fd21b4ff25a4f7631e00e2","pricing":"Free / Open Source","tags":["dev-framework","typescript"],"website":"https://mastra.ai","relationships":{"links":[],"related":[{"id":"anthropic-agent-sdk","title":"Anthropic Agent SDK","type":"agent","html_url":"/agents/anthropic-agent-sdk","markdown_url":"/content/agents/anthropic-agent-sdk.md","shared_tags":["dev-framework","typescript"],"score":4},{"id":"autogen","title":"AutoGen","type":"agent","html_url":"/agents/autogen","markdown_url":"/content/agents/autogen.md","shared_tags":["dev-framework"],"score":3},{"id":"claude-code","title":"Claude Code","type":"agent","html_url":"/agents/claude-code","markdown_url":"/content/agents/claude-code.md","shared_tags":["typescript"],"score":3},{"id":"crewai","title":"CrewAI","type":"agent","html_url":"/agents/crewai","markdown_url":"/content/agents/crewai.md","shared_tags":["dev-framework"],"score":3},{"id":"google-adk","title":"Google ADK","type":"agent","html_url":"/agents/google-adk","markdown_url":"/content/agents/google-adk.md","shared_tags":["dev-framework"],"score":3},{"id":"langgraph","title":"LangGraph","type":"agent","html_url":"/agents/langgraph","markdown_url":"/content/agents/langgraph.md","shared_tags":["dev-framework"],"score":3}],"explicit":{}},"metadata":{"title":"Mastra","type":"agent","id":"mastra","category":"dev-framework","category_label":"Dev Framework","description":"TypeScript-first agent framework built by the team behind Gatsby. Features built-in model routing, RAG pipelines, memory management, and MCP integration, designed for developers who prefer the TypeScript ecosystem.","last_updated":"2026-04-10","website":"https://mastra.ai","github":"https://github.com/mastra-ai/mastra","stars":"10K+","license":"Elastic License 2.0","pricing":"Free / Open Source","languages":["TypeScript"],"tags":["dev-framework","typescript"],"best_for":["TypeScript developers","RAG applications","Full-stack JS/TS projects","MCP tool integrations"]},"content_text":"# Mastra\n\nThe agent framework for TypeScript developers who are tired of being an afterthought. While LangGraph, CrewAI, AutoGen, OpenAI Agents SDK, and Google ADK are all Python-first (or Python-only), Mastra is built from the ground up for the TypeScript ecosystem, by the team that built Gatsby.\n\nBuilt-in RAG pipelines, memory management, and model routing mean you are not cobbling together five different libraries to build a capable agent. MCP integration is native, so your agents can discover and connect to tools using the same protocol Anthropic is pushing across the industry. The workflow orchestration engine handles the multi-step coordination that would otherwise require LangGraph-level complexity.\n\nAt 10K stars, the community is growing fast. The Elastic License 2.0 is worth noting -- it is not MIT or Apache, meaning there are restrictions on offering Mastra as a managed service. For most developers building their own applications, this is irrelevant. For companies planning to host it as a product, read the license carefully.\n\nThe main gap is ecosystem maturity. Python frameworks have years of tutorials, Stack Overflow answers, and battle-tested patterns. Mastra is newer, so you will encounter more rough edges and fewer examples. But if your team lives in TypeScript and you refuse to maintain a Python microservice just for your agent layer, Mastra is the only serious option.\n\n**When to pick something else:** If you are a Python shop, CrewAI or LangGraph are more mature. If you want a vendor-backed SDK, the Anthropic Agent SDK supports TypeScript too. If you need no-code, Lindy or n8n skip the framework entirely.","content_length":2342,"generated_at":"2026-04-24"}