CreateWithAIHub

Template Mastra

Mastra Templates

Mastra's collection of ready-to-run TypeScript agent, workflow and MCP server projects, scaffolded with create-mastra.

Agent starter kitOfficialFreeOpen source
Visit website ↗
Save

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)
Scaffold a template
npx create-mastra@latest --template deep-search
Start dev server
npm run dev

Commands 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.

FreeOpen source

Cloudflare starter for an AI chat agent on Workers with tools, approvals, scheduling and vision via Workers AI.

FreeOpen source

MCP servers for this

Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.

Free plan + paid

Microsoft's MCP server for browser automation that drives pages through Playwright accessibility snapshots.

FreeOpen source

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.

FeaturedFree

Skills for this

Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.

FreeOpen source

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.

FreeOpen source

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.

Free plan + paid

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.

Free plan + paid

Open-source framework for building LLM agents and apps with a standard interface across model providers.

FreeOpen source

Type to search. Use ↑ ↓ and Enter.