
Template Mastra
Mastra Templates
Mastra's collection of ready-to-run TypeScript agent, workflow and MCP server projects, scaffolded with create-mastra.
What it is
Mastra Templates are complete Mastra projects that you scaffold, add API keys to and open in Mastra Studio. Examples include a deep search research assistant, chat with a database or PDF, a customer refund agent, a GitHub PR code review agent, a browser agent, meeting notes and a starter agent harness. Templates live in the Apache-2.0 Mastra monorepo and are synced to standalone repositories for cloning.
What it's useful for
Starting a research or customer-support agent in TypeScript from a working example instead of an empty project.
Key features
- Templates for agents, workflows and MCP servers
- Examples: deep search, chat with PDF/database, text-to-SQL, refund agent, PR review, browser agent
- Scaffold with npx create-mastra@latest --template <name>
- Runs in Mastra Studio at localhost:4111
- Each template ships .env.example and a quickstart README
- Mastra apps deploy with built-in deployers for Vercel, Netlify and Cloudflare, or as a Node.js server anywhere
How to use it
Before you start
- Node.js
- Model provider API key (OpenAI by default)
npx create-mastra@latest --template deep-searchnpm run devCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Most templates default to OpenAI and need a model provider API key
- Some newer templates depend on Mastra platform services (Gateway, @mastra/connect)
Alternatives
Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.
Cloudflare starter for an AI chat agent on Workers with tools, approvals, scheduling and vision via Workers AI.
MCP servers for this
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Microsoft's MCP server for browser automation that drives pages through Playwright accessibility snapshots.
CreateWithAI Hub's own MCP server: tell your AI what you're building and it finds the tools, MCP servers and skills for the job.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.
Related resources
Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.
Z.ai's GLM model family (GLM-5.3, GLM-5.3-Flash): open-weight MoE language models with a 1M-token context, API and chat app.
Moonshot AI's Kimi models (K3.1 Pro, K3, earlier K2 series): large open-weight MoE models with a 1M-token context and a paid API.
Open-source framework for building LLM agents and apps with a standard interface across model providers.