smithery.ai

db-bahn

Query Deutsche Bahn train connections and prices.

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,548 B
  • docs SUMMARY.md 64 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

DB Bahn Skill 🚂

Query train connections and prices via the Deutsche Bahn API.

CLI: dbrest

Binary: dbrest (Homebrew: timkrase/tap/dbrest)

Find stations

dbrest locations "station name"

Output: Tab-separated list with ID, Name, Type.

Search connections

dbrest journeys --from <ID> --to <ID> [--departure ISO8601] [--results N]

Important: --from and --to require station IDs (IBNR), not names!

Workflow:

# 1. Find station IDs
dbrest locations "Köln Hbf"        # → 8000207
dbrest locations "München Hbf"     # → 8000261

# 2. Search journeys
dbrest journeys --from 8000207 --to 8000261 --results 5

With prices (JSON)

dbrest --json journeys --from 8000207 --to 8000261 --results 5

Prices are at journeys[].price.amount and journeys[].price.currency.

Live departures

dbrest departures --stop <ID> --results 10

Live arrivals

dbrest arrivals --stop <ID> --results 10

Notes

  • Prices only for long-distance trains — S-Bahn/regional trains often have no price
  • International stations (CH, AT, etc.) work ✅
  • Global flags before command: dbrest --json journeys ...