mvg

Munich public transport (MVG) CLI and S-Bahn live tracking. Use for departure times, route planning, nearby stations, service alerts, and real-time S-Bahn positions. Trigger when the user mentions MVG, S-Bahn, U-Bahn, Munich transit, departures, connections, Abfahrten, Verbindungen, or specific line names like S8, U3, etc.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "mvg" with this command: npx skills add Lars147/mvg-cli

MVG CLI

Munich public transport from the terminal. Uses the unofficial MVG API (bgw-pt/v3) — no auth needed.

Setup

  • CLI: python3 <skill_dir>/mvg_cli.py
  • Dependencies: Python 3, urllib (stdlib only)
  • S-Bahn Live: Requires node + ws module for WebSocket connection

Commands

# Station search
mvg search "Marienplatz"

# Departures
mvg departures "Marienplatz"
mvg departures "Marienplatz" --type ubahn --limit 20
mvg departures "Daglfing" --offset 5          # +5min walking time

# Route planning (stations or addresses)
mvg route "Marienplatz" "Garching"
mvg route "Hauptstr. 1, München" "Flughafen"  # address support
mvg route "Pasing" "Ostbahnhof" --time "08:30" --mode less-changes

# Nearby stations
mvg nearby                                     # default coords
mvg nearby 48.1351 11.5820

# Service alerts
mvg alerts
mvg alerts --station "Marienplatz"

# Lines
mvg lines --type sbahn

# S-Bahn live tracking (real-time via geOps WebSocket)
mvg live                                       # all S-Bahn lines
mvg live --line S3                             # specific line

All commands support --json for machine-readable output.

Transport Type Filters

Use with --type or --exclude: ubahn, sbahn, bus, tram, bahn (RE/RB), regionalbus, ruftaxi

Route Options

  • --mode: fast (default), less-changes, less-walking
  • --walk-speed: slow, normal (default), fast
  • --accessible: wheelchair-accessible routes only
  • --via "Station": route via intermediate stop
  • --arrive: interpret --time as arrival time

API Notes

  • Base URL: https://www.mvg.de/api/bgw-pt/v3/
  • Endpoints: /locations, /departures, /routes, /stations/nearby, /lines, /messages
  • Arrival time in route responses: use to.plannedDeparture (not plannedArrival)
  • S-Bahn live: wss://api.geops.io/realtime-ws/v1/ with GET sbm_full + SUB sbm_full + BBOX
  • Delays from geOps are in milliseconds

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Ai Freelancing Guide

Provides a complete guide to AI freelancing including niche analysis, pricing, client acquisition, proposal templates, and delivery workflows.

Registry SourceRecently Updated
Coding

Ai Code Assistant

提供多语言AI智能代码处理与批量自动化,显著提升开发效率,适合企业、团队及自由职业者。

Registry SourceRecently Updated
Coding

Life Control

Orchestrate the Life Control CLI skill for OpenClaw agent fleets: initialize the Life Control database, register agent personas, wire Telegram bots, and run daily routines (Morning Alignment, Body Protocol, Financial Pulse, Social Radar, Work Priming, Shutdown). Use when a user asks to create or run a Life Control system, OpenClaw skill integration, or agent persona automation for personal life tracking.

Registry SourceRecently Updated