Deploy Mastra Studio Standalone
Standalone Mastra Studio UI - connect to any running Mastra server
Mastra Studio
Just deployed
Deploy and Host Mastra Studio Standalone on Railway
Mastra Studio is the interactive UI for the Mastra AI agent framework: build, test, and manage agents, workflows, and tools in the browser. This template hosts Studio as a standalone static app via the mastra studio command, so you can point it at any Mastra server you already run — on Railway, your own infra, or elsewhere.
About Hosting Mastra Studio Standalone
Studio is a React SPA that connects to a running Mastra server. This template serves the built Studio assets with the official mastra studio static server and pre-wires the connection through the MASTRA_SERVER_URL variable — set it to your server's URL and Studio connects on load; leave it empty and Studio shows a connect form where you can enter any Mastra instance URL. The container binds Railway's injected PORT automatically. Deploy it once and use the same hosted UI against dev, staging, and production Mastra servers.
Common Use Cases
- A hosted Studio UI for a Mastra server that doesn't bundle Studio itself
- One shared Studio for your team instead of everyone running
mastra devlocally - Operating multiple Mastra deployments from a single UI via the connect form
Dependencies for Mastra Studio Standalone Hosting
- A running Mastra server to connect to (deploy one with the Mastra Server With Studio template, or bring your own)
Deployment Dependencies
Implementation Details
Two notes for connecting Studio to your server:
- Your Mastra server must allow CORS requests from this Studio domain.
- Studio has full access to the agents, workflows, and tools on the server it connects to — secure your server with authentication; Studio will show its login screen automatically.
Why Deploy Mastra Studio Standalone 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 Studio Standalone 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 Studio
Sjotie/mastra-studio-railway