Skip to main content
Glama

Railway MCP Server

Official
by railwayapp

get-logs

Retrieve build or deployment logs for Railway projects by specifying deployment ID, service, and environment. Defaults to the latest deployment if no ID is provided.

Instructions

Get build or deployment logs for the currently linked Railway project. You can optionally specify a deployment ID, service, and environment. If no deployment ID is provided, it will get logs from the latest deployment.

Input Schema

NameRequiredDescriptionDefault
deploymentIdNoDeployment ID to pull logs from. Omit to pull from latest deployment
environmentNoEnvironment to view logs from (defaults to linked environment)
logTypeYesType of logs to retrieve: 'build' for build logs or 'deploy' for deployment logs
serviceNoService to view logs from (defaults to linked service)
workspacePathYesThe path to the workspace to get logs from

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "deploymentId": { "description": "Deployment ID to pull logs from. Omit to pull from latest deployment", "type": "string" }, "environment": { "description": "Environment to view logs from (defaults to linked environment)", "type": "string" }, "logType": { "description": "Type of logs to retrieve: 'build' for build logs or 'deploy' for deployment logs", "enum": [ "build", "deploy" ], "type": "string" }, "service": { "description": "Service to view logs from (defaults to linked service)", "type": "string" }, "workspacePath": { "description": "The path to the workspace to get logs from", "type": "string" } }, "required": [ "workspacePath", "logType" ], "type": "object" }

Other Tools from Railway MCP Server

Related Tools

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