---
title: "Deploy Mastra Agent Showcase"
description: "The Mastra kitchen sink: agents, workflows, MCP, guardrails, HITL."
category: "AI/ML"
url: https://railway.com/deploy/mastra-agent-showcase
---

# Deploy Mastra Agent Showcase

The Mastra kitchen sink: agents, workflows, MCP, guardrails, HITL.

**[Deploy Mastra Agent Showcase on Railway](https://railway.com/template/mastra-agent-showcase)**

- **Creator:** leodev
- **Category:** AI/ML

## Template content

### Mastra Server https://unpkg.com/mastra/dist/studio/mastra.svg

- **Source:** https://github.com/leoisadev1/mastra-template-agent
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Mastra Agent Showcase on Railway

[Mastra](https://mastra.ai) is the open-source TypeScript framework for building AI agents and workflows. This template deploys the Mastra "kitchen sink" example: dozens of agents (chef, gateway, code-mode, clinic supervisor and specialists, billing, dynamic tools, human-in-the-loop approvals), ten workflows, MCP servers, input/output guardrail processors (PII redaction, moderation, toxicity), a pluggable auth matrix — all on one server.

## About Hosting Mastra Agent Showcase

The server exposes every agent and workflow through the standard Mastra REST API on one service, and the public domain also serves Mastra Studio, so you can chat with any agent and run any workflow in the browser. LibSQL and DuckDB state persists on an attached volume. Auth defaults to open; set `AUTH_PROVIDER` and the matching provider variables to enable WorkOS, Clerk, Auth0, Okta, better-auth, or simple token auth. The demo cron schedules are off by default because they fire every minute; set `DEMO_SCHEDULES=true` to turn them on. Set your OpenAI API key and deploy.

## Common Use Cases

- Explore nearly every Mastra capability from one running deployment
- Use working reference implementations of processors, MCP wiring, HITL approvals, and multi-agent networks as a starting point for your own server
- Demo Mastra to your team with real endpoints instead of local setups

## Dependencies for Mastra Agent Showcase Hosting

- OpenAI API key (agent models)

### Deployment Dependencies

- [Mastra docs](https://mastra.ai/docs)

### Implementation Details

List the deployed agents:

```bash
curl https://YOUR-DOMAIN.up.railway.app/api/agents
```

## Why Deploy Mastra Agent Showcase on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Mastra Agent Showcase on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/mastra-agent-showcase
