Railway MCP Server
Published
At a glance
- Category
- Cloud & DevOps
- GitHub repository
- railwayapp/cli/tree/master/src/commands/mcp
- Watch out for
- Requires the Railway CLI to be installed and logged in.
Railway's MCP server now ships inside the Railway CLI rather than as a separate package. The original railwayapp/railway-mcp-server repo is archived, and the @railway/mcp-server npm package is only a compatibility shim that launches railway mcp. The server code lives in the railwayapp/cli repository under src/commands/mcp, written in Rust alongside the rest of the CLI.
There are two ways it runs. A bare railway mcp bridges over stdio to Railway's hosted server at mcp.railway.com, using your CLI login; the source notes that the remote side is where new tools land first. railway mcp local keeps an in-process server for setups that cannot reach mcp.railway.com. In both cases the CLI fills in the project you linked with railway link when a call does not name its own scope, so an agent working in a repo talks to the right project without extra arguments.
The tool set is broad. It covers projects, environments and services, variables, logs, domains and TLS, scaling across regions, volumes, buckets, TCP proxies, private networking, templates and Railway's own docs. Several destructive tools, such as removing a service, volume or domain, return a preview first rather than acting straight away.
How it connects
Your AI app
An assistant or agent that supports MCP
Railway MCP Server
Runs as
- Remote (HTTP)
Gives the agent
- Projects and services
- Deploying
- Variables and config
- Logs and metrics
- Domains and networking
- Storage and scaling
- Docs
Railway
The data or system the tools act on
What it can do
- Projects and services
- list_projects, list_workspaces, list_services, create_project, create_environment, create_service, update_service, remove_service and environment_status manage the basic structure.
- Deploying
- deploy uploads a directory as a tarball and starts a deployment; deploy_template and search_templates add things like Postgres or Redis; list_deployments shows recent builds.
- Variables and config
- list_variables, set_variables, add_reference_variable and get_service_config read and change service settings. Sealed variables are listed by name only.
- Logs and metrics
- get_logs returns build, deploy or HTTP logs; service_metrics, http_requests, http_error_rate and http_response_time summarise health.
- Domains and networking
- generate_domain, list_domains, domain_status, update_domain and retry_domain_certificate handle domains; create_tcp_proxy, private_network_status and private_network_update cover networking.
- Storage and scaling
- create_volume, update_volume, create_bucket and scale_service manage persistent storage and replicas across regions.
- Docs
- docs_search and docs_fetch look up and read pages from Railway's documentation.
Setting it up
Install or upgrade the Railway CLI with the install script from railway.com, then sign in with railway login. Running railway setup agent -y installs Railway's agent skills and configures the remote MCP server for coding tools it detects, including Claude Code, Cursor, Codex and GitHub Copilot. If you only want the MCP part, railway mcp install --agent cursor configures one client. For a manual configuration, add a server whose command is railway with the argument mcp. Add --local to the install commands if you want the in-process server instead of the hosted one.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Reading deploy logs after a failed build
- Adding a Postgres template and wiring its URL into a service
- Checking HTTP error rates after a release
- Attaching a custom domain and checking certificate status
Limitations and things to watch
- Requires the Railway CLI to be installed and logged in.
- The old standalone repo is archived; older guides that use it are out of date.
- Newer tools appear on the hosted server first, so local mode may lag.
- Agents can change live infrastructure, so review destructive previews before confirming.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /railwayapp/cli
- github.com /railwayapp/cli/tree/master/src/commands/mcp
- github.com /railwayapp/railway-mcp-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.