Munich Public Transport (MVG) CLI for Openclaw

A terminal-based interface for accessing real-time Munich public transport data and live S-Bahn tracking.

lars147
v0.1.0
Feb 18, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mvg-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mvg-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Munich Public Transport (MVG) CLI?

The MVG CLI skill provides a comprehensive terminal interface for Munich's public transport system. It leverages the unofficial MVG API to fetch real-time departures, plan routes, and locate nearby stations without requiring authentication. This integration is part of the Openclaw Skills ecosystem, enabling developers and users to interact with Munich's transit network directly through code or command-line prompts.

Beyond basic scheduling, it offers deep integration with S-Bahn live tracking via WebSockets, providing precise location data for trains. Whether you are building automation for your daily commute or integrating transit data into a custom dashboard, this skill streamlines access to Munich's U-Bahn, S-Bahn, tram, and bus networks.

Munich Public Transport (MVG) CLI Use Cases

  • Checking live U-Bahn and S-Bahn departure times from the terminal.
  • Planning multi-modal routes between stations or specific addresses in Munich.
  • Monitoring real-time S-Bahn positions and delays via WebSocket streams.
  • Locating the nearest transit stations based on GPS coordinates.
  • Accessing service alerts and disruption notices for specific lines.

How Munich Public Transport (MVG) CLI Works

  1. The skill interfaces with the unofficial MVG API endpoints for locations, departures, and routing.
  2. Users issue commands like mvg departures or mvg route to trigger data retrieval.
  3. For real-time S-Bahn tracking, the skill initializes a Node.js WebSocket connection to geOps.
  4. Data is processed and returned in a human-readable format or JSON for further automation.
  5. Advanced filters allow users to narrow results by transport type, walking speed, or accessibility requirements.

Munich Public Transport (MVG) CLI Setup

To get started with this transit skill, ensure you have Python 3 installed. For live S-Bahn tracking, Node.js and the ws module are required. Openclaw Skills users should ensure the script is accessible in their environment path.

# Basic CLI setup
python3 mvg_cli.py

# Install WebSocket dependency for S-Bahn live tracking
npm install ws

Munich Public Transport (MVG) CLI Data Schema & Taxonomy

The skill organizes data primarily through JSON responses for easy parsing. Below are the key data structures used in this tool:

Component Data Type Description
Locations JSON Array Station names, IDs, and geographic coordinates.
Departures JSON Object Timestamps, line numbers, and delay information in minutes.
Routes Nested JSON Path details including walk times, transfers, and planned arrival/departure.
S-Bahn Live WebSocket Feed Real-time coordinate updates and delay offsets in milliseconds.

Munich Public Transport (MVG) CLI Advanced Features

  • Machine-readable JSON output for all commands via the --json flag.
  • Address-to-station routing support for end-to-end journey planning.
  • Customizable walking speeds (slow, normal, fast) for route calculations.
  • Wheelchair-accessible route filtering for mobility-impaired users.
  • Real-time S-Bahn visualization via geOps WebSocket integration.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*