Deutsche Bahn logo

Deutsche Bahn

Community
borski
deutsche-bahn

Deutsche Bahn train schedules, journey planning, and departures across Germany and into neighboring countries (Austria, Switzerland, Netherlands, France, Belgium). Use for ICE/IC/regional rail planning and airport ground transport (FRA, MUC).

Overview

Publisherborski
Repositorytravel-hacking-toolkit
Skill namedeutsche-bahn
Stars
690
Forks
75
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by borski on GitHub. Read the source before you install it.

Installation

Install the Deutsche Bahn AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/borski/travel-hacking-toolkit/tree/main/plugins/travel-hacking-toolkit/skills/deutsche-bahn
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/borski/travel-hacking-toolkit.git /tmp/travel-hacking-toolkit
mkdir -p .claude/skills
cp -r /tmp/travel-hacking-toolkit/plugins/travel-hacking-toolkit/skills/deutsche-bahn .claude/skills/deutsche-bahn
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Deutsche Bahn in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Deutsche Bahn on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Deutsche Bahn is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Deutsche Bahn Skill

Search German train schedules and plan journeys using the db-vendo-client library (open-source client for bahn.de APIs).

No API key required. No Docker. Just Node.js.

Source: db-vendo-client — wraps bahn.de's internal APIs.

Setup

bash
cd skills/deutsche-bahn && npm install

Commands

Station Search

Find station IDs by name:

bash
node skills/deutsche-bahn/scripts/search_trains.mjs stations "Frankfurt Flughafen"

Journey Planning

Search train routes between two stations (by ID or name):

bash
# By station ID
node skills/deutsche-bahn/scripts/search_trains.mjs journeys 8070003 8000376 --date 2026-05-05 --time 10:00 --results 5

# By station name (auto-resolves to ID)
node skills/deutsche-bahn/scripts/search_trains.mjs journeys "Frankfurt Airport" "Germersheim" --date 2026-05-05
node skills/deutsche-bahn/scripts/search_trains.mjs journeys "Amsterdam Centraal" "Mannheim Hbf" --date 2026-05-15 --time 09:00
node skills/deutsche-bahn/scripts/search_trains.mjs journeys "Paris Est" "Mannheim" --date 2026-05-05

Departure Board

Check upcoming departures from any station:

bash
node skills/deutsche-bahn/scripts/search_trains.mjs departures "Mannheim Hbf" --results 10
node skills/deutsche-bahn/scripts/search_trains.mjs departures 8070003 --date 2026-05-05 --time 14:00

Key Station IDs

German Airports

AirportStation IDStation NameNotes
Frankfurt (FRA)8070003Frankfurt(M) Flughafen FernbfLong-distance (ICE/TGV)
Frankfurt (FRA)8070004Frankfurt(M) Flughafen RegionalbfRegional trains
Munich (MUC)8004154München Flughafen TerminalS-Bahn to München Hbf
Düsseldorf (DUS)8001585Düsseldorf FlughafenS-Bahn + RE
Cologne/Bonn (CGN)8003330Köln/Bonn FlughafenICE station
Berlin (BER)8089021Flughafen BER Terminal 1-2FEX + RE + S-Bahn
Stuttgart (STR)8005773Flughafen/MesseS-Bahn to Stuttgart Hbf
Hamburg (HAM)8002549Hamburg AirportS-Bahn

Major Stations

CityStation IDName
Frankfurt Hbf8000105Frankfurt(Main)Hbf
Mannheim Hbf8000244Mannheim Hbf
Germersheim8000376Germersheim
Karlsruhe Hbf8000191Karlsruhe Hbf
Stuttgart Hbf8000096Stuttgart Hbf
München Hbf8000261München Hbf
Berlin Hbf8011160Berlin Hbf
Köln Hbf8000207Köln Hbf
Düsseldorf Hbf8000085Düsseldorf Hbf
Hamburg Hbf8002549Hamburg Hbf
Heidelberg Hbf8000156Heidelberg Hbf
Speyer Hbf8000076Speyer Hbf

International Stations (reachable by DB trains)

CityStation IDNameTrain from Germany
Amsterdam Centraal8400058Amsterdam CentraalICE from Frankfurt ~4h
Paris Est8700011Paris EstTGV/ICE from Frankfurt ~4h
Zürich HB8503000Zürich HBICE from Frankfurt ~4h
Basel SBB8500010Basel SBBICE from Mannheim ~2.5h
Strasbourg8700018StrasbourgTGV/RE from Karlsruhe ~40min
Brussels Midi8814001Bruxelles-Midi/Brussel-ZuidICE from Frankfurt ~3.5h
Wien Hbf8100003Wien HbfICE from München ~4h
Praha hl.n.5400014Praha hlavní nádražíEC from München/Berlin

Common Airport-to-Germersheim Routes

From AirportRouteTypical DurationTransfers
Frankfurt (FRA)ICE → Mannheim → S3 Germersheim78–105 min1
Stuttgart (STR)S-Bahn → Stuttgart Hbf → ICE Mannheim → S3~2h 30m2
Munich (MUC)S-Bahn → München Hbf → ICE Mannheim → S3~3h 45m2
Paris CDGRER → Paris Est → TGV Mannheim → S3~4h 30m2-3
Amsterdam (AMS)Train → Amsterdam CS → ICE Mannheim → S3~5h2
Zürich (ZRH)Train → Zürich HB → ICE Mannheim → S3~4h2

Parameters

ParamFlagDefaultDescription
Date--dateTodayYYYY-MM-DD format
Time--time08:00HH:MM, departure time
Results--results5 (journeys), 10 (departures)Number of results

Coverage

  • All German trains: ICE, IC/EC, RE, RB, S-Bahn
  • International: ICE to AMS/Brussels/Paris/Zürich/Wien, TGV to Paris, Eurostar connections
  • Local transit: S-Bahn, U-Bahn, trams, buses (if DB data includes them)

Limitations

  • No pricing. DB does not expose ticket prices via API. For fares, check bahn.de directly or use the Trainline API.
  • Rate limits. DB's backend enforces low rate limits. Keep queries reasonable (a few per minute, not hundreds).
  • Schedule data only. Real-time delays are shown when available, but historical data is not retained.
  • Future schedules. DB typically publishes schedules ~6 months out. Dates beyond that may return no results.

When to Use

Load this skill when:

  • Planning train connections from a European gateway airport to a destination in Germany
  • Checking ICE/TGV schedules between major cities
  • Finding last-mile S-Bahn/regional connections (e.g., Mannheim → Germersheim)
  • Comparing train travel time from different airports to decide which to fly into
  • Looking up departure boards at a station

Do NOT use for:

  • Booking tickets (search only — book at bahn.de or trainline.com)
  • Flight searches (use Duffel, Ignav, Skiplagged, etc.)
  • Pricing (not available via API)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Deutsche Bahn AI skill do?

Deutsche Bahn train schedules, journey planning, and departures across Germany and into neighboring countries (Austria, Switzerland, Netherlands, France, Belgium). Use for ICE/IC/regional rail planning and airport ground transport (FRA, MUC).

Why use Deutsche Bahn on TypingMind?

Because you install it once and use it with any model. Deutsche Bahn is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Deutsche Bahn in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/borski/travel-hacking-toolkit/tree/main/plugins/travel-hacking-toolkit/skills/deutsche-bahn. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Deutsche Bahn?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Deutsche Bahn?

As many as you like. As long as a model supports skills, you can use Deutsche Bahn with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Deutsche Bahn AI skill free?

Yes. It is published on GitHub by borski under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇