Mastra Templates

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

Showing 21 templates

Official

Deep Search

An AI research assistant that evaluates its own work.

Official

Google Sheet Analysis

Builds financial models, projections, and analyses directly in Google Sheets.

Official

Browser Agent

Integrate Stagehand into Mastra

Official

Chat with Database

Query a database using natural language

Official

Chat with PDF

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

Official

Flash Cards from PDF

Generate educational flash cards from PDF documents

Official

CSV to Questions Generator

Let an agent analyze your CSV

Official

Customer Support and Refund Agent

Answers support requests and proposes policy-backed refunds for human review.

Official

Security Incident Triage and Response

Investigates alerts and prepares evidence-based response actions for human approval.

Official

KYC and Customer Onboarding

Verifies identities, assesses risk, and routes KYC cases for compliance review.

Official

Accounts Payable Invoice Processing

Validates invoices, matches records, detects duplicates, and routes approvals.

Official

Agent Harness

Runs research and multi-step tasks with tools, memory, approvals, and schedules.

Official

Agent Builder

Builds Mastra agents through natural language or a visual editor.

Official

Chat with YouTube

Summarizes YouTube videos and answers questions with clickable timestamp citations.

Official

Slack Agent

Connects Mastra Agents to Slack with streaming responses and thread memory.

Official

GitHub PR Code Review

An AI-powered code review agent for GitHub

Official

Docs Chatbot

Builds an MCP-powered documentation assistant connected to a Mastra agent.

Official

Customer Feedback Summarization

An AI agent that analyzes customer feedback and produces actionable summaries.

Official

Mastra Code

A terminal-based AI coding agent built on Mastra's primitives

Official

Partner

Community

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

Quickstart