Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Cloud and hosting - official Railway server

Railway MCP server

Hosted MCP server at mcp.railway.com that lets AI agents create projects, deploy templates, manage environments and feature flags, pull variables, and redeploy services on Railway. Clients connect through the Railway CLI (railway mcp) or directly with OAuth. Railway hosts it at https://mcp.railway.com with OAuth auth.

Last verified 11 tools4 sources

Install

Terminal
claude mcp add railway railway mcp
Terminal
codex mcp add railway -- railway mcp
JSON
{
  "mcpServers": {
    "railway": {
      "command": "railway",
      "args": ["mcp"]
    }
  }
}

VS Code

JSON
{
  "servers": {
    "railway": {
      "type": "stdio",
      "command": "railway",
      "args": ["mcp"]
    }
  }
}

Generic

Snippet
railway mcp install

Tools

whoami
Account: show the authenticated Railway user.
list-projects
List Railway projects.
create-project
Create a Railway project.
list-services
List services in a project.
list-feature-flags
List feature flags for a project.
get-feature-flag
Get a feature flag.
set-feature-flag
Set a feature flag (admin).
delete-feature-flag
Delete a feature flag (admin; marked destructive).
redeploy
Redeploy a service.
accept-deploy
Commit staged changes and deploy (destructive; clients prompt for confirmation).
railway-agent
Hand a natural-language request to Railway's AI agent for multi-step operations like log analysis, debugging, and service configuration.

As documented on October 17, 2026. A running server reports its current list through tools/list.

Notes and caveats

  • Connecting through the CLI requires Railway CLI 5.44.0 or later and a railway login session; OAuth clients (Windsurf, Cline, Devin) connect directly to https://mcp.railway.com.
  • Project tokens are not accepted; a user identity is required.
  • The CLI also ships a local in-process server (railway mcp local, railway mcp install --local) with a larger, different tool set (services, domains, variables, volumes, logs, metrics) for egress-restricted networks.
  • The former standalone npm package @railway/mcp-server (repo railwayapp/railway-mcp-server) is deprecated: 'Railway MCP is now bundled into the Railway CLI.' Docs give no explicit beta/GA label.
  • The OAuth per-editor snippets sit behind a docs tab selector that could not be extracted, so only CLI snippets are listed.

FAQ

What does the Railway MCP server do?

Hosted MCP server at mcp.railway.com that lets AI agents create projects, deploy templates, manage environments and feature flags, pull variables, and redeploy services on Railway. Clients connect through the Railway CLI (railway mcp) or directly with OAuth. The vendor documents 11 tools, including whoami, list-projects, create-project and list-services.

How do I add the Railway MCP server to Claude Code?

Run claude mcp add railway railway mcp, copied from Railway's docs. This page also has snippets for Codex, Cursor, VS Code and Generic.

Does the Railway MCP server need authentication?

Yes, OAuth. Transport: Streamable HTTP, stdio. Status: Unlabelled, last checked October 17, 2026.

Sources

Last verified against 4 Railway pages, then re-checked independently.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.