This page is an MCP client that runs in your browser.
It sends JSON-RPC over Streamable HTTP to a Cloudflare Worker that runs the db-timetable-mcp server. There is no REST wrapper in between. The protocol log shows every message.
The worker keeps no session and issues no session id. It answers GET and DELETE with 405.
What is MCP?
MCP is the Model Context Protocol. With it one program calls the tools of another and needs to know only their names and schemas. This page is the client, the worker runs the server.
The browser calls a tool by name and gets timetable data of Deutsche Bahn as JSON.
The worker holds the credentials for the OpenBoards API, the station index and the cache. The browser receives none of them.
Planned and expected time
Each arrival and departure has a planned and an expected time and platform. The server returns both.
- planned
- The time in the timetable.
- timeType
- The source of the expected time.
SCHEDULEmeans that there is no realtime data, soeffectiverepeatsplanned. - effective
- The expected time. For a train on time it equals
planned, anddelayMinutesis 0.
How the cache saves requests
The departures on this page need one request to the OpenBoards API, a full board needs two. The worker keeps each response for 30 seconds. If ten visitors at the same Cloudflare location open the same board in that time, the worker sends no further request.
- Boards opened
- 0
- OpenBoards requests
- 0
The station search uses an index that ships with the server. It never calls the API.
If the quota is used up or the API fails, the worker sends the last saved board and marks it as stale. It does this for up to six hours, and for boards that start now for up to 15 minutes.
The four tools
The three board tools take an evaNo, a start time and a window of up to 480 minutes. They can filter by platform and train class.
getStationBoardreturns the arrivals and departures of one station, merged per train.getDeparturesreturns only departures. This page calls it for its board.getArrivalsreturns only arrivals.findStationssearches stations by name, EVA number or DS100 code.
The server also has four resource templates: db-api:board/{evaNo}, db-api:departures/{evaNo}, db-api:arrivals/{evaNo} and db-api:station/{pattern}.
Limits
All visitors share the OpenBoards quota of one free plan. These limits apply.
| Resource | Limit | Effect |
|---|---|---|
| Board cache | 30 seconds | In that time the worker requests each response once per Cloudflare location. |
| Station search | no API quota | The worker answers from the station index of the server. |
| Stale board | 6 hours | If the API fails, the worker sends the last saved board and marks it as stale. For boards that start now it does this for at most 15 minutes. |
| Requests per visitor | 20 per minute, 200 per hour | The worker answers with HTTP 429 and Retry-After. It counts in memory, so a restart resets the count. |
| Request body | 64 KiB | The worker answers larger requests with HTTP 413. |
| OpenBoards API, free plan | 10 requests per second | All visitors share this quota. |
| Pause after HTTP 429 | 30 seconds | If the API answers with HTTP 429, the worker sends it no request for 30 seconds. |
Data sources
Departures and arrivals come from the OpenBoards API of Deutsche Bahn. Its product page refers to the terms of use of the Web-Bahnhofstafel at https://db.info/bahnhof-de/nutzungsbedingungen_wbt.html, which restrict commercial reuse and redistribution. The station index is derived from the OpenStation NeTEx export of DB InfraGO. The rail network on the map is derived from the Infrastrukturdaten of DB InfraGO. The map positions come from Wikidata.
Sources: Deutsche Bahn, OpenBoards API; DB InfraGO, OpenStation (NeTEx), changed; DB InfraGO, Infrastrukturdaten, CC BY 4.0, simplified; Wikidata, CC0.
Read the terms before you reuse this data. Deutsche Bahn AG does not run this page and has not endorsed it.
Privacy
- The page sets no cookies and loads no analytics and no tracking pixels. All its files, including the map, come from this site. The only other address the page contacts is the worker.
- The worker does not store your station searches.
- The worker counts requests per IP address for the rate limit. It keeps the counts in memory and never writes them to storage or logs.
- The worker logs the path of each OpenBoards request, for example
/db-api-marketplace/apis/open-boards/v1/departures. This log shows whether the cache works. It contains neither your IP address nor the content of your requests. - Cloudflare and Vercel host the worker and the page. They may keep operational logs.