Deutsche Bahn Timetables API
Deutsche Bahn's official station-board API (DB API Marketplace, CC BY 4.0): find stations by name or EVA number, read the planned hourly timetable of any station, and pull the live change feed — delays, platform changes, cancellations and disruption messages — straight from DB. Free key, 60 requests per minute. Boards only; use the Deutsche Bahn Fahrplan connector for journey planning.
7-day free trial · No credit card · EU-hosted
Ask Deutsche anything
Try a real prompt against Deutsche Bahn Timetables API via AnythingMCP — Claude calls the tools, returns the answer. Press Enter on your own message to install on Cloud.
Install Deutsche on CloudClaude is AI and can make mistakes. Please double-check responses.
Setup in 2 minutes
- 1Start a free trial on cloud.anythingmcp.com.
- 2Click Deutsche Bahn Timetables API in the connector store. Paste credentials when prompted.
- 3Mint an MCP API key and point your AI client at the generated MCP URL.
Guides for Deutsche
Step-by-step setup for the most popular AI clients.
Setting up Deutsche Bahn Timetables API
From the connector definition itself: where to find the credentials, what they need to be allowed to do, and which API this adapter talks to.
This connector calls Deutsche Bahn's official Timetables API v1 on the DB API Marketplace. It is the source of truth for what is happening at a station right now, published by DB itself (CC BY 4.0). It does not plan journeys — pair it with the Deutsche Bahn Fahrplan connector for that.
Getting a key: create a free account at https://developers.deutschebahn.com, create an application, subscribe it to the Timetables API (free plan, 60 requests/minute) and copy the application's Client ID and API Key into DB_CLIENT_ID / DB_API_KEY.
Workflow
dbt_search_stationsresolves a name (prefix), a DS100 code or an EVA number to the station'seva(e.g.8000107= Freiburg(Breisgau) Hbf,8011160= Berlin Hbf,8000105= Frankfurt(Main)Hbf,8000261= München Hbf). Umlauts in a prefix are unreliable — search 'Munchen' or 'Muenchen' as well as 'München'.dbt_get_station_boardreturns the planned timetable of one hour: every train with itsid, category (ICE,RE,S…), number, planned arrival/departure time and platform, and the route (from/toare the stop lists as|-separated strings).dbt_get_changesreturns all known changes for the station (updated every 30 s): per trainid, the changed time (ct), changed platform (cp), status (cs:c= cancelled,a= added) and messages.dbt_get_recent_changesis the same feed limited to the last two minutes — poll it instead of the full feed when watching a station.- Match the
idfrom the plan with theidin the changes; delay in minutes = changed time − planned time.
Times are yyMMddHHmm in local German time (2609151427 = 15 Sep 2026, 14:27). The plan is sliced by hour: date is yyMMdd, hour is HH (00–23), both of the current local time in Germany.
Changes without a matching plan entry are trains that stop at the station in another hour; fetch that hour's plan if they matter.
Limits: 60 requests per minute on the free plan. Attribution: Deutsche Bahn AG, Timetables API, CC BY 4.0.
Your AI is two clicks away from Deutsche Bahn Timetables API.
Install the connector, paste your credentials, ask your AI a question. 7-day free trial, no credit card.