Skip to main content
Glama
Railway MCP Server

Railway MCP Server

Official
by railwayapp

@railway/mcp-server is deprecated

Railway MCP is now bundled into the Railway CLI.

This npm package no longer contains the standalone TypeScript MCP server. It is a compatibility shim that launches:

railway mcp

Migration

Install or upgrade the Railway CLI:

bash <(curl -fsSL https://railway.com/install.sh)

Then configure supported MCP clients:

railway mcp install

To configure the hosted MCP server instead of the local stdio server:

railway mcp install --remote

You can also configure a local MCP client directly with:

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

Remove old client entries that run:

npx -y @railway/mcp-server

Related MCP server: Railway MCP Server

Compatibility

For existing configs that still invoke @railway/mcp-server, this package delegates to railway mcp.

If the Railway CLI is missing, the package exits with migration instructions.

Docs

See the Railway CLI MCP docs: https://docs.railway.com/cli/mcp

Available Tools

14 tools
check-railway-statusCheck Railway CLI StatusA

Check whether the Railway CLI is installed and if the user is logged in. This tool helps agents verify the Railway CLI setup before attempting to use other Railway tools.

Inputs: no named parameters.

create-environmentCreate EnvironmentB

Create a new Railway environment for the currently linked project. Optionally duplicate an existing environment and set service variables.

Inputs: workspacePath (required), environmentName (required), duplicateEnvironment, serviceVariables.

deployDeploy to RailwayC

Upload and deploy from the current directory. Supports CI mode, environment, and service options.

Inputs: workspacePath (required), ci, environment, service.

deploy-templateDeploy Railway TemplateA

Search and deploy Railway templates. This tool will search for templates using fuzzy search and automatically deploy the selected template to the current Railway project and environment.

Inputs: workspacePath (required), searchQuery (required), templateIndex, teamId.

generate-domainGenerate Railway DomainB

Generate a domain for the currently linked Railway project. If a domain already exists, it will return the existing domain URL. Optionally specify a service to generate the domain for.

Inputs: workspacePath (required), service.

get-logsGet Railway LogsA

Get build or deployment logs for the currently linked Railway project. This will only pull the latest successful deployment by default, so if you need to inspect a failed build, you'll need to supply a deployment ID. You can optionally specify a deployment ID, service, and environment. If no deployment ID is provided, it will get logs from the latest deployment. The 'lines' and 'filter' parameters require Railway CLI v4.9.0+. Use 'lines' to limit the number of log lines (disables streaming) and 'filter' to search logs by terms or attributes (e.g., '@level:error', 'user', '@level:warn AND rate limit'). For older CLI versions, these parameters will be ignored and logs will stream.

Inputs: workspacePath (required), logType (required), deploymentId, service, +4 more.

list-deploymentsList Railway DeploymentsA

List deployments for a Railway service with IDs, statuses and other metadata. Requires Railway CLI v4.10.0+.

Inputs: workspacePath (required), service, environment, limit, +1 more.

list-projectsList Railway ProjectsB

List all Railway projects for the currently logged in account

Inputs: no named parameters.

list-servicesList Railway ServicesC

List all services for the currently linked Railway project

Inputs: workspacePath (required).

list-variablesList Railway VariablesC

Show variables for the active environment

Inputs: workspacePath (required), service, environment, kv, +1 more.

set-variablesSet Railway VariablesC

Set environment variables for the active environment

Inputs: workspacePath (required), variables (required), service, environment, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific Railway resources like projects, environments, services, deployments, and variables, with clear action verbs. However, 'deploy' and 'deploy-template' could be confused as both handle deployment, though their descriptions clarify one is for directory uploads and the other for templates.

    Naming Consistency4/5

    Tool names predominantly follow a consistent verb-noun pattern (e.g., create-environment, list-services, set-variables), with clear and readable conventions. Minor deviations include 'check-railway-status' using a verb-noun-adjective structure and hyphenated names throughout, but overall consistency is high.

    Tool Count5/5

    With 14 tools, the count is well-scoped for managing Railway projects, covering setup, deployment, logging, and resource management. Each tool serves a clear purpose without redundancy, fitting typical server tool ranges and the domain's complexity.

    Completeness5/5

    The tool set provides comprehensive coverage for Railway operations, including project and environment creation, deployment, logging, variable management, and listing resources. There are no obvious gaps; agents can perform full lifecycle management from setup to monitoring.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables management of Railway.app infrastructure through natural language, including deploying services from GitHub repos or Docker images, managing environment variables, monitoring deployments, and configuring networking and volumes.
      36
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables management of Railway.app infrastructure through natural language, allowing users to deploy services, manage environment variables, monitor deployments, and configure projects directly from MCP clients like Claude.
      38
      MIT