Let Claude and other MCP clients manage your Railway.app infrastructure. Deploy services, manage variables, and monitor deployments - all through natural language.
Please Note: This is under development and not all features are available yet. 🚧 |
---|
A Model Context Protocol (MCP) server for integrating with the Railway.app platform.
Features • Installation • Available Tools • Example Workflows • Security • Troubleshooting • Contributing
Status | Meaning |
---|---|
✅ | Complete |
🚧🔨⏳ | Being Built or Needs Testing |
❌ | Not Built at the moment |
This MCP server is designed to work with MCP Clients like:
To install railway-mcp automatically, we recommend using Smithery
Claude Desktop
npx -y @smithery/cli install @jason-tan-swe/railway-mcp --client claude
Cursor
npx -y @smithery/cli@latest run @jason-tan-swe/railway-mcp --config "{\"railwayApiToken\":\"token\"}"
Head to your cursor settings and find the MCP section
Click 'Add new MCP server'
Name it however, you like, we recommend railway-mcp
for better clarity
Paste this command into the 'Command' section, where <RAILWAY_API_TOKEN> is your accounts Railway token:
npx -y @jasontanswe/railway-mcp <RAILWAY_API_TOKEN>
Create or edit your Claude for Desktop config file:
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the railway-mcp server to your configuration with your API token:
"railway": {
"command": "npx",
"args": ["-y", "@jasontanswe/railway-mcp"],
"env": {
"RAILWAY_API_TOKEN": "your-railway-api-token-here"
}
}
When you have multiple MCP servers, your config file might look like this:
{
"mcpServers": {
// ... All of your existing MCP servers ...
// Add the railway-mcp server to your configuration with your API token
"railway": {
"command": "npx",
"args": ["-y", "@jasontanswe/railway-mcp"],
"env": {
"RAILWAY_API_TOKEN": "your-railway-api-token-here"
}
}
}
}
Restart Claude for Desktop
You can now start using Railway tools directly in Claude. For example:
Please list all my Railway projects
Please configure the Railway API with my token: {YOUR_API_TOKEN_HERE}
This server best combines with MCP-clients that have access to terminal or with Git (Cursor, Windsurf). Using this MCP with others is recommended as railway-mcp orchestrates containers and streamlines your deployment process seamlessly.
Have you pushed our changes to GitHub yet?
If you encounter issues:
Token Authentication Issues
configure
tool directly in Claude if the environment token isn't workingServer Connection Issues
API Errors
We welcome contributions from the community! Please see our Contributing Guidelines for details on how to get started, development guidelines, and debugging information.
configure
- Set your Railway API token (only needed if not provided in environment variables)project-list
- List all projects in your accountproject-info
- Get detailed information about a specific projectproject-create
- Create a new project with optional team IDproject-delete
- Delete a projectproject-environments
- List all environments in a projectservice-list
- List all services in a specific projectservice-info
- Get detailed information about a specific serviceservice-create-from-repo
- Create a new service from a GitHub repositoryservice-create-from-image
- Create a new service from a Docker imageservice-delete
- Delete a service from a projectservice-restart
- Restart a service in a specific environmentservice-update
- Update service configuration (build command, start command, etc.) | 🚧 Needs Testingdeployment-list
- List recent deployments for a servicedeployment-trigger
- Trigger a new deployment for a servicedeployment-logs
- Get logs for a specific deploymentdeployment-health-check
- Check the health/status of a deploymentvariable-list
- List variables for a service or environmentvariable-set
- Create or update a variablevariable-delete
- Delete a variablevariable-bulk-set
- Bulk update variables for a service | 🚧 Needs Testingvariable-copy
- Copy variables between environments | 🚧 Needs Testingdatabase-list-types
- List all available database types that can be deployeddatabase-deploy
- Deploy a new database serviceSeamless access to top MCP servers powering the future of AI integration.