Railway MCP by usefulapi

v1.1.0
io.usefulapi/railway Checked 8 hours ago Published 2 days ago

Read 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).

ParameterTypeDescription
workspace_id *stringRailway 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.

ParameterTypeDescription
afterstringCursor from pageInfo.endCursor, for the next page.
firstintegerItems per page (default 20, max 100).
workspace_idstringOnly 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).

ParameterTypeDescription
project_id *stringRailway 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).

ParameterTypeDescription
project_id *stringRailway resource id (UUID), from a list tool.
afterstringCursor from pageInfo.endCursor, for the next page.
firstintegerItems 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).

ParameterTypeDescription
service_id *stringRailway 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).

ParameterTypeDescription
environment_id *stringRailway resource id (UUID), from a list tool.
service_id *stringRailway 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).

ParameterTypeDescription
project_id *stringRailway resource id (UUID), from a list tool.
afterstringCursor from pageInfo.endCursor, for the next page.
environment_idstringOnly this environment id.
firstintegerItems per page (default 20, max 100).
service_idstringOnly 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).

ParameterTypeDescription
deployment_id *stringRailway 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.

ParameterTypeDescription
deployment_id *stringRailway resource id (UUID), from a list tool.
filterstringRailway log filter, the same syntax as the dashboard log search.
limitintegerMaximum 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.

ParameterTypeDescription
deployment_id *stringRailway resource id (UUID), from a list tool.
filterstringRailway log filter, the same syntax as the dashboard log search.
limitintegerMaximum 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.

ParameterTypeDescription
environment_id *stringRailway resource id (UUID), from a list tool.
filterstringRailway log filter, the same syntax as the dashboard log search.
limitintegerMaximum 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.

ParameterTypeDescription
deployment_id *stringRailway resource id (UUID), from a list tool.
filterstringRailway log filter, the same syntax as the dashboard log search.
limitintegerMaximum 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.

ParameterTypeDescription
environment_id *stringRailway resource id (UUID), from a list tool.
project_id *stringRailway resource id (UUID), from a list tool.
service_id *stringRailway 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.

ParameterTypeDescription
environment_id *stringRailway resource id (UUID), from a list tool.
project_id *stringRailway resource id (UUID), from a list tool.
service_idstringOnly 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.

ParameterTypeDescription
environment_id *stringRailway resource id (UUID), from a list tool.
service_id *stringRailway 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.

ParameterTypeDescription
deployment_id *stringRailway resource id (UUID), from a list tool.