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

Deep Search
An AI research assistant that evaluates its own work.

Google Sheet Analysis
Analyze and edit Google Sheet

Browser Agent
Integrate Stagehand into Mastra

Chat with Database
Query a database using natural language

Chat with PDF
An AI-powered PDF assistant that lets you chat with any PDF document.

Flash Cards from PDF
Generate educational flash cards from PDF documents

CSV to Questions Generator
Let an agent analyze your CSV
GitHub PR Code Review
An AI-powered code review agent for GitHub
Docs Chatbot
Build an MCP server and connect it to a Mastra agent
Chat with YouTube
Paste a link to get summaries, answers, and chapter timestamps - all with clickable citations to the source.
Slack Agent
Build Slack Agents with Mastra
Customer Feedback Summarization
An AI agent that analyzes customer feedback and produces actionable summaries.
Mastra Code
A terminal-based AI coding agent built on Mastra's primitives
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.