get_stationboard

Pack: swisstransport · Endpoint: https://gateway.pipeworx.io/swisstransport/mcp

Get the live departure board for a Swiss public transport station.

Parameters

NameTypeRequiredDescription
stationstringyesStation name or ID to get the departure board for.
limitnumbernoMaximum number of departures to return. Defaults to 10.

Example call

Arguments

{
  "station": "Zurich HB"
}

curl

curl -X POST https://gateway.pipeworx.io/swisstransport/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_stationboard","arguments":{"station":"Zurich HB"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_stationboard', {
  "station": "Zurich HB"
});

More examples

{
  "station": "Basel SBB",
  "limit": 15
}

Response shape

Always returns: station, count, departures

FieldTypeDescription
stationobjectStation information
countnumberNumber of departures returned
departuresarrayList of departing journeys
Full JSON Schema
{
  "type": "object",
  "properties": {
    "station": {
      "type": "object",
      "description": "Station information",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Station identifier"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Station name"
        },
        "coordinate": {
          "type": [
            "object",
            "null"
          ],
          "description": "Geographic coordinates",
          "properties": {
            "x": {
              "type": [
                "number",
                "null"
              ],
              "description": "X coordinate (longitude)"
            },
            "y": {
              "type": [
                "number",
                "null"
              ],
              "description": "Y coordinate (latitude)"
            }
          }
        }
      }
    },
    "count": {
      "type": "number",
      "description": "Number of departures returned"
    },
    "departures": {
      "type": "array",
      "description": "List of departing journeys",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Journey name"
          },
          "category": {
            "type": "string",
            "description": "Transport category"
          },
          "number": {
            "type": "string",
            "description": "Vehicle number"
          },
          "operator": {
            "type": "string",
            "description": "Transport operator"
          },
          "to": {
            "type": "string",
            "description": "Journey destination"
          },
          "departure": {
            "type": [
              "string",
              "null"
            ],
            "description": "Departure time"
          },
          "delay": {
            "type": [
              "number",
              "null"
            ],
            "description": "Delay in minutes"
          },
          "platform": {
            "type": [
              "string",
              "null"
            ],
            "description": "Platform number"
          }
        }
      }
    }
  },
  "required": [
    "station",
    "count",
    "departures"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "swisstransport": {
      "url": "https://gateway.pipeworx.io/swisstransport/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026