MCPHIVE

Railway MCP: Documentation

Updated:

Connection

railway mcp install — connects the MCP server to an already-installed Railway CLI (using the existing CLI session for auth). There's also a remote address, https://mcp.railway.com, for clients that connect directly over Streamable HTTP with OAuth authorization through a Railway account. CLI-mode requirements: the Railway CLI installed and an active login (railway login).

Tools

14 tools across areas:

  • Projects and services — list, create, configure services within a project.
  • Environments — switch between and view environments (production/staging and others).
  • Deployment — trigger a new deploy, check status, roll back.
  • Variables — read, add, update a service's environment variables.
  • Domains — attach custom domains, view the required DNS records.
  • Logs — view a service's logs for a chosen time window.

Agent flow

"What environments does the my-api project have?", "add the domain api.example.com to the backend service", "show the service's logs from the last hour", "roll back the worker service's last deploy".

Pricing

The MCP server is free; Railway resources (compute, traffic) are billed per the platform's usual usage-based plan (there's a free starter allowance).

Railway MCP — Documentation