railway-mcp
Provides tools to manage Railway projects, services, deployments, variables, environments, and domains.
Click on "Install 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-mcplist my Railway projects"
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
An MCP server that exposes the Railway API as tools for Claude. Manage your Railway projects, services, deployments, variables, environments, and domains directly from Claude.
Tools
Tool | Description |
| Get current authenticated user details |
| List all Railway projects |
| Get project details with services and environments |
| Create a new Railway project |
| Update project name or description |
| Permanently delete a project |
| List all environments in a project |
| Get environment details |
| Create a new environment (optionally clone from existing) |
| Rename an environment |
| Delete an environment and all its deployments |
| Get service details |
| Get environment-specific service config |
| Create a service from GitHub, Docker image, or empty |
| Update service name or icon |
| Permanently delete a service |
| Trigger a new deployment |
| List deployments for a service |
| Get deployment details |
| Redeploy an existing deployment |
| Restart a deployment without rebuilding |
| Roll back to a previous deployment |
| Stop a running deployment |
| Cancel a building/queued deployment |
| Fetch build logs for a deployment |
| Fetch runtime logs for a deployment |
| Get environment variables for a service |
| Set or update a single variable |
| Set or update multiple variables at once |
| Delete a variable |
| List all domains for a service |
| Generate a Railway-provided domain |
| Delete a Railway-provided domain |
| Add a custom domain |
| Remove a custom domain |
Related MCP server: Railway MCP Server
Environment Variables
Variable | Required | Description |
| Yes | Railway API token — generate at https://railway.com/account/tokens |
| No |
|
| No | Port to listen on (default |
Deploy to Railway
Fork or push this repo to GitHub
Go to Railway → New Project → Deploy from GitHub repo
Select this repository
In Variables, add
RAILWAY_TOKENwith your Railway API tokenRailway will build and deploy automatically
Go to Settings → Networking → Generate Domain to get your public URL
Connect to Claude
Remote (Railway deployment)
Add to claude.ai MCP settings:
{
"mcpServers": {
"railway": {
"url": "https://your-app.up.railway.app/sse"
}
}
}Local (Claude Desktop / stdio)
{
"mcpServers": {
"railway": {
"command": "node",
"args": ["/path/to/railway-mcp/dist/index.js"],
"env": {
"TRANSPORT": "stdio",
"RAILWAY_TOKEN": "your_railway_token"
}
}
}
}Local Development
cp .env.example .env
# Edit .env with your RAILWAY_TOKEN
npm install
npm run build
node dist/index.jsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gaaldaco/railway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server