mastra
Mastra is the modern TypeScript framework for AI-powered applications and agents.
Mastra is a TypeScript framework for building AI-powered applications and agents that includes support for authoring Model Context Protocol servers. It provides a unified interface to connect with over 40 AI model providers including OpenAI, Anthropic, and Google, while offering tools for building autonomous agents, graph-based workflows, and human-in-the-loop processes. Developers can expose their Mastra agents, tools, and structured resources through the MCP interface, making them accessible to any MCP-compatible system or client. The framework integrates with React, Next.js, and Node.js applications or can be deployed as a standalone server.
Key Features
Use Cases
- 01Exposing custom AI agents and tools to MCP-compatible clients through standardized protocol
- 02Building autonomous agents that reason about goals and execute multi-step tasks independently
- 03Creating complex multi-step workflows with explicit control over execution flow and branching
- 04Implementing approval workflows where AI tasks pause for human review before proceeding
- 05Developing AI assistants with long-term memory and contextual awareness across conversations
- 06Prototyping and deploying production-ready AI applications with TypeScript
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
mastra — FAQ
What is the Mastra MCP server?+
Mastra is a TypeScript framework that enables you to author Model Context Protocol servers, which expose AI agents, tools, and structured resources through the MCP interface. This allows any MCP-compatible system or agent to access your Mastra components.
How do I install Mastra?+
Run 'npm create mastra@latest' to set up a new project using the CLI wizard, which will prompt you for project name and AI provider selection. Alternatively, follow the manual installation steps in the official documentation at mastra.ai.
Which MCP clients work with Mastra?+
Any system or agent that supports the Model Context Protocol can access Mastra-authored MCP servers. The framework also integrates with Claude Desktop, Cursor, and other MCP-compatible clients.
Do I need API keys to use Mastra?+
Yes, you'll need API keys for the AI model provider you choose (OpenAI, Anthropic, Google, or XAI). The setup wizard asks which provider you want to use during project creation.
Is Mastra free to use?+
The core framework is open source under the Apache 2.0 license. Enterprise features in 'ee/' directories require a Mastra Enterprise License for production use, but can be freely used for development and testing.
What frameworks does Mastra integrate with?+
Mastra integrates with React, Next.js, and Node.js applications. It also works with agentic UI libraries like Vercel AI SDK UI and CopilotKit, and can be deployed as a standalone server.
How do I install mastra?+
Open the source repository on GitHub and follow its README. mastra is a mcp server — MCP Agents Market links you directly to the official repo.
Is mastra free?+
mastra is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.