Railway

v1.0.0Cloud Servicesstable

Let Claude and Cursor manage your Railway infrastructure through natural language. Deploy, configure, and monitor - autonomously and safely.

claudecursormodel-context-protocolrailwayrailway-app
Share:
72
Stars
0
Downloads
0
Weekly
0/5

What is Railway?

Railway is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to let claude and cursor manage your railway infrastructure through natural language. deploy, configure, and monitor - autonomously and safely.

Let Claude and Cursor manage your Railway infrastructure through natural language. Deploy, configure, and monitor - autonomously and safely.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Let Claude and Cursor manage your Railway infrastructure thr

Use Cases

Manage Railway infrastructure via natural language
Deploy, configure, and monitor infrastructure autonomously
jason-tan-swe

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedApr 30, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y railway

Manual Installation

npx -y railway

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Railway

railway-mcp is a Model Context Protocol server that exposes Railway's infrastructure management API to AI assistants like Claude and Cursor, enabling natural-language control over your Railway projects, services, deployments, and databases. Through the server, you can list and create projects, deploy services from GitHub repositories or Docker images, manage environment variables, trigger and monitor deployments, view logs, and provision database services — all without leaving your chat or IDE interface. It is designed for developers who want to manage cloud infrastructure conversationally rather than through the Railway dashboard.

Prerequisites

  • Node.js 18 or later
  • A Railway account with an API token (obtainable at https://railway.app/account/tokens)
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
  • Existing Railway projects or permission to create new ones
1

Get your Railway API token

Log in to Railway and navigate to https://railway.app/account/tokens to generate a new API token. Copy the token — you will need it in the MCP client configuration.

2

Install via Smithery for Claude Desktop

The quickest way to install railway-mcp for Claude Desktop is via the Smithery CLI, which handles configuration automatically.

npx -y @smithery/cli install @jason-tan-swe/railway-mcp --client claude
3

Or configure manually in Claude Desktop

Add the railway server block to ~/Library/Application Support/Claude/claude_desktop_config.json, replacing the placeholder with your actual Railway API token.

{
  "mcpServers": {
    "railway": {
      "command": "npx",
      "args": ["-y", "@jasontanswe/railway-mcp"],
      "env": {
        "RAILWAY_API_TOKEN": "your-railway-api-token-here"
      }
    }
  }
}
4

Configure for Cursor or Windsurf

For Cursor, use the Smithery run command with your token passed as a config parameter.

npx -y @smithery/cli@latest run @jason-tan-swe/railway-mcp --config "{\"railwayApiToken\":\"your-railway-api-token\"}"
5

Restart your MCP client and verify

Restart Claude Desktop (or reload your IDE). Ask the assistant to list your Railway projects to confirm the connection is working.

Railway Examples

Client configuration

Manual Claude Desktop configuration for railway-mcp with the required RAILWAY_API_TOKEN environment variable.

{
  "mcpServers": {
    "railway": {
      "command": "npx",
      "args": ["-y", "@jasontanswe/railway-mcp"],
      "env": {
        "RAILWAY_API_TOKEN": "your-railway-api-token-here"
      }
    }
  }
}

Prompts to try

Natural-language commands you can give Claude once railway-mcp is connected.

- "List all my Railway projects and their current status"
- "Deploy the GitHub repo github.com/myorg/api as a new Railway service in the production environment"
- "Set the DATABASE_URL environment variable for the api service in my production project"
- "Show me the deployment logs for the last deploy of the frontend service"
- "Provision a PostgreSQL database in my staging environment"
- "What services are running in my production project and when were they last deployed?"

Troubleshooting Railway

Authentication errors: 'Invalid API token' or 401 responses

Verify that RAILWAY_API_TOKEN is set to a valid, non-expired token from https://railway.app/account/tokens. Tokens can be revoked from the same page if compromised.

npx cannot find the @jasontanswe/railway-mcp package

Clear the npx cache with npx clear-npx-cache and retry, or install the package globally first with npm install -g @jasontanswe/railway-mcp and change the command to railway-mcp in the config.

Deployment triggered but service stays in 'building' indefinitely

Ask Claude to 'show deployment logs for the stuck service' — the logs usually reveal build errors. Check that your GitHub repository is connected to Railway and that the correct branch is set as the deployment source.

Frequently Asked Questions about Railway

What is Railway?

Railway is a Model Context Protocol (MCP) server that let claude and cursor manage your railway infrastructure through natural language. deploy, configure, and monitor - autonomously and safely. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Railway?

Install via npm with the command: npx -y railway. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Railway?

Railway works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Railway free to use?

Yes, Railway is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "railway": { "command": "npx", "args": ["-y", "railway"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Railway?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides