R
About
A Model Context Protocol server for interacting with your Railway account. This local MCP server provides a set of opinionated workflows and tools for managing Railway resources.
Prerequisites
The Railway CLI is required for this server to function.
Features
- Non-destructive by design: The MCP server doesn't include destructive actions
- CLI version detection: Automatically detects your Railway CLI version to use appropriate features
- Template deployment: Deploy from Railway's template library
Available Tools
Status & Authentication
check-railway-status- Checks that the Railway CLI is installed and that the user is logged in
Project Management
list-projects- List all Railway projectscreate-project-and-link- Create a new project and link it to the current directory
Service Management
list-services- List all services in a projectlink-service- Link a service to the current directorydeploy- Deploy a servicedeploy-template- Deploy a template from the Railway Template Library
Environment Management
create-environment- Create a new environmentlink-environment- Link an environment to the current directory
Configuration & Variables
list-variables- List environment variablesset-variables- Set environment variablesgenerate-domain- Generate a railway.app domain for a project
Monitoring & Logs
get-logs- Retrieve build or deployment logs for a service (CLI v4.9.0+ supportslinesandfilterparameters)
Example Usage
Creating a new project and deploying:
Create a Next.js app in this directory and deploy it to Railway. Make sure to also assign it a domain.
Deploy from a template:
Deploy a Postgres database
Pull environment variables:
I would like to pull environment variables for my project and save them in a .env file
Create a new environment:
I would like to create a new development environment called development where I can test my changes. This environment should duplicate production. Once the environment is created, I want to set it as my current linked environment
This server runs through your single 1Server connection. No extra config required.
0Installs
190Stars
Categories
DevOpsInfrastructureCloud
In collections
Links
Tags
Official