← Explore all mcp servers

PLATFORM AS A SERVICE / Railway

Railway MCP Server

Railway's MCP server runs on Railway's infrastructure at mcp.railway.com, and the Rust CLI bridges it to stdio clients, attaching credentials from the existing railway login session so no long-lived token is written into client config. An in-process local server covers egress-restricted networks.

“The Railway MCP server runs on Railway's infrastructure. The `railway mcp` command connects to it over stdio and attaches credentials from your `railway login` session to each request.”

01 / THE REASONING

Why this made the selection.

  • Brief-named Railway gap: the official MCP surface moved out of the archived standalone repository into the Railway CLI and a hosted endpoint at mcp.railway.com, and both paths are documented at the publisher.
  • The CLI proxy design reuses the interactive railway login session per request instead of persisting a long-lived credential in the MCP client config, which is a materially better secret-handling posture than token-in-config servers.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • Railway MCP documentation: the server runs on Railway's infrastructure; `railway mcp` connects over stdio attaching credentials from the CLI login session; OAuth clients connect directly; CLI 5.44.0 or later required.
  • Railway CLI repository at pinned revision ee092504af390c578d42a0c1b5f4b226c469f0be: src/commands/mcp/mod.rs defines `mcp`, `mcp local` and `mcp proxy`; proxy.rs documents the stdio-to-streamable-HTTP bridge to mcp.railway.com with a fresh Bearer token from the stored login on every request; install.rs pins REMOTE_MCP_URL to https://mcp.railway.com; LICENSE is MIT (Copyright 2023 Railway Corp.).
  • Archived railwayapp/railway-mcp-server README: the npm package is deprecated and now a shim that launches `railway mcp`; migration instructions point to the CLI install script and `railway mcp install`.

Our findings

  • The remote surface at mcp.railway.com is the one that receives new tools; the in-process local server exists for egress-restricted networks, marks destructive tools with protocol-level hints and returns a preview before requiring confirm: true.
  • The proxy deliberately never writes a long-lived credential into the harness config; auth freshness is delegated to the CLI's token refresh, serialised across concurrent CLI processes via the config lockfile.

Not established by this review

  • No Railway account was connected and no deployment or service operation was executed.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Connect a server deliberately.

Upstream setup instructions ↗

DOCUMENTED COMMAND

railway mcp install

Copying does not execute this command. It may retrieve a newer version than the reviewed source.

  1. Install or upgrade the Railway CLI to 5.44.0 or later and run `railway login`.
  2. Run `railway mcp install` to write the MCP configuration for detected tools; add `--oauth` to connect an editor directly to mcp.railway.com, or `--local` for the in-process server.
  3. Ask the agent to list your Railway projects to verify the connection.

Before you start

  • A Railway account.
  • For the default CLI path, the Railway CLI installed and an active login session.

Documented configuration example

Use the client and authentication context described in the setup guidance. Configuration formats vary between hosts.

{
  "mcpServers": {
    "railway": {
      "command": "railway",
      "args": [
        "mcp"
      ]
    }
  }
}

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. https://docs.railway.com/ai/mcp-server

    Supports: summary, upstreamDescription, bestFor, access, limitations, install

  2. https://docs.railway.com/cli/mcp

    Supports: configExample, compatibility, install

  3. https://github.com/railwayapp/cli/blob/ee092504af390c578d42a0c1b5f4b226c469f0be/src/commands/mcp/mod.rs

    Supports: repository, revision, transports, whySelected, language

  4. https://github.com/railwayapp/railway-mcp-server

    Supports: limitations

Evidence & Ask