Skip to main content
Glama

Railway MCP Server

Official
by railwayapp

create-environment

Set up a new Railway environment for your project with ease. Optionally duplicate an existing environment and configure service variables as needed.

Instructions

Create a new Railway environment for the currently linked project. Optionally duplicate an existing environment and set service variables.

Input Schema

NameRequiredDescriptionDefault
duplicateEnvironmentNoThe name of an existing environment to duplicate
environmentNameYesThe name for the new environment
serviceVariablesNoService variables to assign in the new environment (only works when duplicating)
workspacePathYesThe path to the workspace where the environment should be created

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "duplicateEnvironment": { "description": "The name of an existing environment to duplicate", "type": "string" }, "environmentName": { "description": "The name for the new environment", "type": "string" }, "serviceVariables": { "description": "Service variables to assign in the new environment (only works when duplicating)", "items": { "additionalProperties": false, "properties": { "service": { "description": "The service name or UUID", "type": "string" }, "variable": { "description": "The variable assignment (e.g., 'BACKEND_PORT=3000')", "type": "string" } }, "required": [ "service", "variable" ], "type": "object" }, "type": "array" }, "workspacePath": { "description": "The path to the workspace where the environment should be created", "type": "string" } }, "required": [ "workspacePath", "environmentName" ], "type": "object" }

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/railwayapp/railway-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server