Db Rail

v0.2.1
io.github.pipeworx-io/db-rail Checked 2 days ago Published 1 month ago

DB Rail MCP — German + European rail and public transport, keyless.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dbrail_locations

Search German / European rail stations, stops, and places by name (e.g. "Berlin Hbf", "München", "Zürich HB"). Returns matches with a stop id, coordinates, and country. Keyless. You do NOT have to call this first — dbrail_departures, dbrail_arrivals and dbrail_journeys all accept a plain station name and resolve it themselves; use this when you want to disambiguate between similarly-named stations or need coordinates.

ParameterTypeDescription
query *stringSearch term, e.g. "Berlin Hbf", "Hamburg", "Wien Hauptbahnhof".
resultsnumberMax results to return (default 10, max 25).

dbrail_departures

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.

ParameterTypeDescription
id *stringStation name ("Berlin Hbf") or stop id from dbrail_locations.
modestringFilter 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 MOT…
resultsnumberMax departures to return (default 15, max 50).
whenstringISO date/time to start the board from (e.g. "2026-07-25T18:00:00Z"). Defaults to now.

dbrail_arrivals

Live arrivals board for a German / European station. Pass a station NAME ("München Hbf") or a stop id from dbrail_locations. Returns upcoming arrivals with line/train number, origin, scheduled and real-time arrival, delay in minutes, platform/track, and operator. Keyless, real-time where the operator publishes it.

ParameterTypeDescription
id *stringStation name ("München Hbf") or stop id from dbrail_locations.
modestringFilter 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 MOT…
resultsnumberMax arrivals to return (default 15, max 50).
whenstringISO date/time to start the board from. Defaults to now.

dbrail_journeys

Plan a multi-leg rail / public-transport journey between two places in Europe. Pass station NAMES ("Berlin Hbf" -> "München Hbf") or stop ids. Returns route options, each with total duration, number of transfers, and every leg (mode, line, from/to with platforms, scheduled + real-time times). Keyless.

ParameterTypeDescription
from *stringOrigin station name or stop id, e.g. "Berlin Hbf".
to *stringDestination station name or stop id, e.g. "München Hbf".
departurestringISO date/time to depart at (e.g. "2026-07-25T18:00:00Z"). Defaults to now.
resultsnumberMax journey options to return (default 3, max 6).