Prerequisites
- a Redop app that uses the HTTP transport
- a start command that runs your server with Bun
- environment variables configured in Railway
Minimal server shape
Runtime settings
- listen on
process.env.PORT - bind to
0.0.0.0 - keep secrets in Railway service variables
- configure the health check path as
/mcp/health
Deploy steps
- Push your Redop app to GitHub.
- Create a new Railway project and connect the repo.
- Set the service root if your app lives in a workspace or subdirectory.
- Add your runtime variables in the service’s Variables tab.
- Set or confirm the start command that runs the Bun server.
Verify the deployment
Once Railway assigns a public domain, check:200 response.
Redop note
Railway injectsPORT for public services, so Redop should use that value instead of a fixed port.
Common mistake
Do not bind tolocalhost. Railway expects your app to listen on 0.0.0.0:$PORT.