NS Travel Information MCP Server

get_departures

Get real-time departure information for trains from a specific station, including platform numbers, delays, route details, and any relevant travel notes. Returns a list of upcoming departures with timing, destination, and status information.

Input Schema

NameRequiredDescriptionDefault
dateTimeNoFormat - date-time (as date-time in RFC3339). Only supported for departures at foreign stations. Defaults to server time (Europe/Amsterdam)
langNoLanguage for localizing the departures list. Only a small subset of text is translated, mainly notes. Defaults to Dutchnl
maxJourneysNoNumber of departures to return
stationNoNS Station code for the station (e.g., ASD for Amsterdam Centraal). Required if uicCode is not provided
uicCodeNoUIC code for the station. Required if station code is not provided

Input Schema (JSON Schema)

{ "oneOf": [ { "required": [ "station" ] }, { "required": [ "uicCode" ] } ], "properties": { "dateTime": { "description": "Format - date-time (as date-time in RFC3339). Only supported for departures at foreign stations. Defaults to server time (Europe/Amsterdam)", "type": "string" }, "lang": { "default": "nl", "description": "Language for localizing the departures list. Only a small subset of text is translated, mainly notes. Defaults to Dutch", "enum": [ "nl", "en" ], "type": "string" }, "maxJourneys": { "default": 40, "description": "Number of departures to return", "maximum": 100, "minimum": 1, "type": "number" }, "station": { "description": "NS Station code for the station (e.g., ASD for Amsterdam Centraal). Required if uicCode is not provided", "type": "string" }, "uicCode": { "description": "UIC code for the station. Required if station code is not provided", "type": "string" } }, "type": "object" }