Railway MCP Server v2
Railway MCP Server using the official @modelcontextprotocol/sdk with full support for:
- Streamable HTTP transport (modern, recommended)
- SSE transport (legacy compatibility)
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/mcp | POST | Streamable HTTP transport |
/mcp | DELETE | Session cleanup |
/sse | GET | SSE transport (legacy) |
/messages | POST | SSE messages endpoint |
/health | GET | Health check |
Tools (17 total)
list_projects- List all Railway projectsget_project- Get project detailslist_services- List services in a projectlist_deployments- List deployments for a serviceget_deployment_logs- Get deployment logslist_variables- List environment variableslist_environments- List environments in a projectcreate_project- Create a new Railway projectcreate_service- Create a new servicedeploy_from_github- Deploy from GitHub repocreate_domain- Generate a domain for a serviceset_variable- Set an environment variableset_variables_bulk- Set multiple variables at oncerestart_service- Restart a servicedelete_project- Delete a projectdelete_service- Delete a servicedelete_variable- Delete an environment variable
Environment Variables
RAILWAY_API_TOKEN- Your Railway API token (required)PORT- Server port (default: 3000)
Deploy to Railway
- Create a new project in Railway
- Connect this GitHub repo
- Add environment variable:
RAILWAY_API_TOKEN - Deploy!
Connect to Claude.ai
Use one of these URLs in Claude.ai Connectors:
- Streamable HTTP:
https://your-domain.railway.app/mcp - SSE (legacy):
https://your-domain.railway.app/sse