Railway MCP Server for Claude
Manage Railway projects, services, deployments, and environments from Claude — create projects, deploy templates, pull variables, trigger redeployments, and more — with the official Railway MCP server built into the Railway CLI.
Open the source and read safety notes before installing.
Safety notes
- The Railway CLI MCP server runs as a local stdio process with full access to your authenticated Railway account — it can create, delete, and modify projects and services.
- Use Railway's environment scoping and project permissions to limit blast radius; avoid running the MCP server under an account with access to production environments unless intentional.
- A remote option (`--remote`) routes requests through `mcp.railway.com`; prefer local stdio if you prefer to keep credentials on-device.
Privacy notes
- Railway commands may expose environment variable names and values from your projects into the Claude context; treat these as secrets.
- The Railway CLI authenticates via stored tokens — keep your Railway account credentials secure.
Prerequisites
- Railway CLI installed: `npm i -g @railway/cli` (or `brew install railway` on macOS).
- Logged in to Railway: `railway login`
- An MCP client such as Claude Code or Claude Desktop.
Schema details
- Install type
- cli
- Troubleshooting
- No
- Scope
- Source repo
- Estimated setup
- 10 minutes
- Difficulty
- beginner
- Website
- https://railway.com
Full copyable content
{
"mcpServers": {
"railway": {
"command": "railway",
"args": ["mcp"]
}
}
}About this resource
Overview
The Railway MCP Server is the official Model Context Protocol integration built directly into
the Railway CLI. It lets Claude manage your Railway infrastructure — creating projects, deploying
templates, inspecting services, pulling environment variables, and triggering redeployments —
through natural language. It runs as a local stdio process using your existing railway login
session and is licensed under MIT.
A remote option is also available (railway mcp install --remote) which routes requests through
https://mcp.railway.com instead of your local CLI.
Key capabilities
- Project management — list, create, and inspect Railway projects.
- Service operations — view services, check deployment status, trigger redeployments.
- Environment variables — pull and inspect variables from any project environment.
- Template deployment — deploy Railway templates from natural language.
- Log inspection — retrieve recent service logs for debugging.
- Environment management — list and switch between Railway environments.
How it compares
| Server | Cloud deployments | Env var access | Log retrieval | Transport |
|---|---|---|---|---|
| Railway MCP | Yes (Railway PaaS) | Yes | Yes | stdio (local) or Remote |
| Fly.io MCP | Yes (Fly.io) | Yes | Yes | stdio |
| DigitalOcean MCP | Yes (DO cloud) | Limited | Limited | Remote |
| Vercel MCP | Yes (Vercel) | Yes | Yes | Remote |
| Render MCP | Yes (Render) | Limited | Yes | Remote |
Railway's MCP is unique in bundling the integration into the CLI binary rather than shipping a separate npm package, meaning it always stays in sync with the Railway API.
Installation
Install the Railway CLI
# npm (macOS, Linux, Windows)
npm i -g @railway/cli
# macOS via Homebrew
brew install railway
Log in and configure Claude Code
railway login
railway mcp install --agent claude-code
Claude Desktop
{
"mcpServers": {
"railway": {
"command": "railway",
"args": ["mcp"]
}
}
}
Remote mode (optional)
To connect through Railway's hosted MCP endpoint instead of the local CLI:
railway mcp install --agent claude-code --remote
Requirements
- A Railway account.
- Railway CLI installed via
npm i -g @railway/cliorbrew install railway. - An MCP client (Claude Code or Claude Desktop).
Security
- Runs as a local stdio process — credentials stay on-device in stdio mode.
- Use environment scoping and project-level permissions to limit what Claude can access.
- Remote mode (
--remote) sends requests throughmcp.railway.com.
Source Verification Notes
Verified on 2026-06-18:
- Railway's MCP documentation at
docs.railway.com/cli/mcpconfirms the built-in MCP integration,railway mcp install --agent claude-codesetup command, and both local stdio and remote transport options. - Railway's CLI installation guide at
docs.railway.com/guides/clidocumentsnpm i -g @railway/cliandbrew install railwayas the recommended install methods. - GitHub repo
railwayapp/cli(MIT) is the official open-source Railway CLI codebase containing the MCP integration.
Source citations
Add this badge to your README
How it compares
Railway MCP Server for Claude side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Railway MCP Server for Claude Manage Railway projects, services, deployments, and environments from Claude — create projects, deploy templates, pull variables, trigger redeployments, and more — with the official Railway MCP server built into the Railway CLI. Open dossier | Fly.io MCP Server for Claude Manage Fly.io applications, machines, volumes, secrets, certificates, and organizations from Claude — with the official Fly.io MCP server built into the flyctl CLI. Open dossier | DigitalOcean MCP Server for Claude Connect Claude to DigitalOcean — manage Apps, Droplets, managed Databases, Kubernetes, Container Registry, networking, and Functions — with DigitalOcean's official Model Context Protocol server. Open dossier | Render MCP Server The official Render MCP server lets LLMs manage Render resources: create and manage web services, static sites, cron jobs, Postgres and Key-Value instances, monitor deploys, query logs and metrics, and run read-only SQL against Render Postgres. Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | mcp | mcp | mcp | mcp |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | Railway | Fly.io | DigitalOcean | render-oss |
| Added | 2026-06-18 | 2026-06-18 | 2026-06-17 | 2026-06-11 |
| Platforms | Claude CodeCodexCursorClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop |
| Source repo | — | — | — | — |
| Safety notes | ✓The Railway CLI MCP server runs as a local stdio process with full access to your authenticated Railway account — it can create, delete, and modify projects and services. Use Railway's environment scoping and project permissions to limit blast radius; avoid running the MCP server under an account with access to production environments unless intentional. A remote option (`--remote`) routes requests through `mcp.railway.com`; prefer local stdio if you prefer to keep credentials on-device. | ✓The Fly.io MCP server runs locally with full access to your authenticated Fly.io account — it can create, delete, and modify apps, machines, and secrets. Fly.io warns that running the server remotely can give others access to run commands on your behalf; keep it bound to localhost unless you intend remote access. Destructive operations (machine deletion, secret updates) are available — review Claude's proposed commands before executing in production environments. | ✓Tools can create, update, restart, and delete live infrastructure (Apps, Droplets, Databases) — scope the API token and select only the --services you need. Destructive actions (delete, rollback) act on production resources; confirm before running them through Claude. | ✓Write-capable: tools can create and modify real Render infrastructure — create_web_service, create_static_site, create_cron_job, create_postgres, create_key_value, and update_environment_variables provision or change live resources that may incur billing. update_environment_variables replaces the complete environment variable set for a service; an incomplete array can drop existing variables. Created services run build and start commands you supply; treat generated commands as code execution on Render's platform. The server reaches Render's API over the network; the hosted option (https://mcp.render.com/mcp) sends your requests through Render's hosted MCP endpoint. Review and confirm tool calls before approving them, since an LLM can issue provisioning or env-var changes on your behalf. |
| Privacy notes | ✓Railway commands may expose environment variable names and values from your projects into the Claude context; treat these as secrets. The Railway CLI authenticates via stored tokens — keep your Railway account credentials secure. | ✓App names, machine IDs, secret names (not values unless explicitly requested), and log content may be surfaced into Claude's context. Fly.io API tokens (`FLY_ACCESS_TOKEN`) grant full account access — store them in your environment, not in repositories. | ✓Resource metadata, logs, and metrics enter the MCP client context and the model's prompt. The DIGITALOCEAN_API_TOKEN is a secret — store it in the client config or environment, never in shared repositories. | ✓Authentication uses a RENDER_API_KEY scoped to your Render workspace(s); anyone with the key can manage those resources. Keep it in a server-scoped header or server-scoped env block, not a top-level/global env block shared with other MCP servers. query_render_postgres runs SQL against your Render Postgres and returns row data to the LLM — query results may include sensitive application data. Logs and metrics tools (list_logs, list_log_label_values, get_metrics) surface application log contents and performance data to the model. update_environment_variables and service details can expose configuration values; avoid sending secrets you don't want the model to see. When using the hosted server, requests transit Render's hosted MCP infrastructure rather than staying entirely local. |
| Prerequisites |
|
|
|
|
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.