irail_journey

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

Plan a train journey between two Belgian stations — SNCB NMBS route planner with legs, transfers, live delays, and platforms per leg. Answers “next train from Brussels to Antwerp”, “how do I get from Ghent to Liège by rail”. Optional depart_at or arrive_by as ISO datetime (“2026-07-20T09:00”) or time (“09:00”), interpreted in Belgian local time. Example: irail_journey({ from: “Brussels-South”, to: “Antwerp-Central” })

Parameters

NameTypeRequiredDescription
fromstringyesOrigin station, e.g. “Brussels-South”
tostringyesDestination station, e.g. “Antwerp-Central”
depart_atstringnoDepart at/after this time — “YYYY-MM-DDTHH:MM” or “HH:MM” (today), Belgian local time. Default: now
arrive_bystringnoArrive by this time instead — same formats as depart_at. Overrides depart_at
limitnumbernoMax connections to return, 1-6 (default 4)

Example call

Arguments

{
  "from": "Brussels-South",
  "to": "Antwerp-Central"
}

curl

curl -X POST https://gateway.pipeworx.io/irail/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"irail_journey","arguments":{"from":"Brussels-South","to":"Antwerp-Central"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('irail_journey', {
  "from": "Brussels-South",
  "to": "Antwerp-Central"
});

More examples

{
  "from": "Ghent-Sint-Pieters",
  "to": "Liège-Guillemins",
  "depart_at": "09:30",
  "limit": 3
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build September 4, 2026