Mastra Templates

Starter kits for AI agent builders. Clone a working example of an agent, workflow, or MCP server and make it yours.

Frequently asked questions

What are Mastra Templates?

Mastra Templates are ready-to-use projects that show off what you can build with Mastra. Clone one, poke around and make it yours. Each template provides integrations and building blocks for AI agents, workflows and MCP servers.

What types of AI agents can I build with Mastra Templates?

Mastra Templates cover a range of AI agent types including research assistants, browser agents, database chat agents, PDF assistants, code review agents, Slack agents, document processing agents and documentation chatbots. Templates also cover workflow examples for Google Sheets analysis, CSV processing and customer feedback summarization, plus MCP server templates for documentation and developer tools.

How do I get started with a Mastra Template?

Each Mastra Template includes a quickstart guide in its repository. Follow the instructions to scaffold the project locally, add your API keys and run the dev server to open the template in Mastra Studio at localhost:4111.

Can I connect Mastra Templates to my existing app?

Mastra Templates can be connected to React, Next.js or Vue apps using the Mastra Client SDK or agentic UI libraries including AI SDK UI, CopilotKit and Assistant UI.

Can I contribute a Mastra Template?

Mastra welcomes template contributions from the community. Templates live in the Mastra monorepo and are automatically synced to standalone repositories for easier cloning. To contribute, see CONTRIBUTING.md in the Mastra monorepo.

Ship better agents