deploy_to_railway
Deploy a project to Railway with optional PostgreSQL, Redis, or MongoDB plugins. Provide your Railway API token and project path to start.
Instructions
Deploy a project to Railway with optional database plugins (PostgreSQL, Redis, MongoDB). Railway handles the full stack. Requires a Railway API token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>",
"token": "<token>"
},
"name": "deploy_to_railway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Railway API token (get from https://railway.app/account/tokens) | |
| region | No | Deployment region (us-west1, us-east4, europe-west4, asia-southeast1) | |
| envVars | No | Environment variables to set (key-value pairs) | |
| withRedis | No | Add Redis plugin to the project | |
| projectName | No | Name for the Railway project | |
| projectPath | Yes | Absolute path to the project to deploy | |
| serviceName | No | Name for the service within the project | |
| withMongoDB | No | Add MongoDB plugin to the project | |
| withPostgres | No | Add PostgreSQL plugin to the project |