dbrail_journeys

Pack: db-rail · Endpoint: https://gateway.pipeworx.io/db-rail/mcp

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.

Parameters

NameTypeRequiredDescription
fromstringyesOrigin station name or stop id, e.g. “Berlin Hbf”.
tostringyesDestination station name or stop id, e.g. “München Hbf”.
departurestringnoISO date/time to depart at (e.g. “2026-07-25T18:00:00Z”). Defaults to now.
resultsnumbernoMax journey options to return (default 3, max 6).

Example call

Arguments

{
  "from": "Berlin Hbf",
  "to": "München 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_journeys","arguments":{"from":"Berlin Hbf","to":"München Hbf"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('dbrail_journeys', {
  "from": "Berlin Hbf",
  "to": "München Hbf"
});

More examples

{
  "from": "Hamburg Hbf",
  "to": "Wien Hauptbahnhof",
  "departure": "2026-07-25T18:00:00Z",
  "results": 4
}

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.

Regenerated from source · build August 29, 2026