Railway MCP by usefulapi
v1.1.0Read projects, deployments and logs, and redeploy services in Railway.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
railway_get_me Get the signed-in account
Return the Railway account that owns the token: id, name, username and email. Railway API: query me.
railway_list_workspaces List workspaces
List the workspaces the account is a member of (id and name). Use the id as workspace_id in other tools.
railway_get_workspace Get a workspace
Return one workspace: id, name, created and updated times. Railway API: query workspace(workspaceId).
| Parameter | Type | Description |
|---|---|---|
workspace_id * | string | Railway resource id (UUID), from a list tool. |
railway_list_projects List projects
List projects the token can see, optionally in one workspace. Returns id, name, description and your role. Use a project id with the other tools.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor from pageInfo.endCursor, for the next page. |
first | integer | Items per page (default 20, max 100). |
workspace_id | string | Only projects in this workspace id. |
railway_get_project Get a project
Return one project with its environments and services (ids and names). Railway API: query project(id).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Railway resource id (UUID), from a list tool. |
railway_list_environments List environments
List the environments of a project (for example production, staging). Railway API: query environments(projectId).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Railway resource id (UUID), from a list tool. |
after | string | Cursor from pageInfo.endCursor, for the next page. |
first | integer | Items per page (default 20, max 100). |
railway_get_service Get a service
Return one service (an app or database in a project): id, name, kind and project id. Railway API: query service(id).
| Parameter | Type | Description |
|---|---|---|
service_id * | string | Railway resource id (UUID), from a list tool. |
railway_get_service_instance Get a service in an environment
Return how a service runs in one environment: builder, build command, Dockerfile path, health check path, cron schedule. Railway API: query serviceInstance(environmentId, serviceId).
| Parameter | Type | Description |
|---|---|---|
environment_id * | string | Railway resource id (UUID), from a list tool. |
service_id * | string | Railway resource id (UUID), from a list tool. |
railway_list_deployments List deployments
List deployments of a project, optionally narrowed to one environment and service. Returns id, status, times and URLs. Railway API: query deployments(input).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Railway resource id (UUID), from a list tool. |
after | string | Cursor from pageInfo.endCursor, for the next page. |
environment_id | string | Only this environment id. |
first | integer | Items per page (default 20, max 100). |
service_id | string | Only this service id. |
railway_get_deployment Get a deployment
Return one deployment: status (for example SUCCESS, FAILED, CRASHED, BUILDING), times, URLs and whether it can be redeployed or rolled back. Railway API: query deployment(id).
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | Railway resource id (UUID), from a list tool. |
railway_get_deployment_logs Get deployment logs
Return runtime log lines of one deployment (timestamp, severity, message). Railway API: query deploymentLogs.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | Railway resource id (UUID), from a list tool. |
filter | string | Railway log filter, the same syntax as the dashboard log search. |
limit | integer | Maximum log lines (default 100, max 500). |
railway_get_build_logs Get build logs
Return build log lines of one deployment: use it to find why a build failed. Railway API: query buildLogs.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | Railway resource id (UUID), from a list tool. |
filter | string | Railway log filter, the same syntax as the dashboard log search. |
limit | integer | Maximum log lines (default 100, max 500). |
railway_get_environment_logs Get environment logs
Return the latest log lines across all services of one environment. Railway API: query environmentLogs.
| Parameter | Type | Description |
|---|---|---|
environment_id * | string | Railway resource id (UUID), from a list tool. |
filter | string | Railway log filter, the same syntax as the dashboard log search. |
limit | integer | Maximum log lines (default 100, max 500). |
railway_get_http_logs Get HTTP request logs
Return recent HTTP requests served by one deployment (method, path, status, duration, edge region). Railway API: query httpLogs.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | Railway resource id (UUID), from a list tool. |
filter | string | Railway log filter, the same syntax as the dashboard log search. |
limit | integer | Maximum log lines (default 100, max 500). |
railway_list_domains List domains of a service
List the Railway-generated and custom domains of one service in one environment. Railway API: query domains.
| Parameter | Type | Description |
|---|---|---|
environment_id * | string | Railway resource id (UUID), from a list tool. |
project_id * | string | Railway resource id (UUID), from a list tool. |
service_id * | string | Railway resource id (UUID), from a list tool. |
railway_list_variable_names List variable names
List the names of the variables set for an environment (or one service in it). Values are never returned, only names. Railway API: query variables.
| Parameter | Type | Description |
|---|---|---|
environment_id * | string | Railway resource id (UUID), from a list tool. |
project_id * | string | Railway resource id (UUID), from a list tool. |
service_id | string | Only variables of this service id. |
railway_redeploy_service Redeploy a service
Start a new deployment of one service in one environment, from its latest source. This causes a new build and a short restart. Railway API: mutation serviceInstanceRedeploy.
| Parameter | Type | Description |
|---|---|---|
environment_id * | string | Railway resource id (UUID), from a list tool. |
service_id * | string | Railway resource id (UUID), from a list tool. |
railway_restart_deployment Restart a deployment
Restart the running container of one deployment without a new build. Railway API: mutation deploymentRestart.
| Parameter | Type | Description |
|---|---|---|
deployment_id * | string | Railway resource id (UUID), from a list tool. |