Deploy Mastra Agent Showcase
The Mastra kitchen sink: agents, workflows, MCP, guardrails, HITL.
Mastra Server
Just deployed
/data
Deploy and Host Mastra Agent Showcase on Railway
Mastra 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
Implementation Details
List the deployed agents:
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.
Template Content
Mastra Server
leoisadev1/mastra-template-agentOPENAI_API_KEY
