MVG Störung MCP Server

MVG Störung MCP Server

mvg_stoerung_mcp•byrmoriz

A Model Context Protocol server offering cached access to Munich Public Transport (MVG) disruption incident data.

License: CC0 1.0 Universal•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Fetches current MVG incidents from the official MVG API and caches results for at least 10 minutes.
  • •Provides tools to get incidents, check cache status, and search incidents by line, title, or description.
  • •Exposes MCP resources for current incidents and cache information.
  • •Adds human-readable timestamps and formats incident data with deduplicated line information.

BEST FOR

  • •Checking current Munich public transport disruptions through an MCP-compatible client.
  • •Searching MVG incidents for a specific line or keyword such as delays.
  • •Reducing MVG API calls by serving cached incident data.

ABOUT MVG_STOERUNG_MCP

MVG Störung MCP Server is cataloged as an MCP server attributed to rmoriz. A Model Context Protocol server offering cached access to Munich Public Transport (MVG) disruption incident data. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: CC0 1.0 Universal. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MVG Störung MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How long is MVG incident data cached?

The cache lasts at least 10 minutes and refreshes automatically when expired, with manual force refresh available.

How can I force a cache refresh?

By passing the force_refresh boolean parameter to get_mvg_incidents.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 787ba8a81387 · 采集于 2026-11-13 13:26:00 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MVG Störung MCP Server

A Model Context Protocol (MCP) server that provides cached access to Munich Public Transport (MVG) disruption data.

grafik

Features

  • Cached Data: Automatically caches MVG incident data for at least 10 minutes to reduce API calls
  • Real-time Incidents: Fetches current incidents from the official MVG API
  • Search Functionality: Search incidents by line, title, or description
  • Enhanced Data: Adds human-readable timestamps and formats data for easy consumption
  • MCP Compatible: Works with any MCP-compatible client

Data Source

This server uses the official MVG API endpoint: https://www.mvg.de/api/bgw-pt/v3/messages

The server filters the API response to only return incidents (type=INCIDENT) and enhances the data with:

  • Human-readable timestamps
  • Formatted descriptions
  • Deduplicated line information

Installation

# Install dependencies
pip install -r requirements.txt

# Or install as a package
pip install -e .

Usage

Running the Server

python mvg_mcp_server.py

Available Tools

  1. get_mvg_incidents: Get current MVG incidents (cached for 10+ minutes)

    • Optional parameter: force_refresh (boolean) - Force refresh cache even if not expired
  2. get_cache_status: Get information about the cache status

  3. search_incidents: Search incidents by line, title, or description

    • Required parameter: query (string) - Search query
    • Optional parameter: line (string) - Filter by specific line (e.g., 'U6', 'S1')

Available Resources

  1. mvg://incidents: Current incidents from Munich Public Transport (MVG)
  2. mvg://cache-info: Information about the current cache status

Example Usage

Get All Current Incidents

{
  "method": "tools/call",
  "params": {
    "name": "get_mvg_incidents"
  }
}

Search for U6 Line Issues

{
  "method": "tools/call",
  "params": {
    "name": "search_incidents",
    "arguments": {
      "query": "verspätung",
      "line": "U6"
    }
  }
}

Force Cache Refresh

{
  "method": "tools/call",
  "params": {
    "name": "get_mvg_incidents",
    "arguments": {
      "force_refresh": true
    }
  }
}

Cache Behavior

  • Cache Duration: 10 minutes minimum (configurable)
  • Automatic Refresh: Cache is automatically refreshed when expired
  • Force Refresh: Can be manually triggered via the force_refresh parameter
  • Cache Info: View cache status including expiration time and cached item count

Data Format

Each incident includes:

  • title: Incident title
  • description: Detailed description
  • type: Always "INCIDENT"
  • publication: Publication timestamp (Unix milliseconds)
  • publication_readable: Human-readable publication time
  • validFrom/validTo: Validity period
  • validFrom_readable/validTo_readable: Human-readable validity times
  • lines: Affected transport lines with details
  • provider: Always "MVG"

Error Handling

The server handles various error conditions:

  • API timeouts and connection errors
  • Invalid JSON responses
  • Cache expiration
  • Missing or malformed data

Development

Project Structure

├── mvg_mcp_server.py    # Main MCP server implementation
├── requirements.txt     # Python dependencies
├── pyproject.toml      # Project configuration
└── README.md           # This file

Dependencies

  • mcp>=1.0.0: Model Context Protocol framework
  • httpx>=0.25.0: Async HTTP client
  • pydantic>=2.0.0: Data validation and serialization

License

This project is dedicated to the public domain under the CC0 1.0 Universal license. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Disclaimer

This project is not an official MVG project, not endorsed or recommended. Please ask MVG for permission prior to using it.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MVG Störung MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mvg_stoerung_mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research