Railway Integration
Manage Railway workspaces, projects, services, deployments, variables, domains, and volumes
The Railway integration provides access to manage Railway workspaces, projects, services, deployments, variables, domains, and volumes through the Integrate MCP server.
Installation
The Railway integration is included with the SDK:
import { railwayIntegration } from "integrate-sdk/server";Setup
1. Create a Railway OAuth App
- Go to Backboard Developer Portal
- Create a new OAuth application
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the Railway integration to your server configuration. The integration automatically reads RAILWAY_CLIENT_ID and RAILWAY_CLIENT_SECRET from your environment variables:
import { createMCPServer, railwayIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
railwayIntegration({
scopes: ["openid", "profile", "email", "workspace:admin", "project:member"], // Optional
}),
],
});You can override the environment variables by passing explicit values:
railwayIntegration({
clientId: process.env.CUSTOM_RAILWAY_ID,
clientSecret: process.env.CUSTOM_RAILWAY_SECRET,
scopes: ["openid", "profile", "email", "workspace:admin", "project:member"], // Optional
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("railway");
const result = await client.railway.getCurrentUser({});
console.log(result);If you're using a custom client, add the integration to the integrations array:
import { createMCPClient, railwayIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [railwayIntegration()],
});Configuration Options
Prop
Type
Default Scopes
These defaults are applied unless you override scopes in the integration config:
openidprofileemailworkspace:adminproject:member
Tools
railway_get_current_user
Get current user
No parameters.
railway_get_workspace
Get workspace
Prop
Type
railway_list_regions
List regions
No parameters.
railway_list_projects
List projects
Prop
Type
railway_get_project
Get project
Prop
Type
railway_create_project
Create project
Prop
Type
railway_update_project
Update project
Prop
Type
railway_delete_project
Delete project
Prop
Type
railway_transfer_project
Transfer project
Prop
Type
railway_list_project_members
List project members
Prop
Type
railway_list_environments
List environments
Prop
Type
railway_get_environment
Get environment
Prop
Type
railway_create_environment
Create environment
Prop
Type
railway_rename_environment
Rename environment
Prop
Type
railway_delete_environment
Delete environment
Prop
Type
railway_get_environment_logs
Get environment logs
Prop
Type
railway_get_environment_staged_changes
Get environment staged changes
Prop
Type
railway_commit_environment_staged_changes
Commit environment staged changes
Prop
Type
railway_get_service
Get service
Prop
Type
railway_get_service_instance
Get service instance
Prop
Type
railway_create_service
Create service
Prop
Type
railway_update_service
Update service
Prop
Type
railway_update_service_instance
Update service instance
Prop
Type
railway_connect_service
Connect service
Prop
Type
railway_disconnect_service
Disconnect service
Prop
Type
railway_deploy_service
Deploy service
Prop
Type
railway_redeploy_service
Redeploy service
Prop
Type
railway_get_service_limits
Get service limits
Prop
Type
railway_delete_service
Delete service
Prop
Type
railway_list_deployments
List deployments
Prop
Type
railway_get_deployment
Get deployment
Prop
Type
railway_get_latest_active_deployment
Get latest active deployment
Prop
Type
railway_get_deployment_build_logs
Get deployment build logs
Prop
Type
railway_get_deployment_runtime_logs
Get deployment runtime logs
Prop
Type
railway_get_deployment_http_logs
Get deployment http logs
Prop
Type
railway_redeploy_deployment
Redeploy deployment
Prop
Type
railway_restart_deployment
Restart deployment
Prop
Type
railway_rollback_deployment
Rollback deployment
Prop
Type
railway_stop_deployment
Stop deployment
Prop
Type
railway_cancel_deployment
Cancel deployment
Prop
Type
railway_remove_deployment
Remove deployment
Prop
Type
railway_get_variables
Get variables
Prop
Type
railway_get_unrendered_variables
Get unrendered variables
Prop
Type
railway_upsert_variable
Upsert variable
Prop
Type
railway_upsert_variables
Upsert variables
Prop
Type
railway_delete_variable
Delete variable
Prop
Type
railway_get_rendered_variables
Get rendered variables
Prop
Type
railway_list_domains
List domains
Prop
Type
railway_create_service_domain
Create service domain
Prop
Type
railway_delete_service_domain
Delete service domain
Prop
Type
railway_check_custom_domain_availability
Check custom domain availability
Prop
Type
railway_create_custom_domain
Create custom domain
Prop
Type
railway_get_custom_domain_status
Get custom domain status
Prop
Type
railway_update_custom_domain
Update custom domain
Prop
Type
railway_delete_custom_domain
Delete custom domain
Prop
Type
railway_list_project_volumes
List project volumes
Prop
Type
railway_get_volume_instance
Get volume instance
Prop
Type
railway_create_volume
Create volume
Prop
Type
railway_update_volume
Update volume
Prop
Type
railway_update_volume_instance
Update volume instance
Prop
Type
railway_delete_volume
Delete volume
Prop
Type
railway_list_volume_backups
List volume backups
Prop
Type
railway_create_volume_backup
Create volume backup
Prop
Type
railway_restore_volume_backup
Restore volume backup
Prop
Type
railway_lock_volume_backup
Lock volume backup
Prop
Type
railway_delete_volume_backup
Delete volume backup
Prop
Type
railway_list_volume_backup_schedules
List volume backup schedules
Prop
Type
railway_list_tcp_proxies
List tcp proxies
Prop
Type
Notes
- Category: Infrastructure
- Authentication mode: OAuth