Railway

variable_set

[API] Create or update an environment variable ⚡️ Best for: ✓ Setting configuration values ✓ Updating connection strings ✓ Managing service secrets ⚠️ Not for: × Bulk variable updates (use variable_bulk_set) × Temporary configuration changes → Prerequisites: service_list → Alternatives: variable_bulk_set → Next steps: deployment_trigger, service_restart → Related: variable_list, variable_delete

Remote mh8974/railway-mcp

Remote (network-hosted)

Other tools also called variable_set? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the environment variable"
    },
    "value": {
      "type": "string",
      "description": "Value to set for the variable"
    },
    "projectId": {
      "type": "string",
      "description": "ID of the project containing the service"
    },
    "serviceId": {
      "type": "string",
      "description": "Optional: ID of the service for the variable, if omitted creates/updates a shared variable"
    },
    "environmentId": {
      "type": "string",
      "description": "ID of the environment for the variable (usually obtained from service_list)"
    }
  }
}
          

Provider

Railway →