---
title: "Deploy Mastra Studio Standalone"
description: "Standalone Mastra Studio UI - connect to any running Mastra server"
category: "AI/ML"
url: https://railway.com/deploy/mastra-studio-standalone
---

# Deploy Mastra Studio Standalone

Standalone Mastra Studio UI - connect to any running Mastra server

**[Deploy Mastra Studio Standalone on Railway](https://railway.com/template/mastra-studio-standalone)**

- **Creator:** Sjoerd Tiemensma
- **Category:** AI/ML
- **Total deploys:** 2

## Template content

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

- **Source:** https://github.com/Sjotie/mastra-studio-railway
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Mastra Studio Standalone on Railway

[Mastra Studio](https://mastra.ai/docs/studio/overview) is the interactive UI for the [Mastra](https://mastra.ai) 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 dev` locally
- 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

- [Mastra documentation](https://mastra.ai/docs)
- [Studio deployment guide](https://mastra.ai/docs/studio/deployment)
- [Studio auth](https://mastra.ai/docs/studio/auth)
- [Template source on GitHub](https://github.com/Sjotie/mastra-studio-railway)

### 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](https://mastra.ai/docs/studio/auth); 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.


## 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-studio-standalone
