|Docs

railway mcp

Start a local Railway MCP server, or install the Railway MCP configuration into supported AI coding tools.

Usage

Running railway mcp with no subcommand starts the local stdio MCP server. This is the command used by local MCP client configurations.

Subcommands

SubcommandDescription
installInstall Railway's MCP server config into AI coding tools

Options for

FlagDescription
--agent <AGENT>Target a specific tool instead of all detected tools. Can be used more than once
--remoteConfigure the remote MCP server at https://mcp.railway.com instead of the local stdio server

Supported agents

AgentValue
Claude Codeclaude-code
Cursorcursor
Factory Droidfactory-droid
GitHub Copilotcopilot
OpenAI Codexcodex
OpenCodeopencode

When installing with --remote, the Railway CLI configures supported tools with Railway's hosted MCP server at https://mcp.railway.com.

Installed MCP entries

AgentLocal stdio configRemote config
Claude Codecommand: "railway", args: ["mcp"]type: "http", url: "https://mcp.railway.com"
Cursorcommand: "railway", args: ["mcp"]url: "https://mcp.railway.com"
Factory Droidtype: "stdio", command: "railway", args: ["mcp"], disabled: falsetype: "http", url: "https://mcp.railway.com", disabled: false
GitHub Copilottype: "local", command: "railway", args: ["mcp"], tools: ["*"]type: "http", url: "https://mcp.railway.com", tools: ["*"]
OpenCodetype: "local", command: ["railway", "mcp"], enabled: truetype: "remote", url: "https://mcp.railway.com", enabled: true
OpenAI Codexcommand = "railway", args = ["mcp"]url = "https://mcp.railway.com"

railway mcp install merges the Railway server entry into existing configs without removing other MCP servers.

Examples

Install MCP for detected tools

Install MCP for a specific tool

Install MCP for multiple tools

Install the remote MCP server configuration

Local server

MCP clients that use a local stdio server should run:

The railway mcp install command writes this configuration for supported tools automatically.