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

Deep Search

An AI research assistant that evaluates its own work.

Google Sheet Analysis

Google Sheet Analysis

Analyze and edit Google Sheet

Browser Agent

Browser Agent

Integrate Stagehand into Mastra

Chat with Database

Chat with Database

Query a database using natural language

Chat with PDF

Chat with PDF

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

Flash Cards from PDF

Flash Cards from PDF

Generate educational flash cards from PDF documents

CSV to Questions Generator

CSV to Questions Generator

Let an agent analyze your CSV

KYC and Customer Onboarding

KYC and Customer Onboarding

A Know Your Customer (KYC) template for verifying customer identities, assessing risk, and routing applications for compliance review.

Accounts Payable Automated Invoice Processing

Extract invoice details, verify vendors, match purchase orders and receipts, detect duplicates, route approvals, and optionally post bills to QuickBooks.

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

Agent Harness

A general-purpose Mastra agent with a local workspace, shell tools, memory, task tracking, web access, and recurring schedules.

Agent Builder

A template allowing Mastra agents to be built with natural language or through a visual editing interface.

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.

Ship better agents

Quickstart