Railway MCP Server
OfficialThe Railway MCP Server is an experimental local server that provides opinionated workflows and tools for efficiently managing Railway resources. Key capabilities include:
CLI Integration: Verify Railway CLI installation and user login status
Project Management: Create, list, and link projects to your current directory
Service Management: List, link, and deploy services from your directory or Railway Template Library using fuzzy search
Environment Management: Create, link, and manage environments with options to duplicate existing environments and configure service variables
Configuration & Variables: List, set, and manage environment variables, plus generate
railway.appdomains for projects or servicesMonitoring & Logs: Retrieve build or deployment logs with options to specify deployment ID, service, and environment
IDE Integration: Supports setup and usage with Cursor and VSCode
Provides comprehensive tools for managing Railway infrastructure including project and service management, deployments from templates, environment configuration, domain generation, and monitoring through build/deployment logs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Railway MCP Server deploy a Postgres database for my new project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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 mcpMigration
Install or upgrade the Railway CLI:
bash <(curl -fsSL https://railway.com/install.sh)Then configure supported MCP clients:
railway mcp installTo configure the hosted MCP server instead of the local stdio server:
railway mcp install --remoteYou 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-serverRelated 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 toolscheck-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.
create-project-and-linkCreate Railway ProjectC
Create a new Railway project and link it to the current directory
Inputs: projectName (required), workspacePath (required).
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.
link-environmentLink EnvironmentB
Link to a specific Railway environment. If no environment is specified, it will list available environments for selection.
Inputs: workspacePath (required), environmentName (required).
link-serviceLink Railway ServiceB
Link a service to the current Railway project. If no service is specified, it will list available services
Inputs: workspacePath (required), serviceName.
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
Scored across 14 tools
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.
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.
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.
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
Related MCP Connectors
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Deploy and run your apps by asking your AI: services, Postgres, logs, traces, rollbacks, costs.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Deploy local apps, add managed Postgres, and inspect logs from your AI coding agent.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.36MIT
- AlicenseAqualityDmaintenanceEnables management of Railway.app infrastructure through natural language, including deploying services, managing environment variables, monitoring deployments, and controlling project resources.36MIT
- AlicenseAqualityDmaintenanceEnables management of Railway.app infrastructure through natural language, including deploying services, managing environment variables, monitoring deployments, and handling databases and volumes.36MIT
- AlicenseAqualityDmaintenanceEnables 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.38MIT