dbrail_departures
Pack: db-rail · Endpoint: https://gateway.pipeworx.io/db-rail/mcp
Live departures board for a German / European station. Pass a station NAME (“Berlin Hbf”) or a stop id from dbrail_locations. Returns upcoming departures with line/train number, destination, scheduled and real-time departure, delay in minutes, platform/track, and operator. Keyless, real-time where the operator publishes it.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Station name (“Berlin Hbf”) or stop id from dbrail_locations. |
when | string | no | ISO date/time to start the board from (e.g. “2026-07-25T18:00:00Z”). Defaults to now. |
mode | string | no | Filter by transport mode. Pass “rail” for trains only (high-speed, long-distance, night, regional) — recommended at big stations, where trams/buses otherwise dominate the board. Or pass explicit MOTIS modes, comma-separated: HIGHSPEED_RAIL, LONG_DISTANCE, REGIONAL_RAIL, SUBURBAN, SUBWAY, TRAM, BUS, COACH, FERRY. |
results | number | no | Max departures to return (default 15, max 50). |
Example call
Arguments
{
"id": "Berlin Hbf"
}
curl
curl -X POST https://gateway.pipeworx.io/db-rail/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dbrail_departures","arguments":{"id":"Berlin Hbf"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dbrail_departures', {
"id": "Berlin Hbf"
});
More examples
{
"id": "Hamburg Hbf",
"mode": "rail",
"results": 20
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"db-rail": {
"url": "https://gateway.pipeworx.io/db-rail/mcp"
}
}
}
See Getting Started for client-specific install steps.