home / mcp / railway mcp server
An unofficial and community-built MCP server for integrating with https://railway.app
Configuration
View docs{
"mcpServers": {
"jason-tan-swe-railway-mcp": {
"command": "npx",
"args": [
"-y",
"@jasontanswe/railway-mcp",
"<RAILWAY_API_TOKEN>"
],
"env": {
"RAILWAY_API_TOKEN": "<RAILWAY_API_TOKEN>"
}
}
}
}You can manage Railway.app infrastructure through an MCP server that lets you authenticate with Railway API tokens, manage projects and deployments, run services from GitHub or Docker images, and handle variables and networks directly from MCP clients. This guide shows how to install and use the Railway MCP Server with supported MCP clients, so you can orchestrate Railway resources via simple commands.
This MCP server exposes a set of commands you can run through compatible MCP clients to manage Railway resources. Typical workflows include authenticating with your Railway API token, listing and inspecting projects, creating or managing services from repositories or images, handling environment variables, and restarting deployments. You can invoke the server using an MCP client that runs a local command, or configure a client to launch the MCP with the provided CLI wrapper.
Prerequisites. Ensure you have Node.js 18 or newer installed and an active Railway account with an API token.
Install via MCP client helpers. The following commands show how to install and run the Railway MCP Server through popular MCP clients.
npx -y @smithery/cli install @jason-tan-swe/railway-mcp --client claudeFor Cursor, run the MCP server with your Railway API token in the config string.
npx -y @smithery/cli@latest run @jason-tan-swe/railway-mcp --config "{\"railwayApiToken\":\"token\"}"If you prefer to install manually for Cursor, you can run the MCP server using this command pattern with your token.
npx -y @jasontanswe/railway-mcp <RAILWAY_API_TOKEN>To configure Railway MCP within Claude for Desktop, you can add the MCP server via the clientβs configuration, using the following structure to provide the API token.
{
"railway": {
"command": "npx",
"args": ["-y", "@jasontanswe/railway-mcp"],
"env": {
"RAILWAY_API_TOKEN": "your-railway-api-token-here"
}
}
}Authenticate with Railway using your API token to enable subsequent actions across projects, services, deployments, and variables.
List all Railway projects in your account to understand scope and IDs for subsequent operations.
Retrieve detailed information about a specific project, including environments and settings.
Create a new Railway project, optionally specifying a team.
Delete a project from your Railway account.
List all services within a specified project to manage workflows.
Get detailed information about a specific service, including build and runtime configuration.
Create a new service by connecting a GitHub repository to Railway.
Create a new service from a Docker image.
Remove a service from a project.
Restart a service in a given environment to apply updates or recover from failures.
Update service configuration such as build command or start command.
View recent deployments for a service to monitor progress and history.
Trigger a new deployment for a service to apply changes.
Fetch logs for a specific deployment to diagnose issues.
Check the health and status of a deployment to verify availability.
List all variables for a service or environment.
Create or update a variable for a service/environment.
Delete a variable from a service/environment.
List available database types that can be deployed.
Deploy a new database service.