Get the FREE Ultimate OpenClaw Setup Guide →

mastra

From the team behind Gatsby, Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mastra-ai-mastra npx -y @mastra/core

How to use

Mastra is a powerful framework designed for building AI-powered applications and agents using TypeScript. It provides a comprehensive set of tools that enable developers to create, tune, and scale reliable AI products. Key features include model routing to connect with over 40 AI providers, the ability to build autonomous agents that can reason and make decisions, and a graph-based workflow engine for orchestrating complex processes. Additionally, Mastra supports human-in-the-loop interactions, allowing for user input during agent execution, and offers context management to ensure agents behave coherently based on conversation history and memory.

How to install

To install Mastra, ensure you have Node.js installed on your machine. Then, run the following command to create a new Mastra project:

npm create mastra@latest

Follow the prompts to set up your project. For detailed installation instructions, refer to the Installation guide.

Additional notes

When working with Mastra, it's important to familiarize yourself with its documentation and available templates to maximize your productivity. Common issues may arise from version mismatches or missing dependencies, so ensure your Node.js environment is up to date. Additionally, consider joining the community Discord for support and collaboration opportunities.

Related MCP Servers

Sponsor this space

Reach thousands of developers