mvg-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mvg-mcp
An MCP server for Munich public transport (MVG/MVV). It lets Claude (or any MCP client) look up live departures, plan routes and check disruptions.
⚠️ This server uses the unofficial JSON API behind www.mvg.de. It is not documented, may change without notice, and is not endorsed by MVG. Keep request rates low and respect the MVG terms of use. Use it for personal, non-commercial purposes only.
Tools
Tool | What it does |
| Search stations by name and get their global ids ( |
| Find the stations closest to a coordinate |
| Live departures, including delays, platforms and cancellations |
| Connections between two stations |
| Current service messages, optionally filtered by line ( |
Wherever a tool takes a station, you can pass either a name ("Marienplatz") or a global id. Times are in local time (Europe/Berlin). Transport type filters: UBAHN, SBAHN, TRAM, BUS, REGIONAL_BUS, BAHN, SCHIFF.
Related MCP server: DB Timetable MCP Server
Install
git clone <this repo> && cd mvg-mcp
uv sync # or: pip install -e .Use with Claude Code
claude mcp add mvg -- uv run --directory /path/to/mvg-mcp mvg-mcpUse with Claude Desktop
In claude_desktop_config.json:
{
"mcpServers": {
"mvg": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mvg-mcp", "mvg-mcp"]
}
}
}Use with claude.ai / mobile (remote connector)
A remote connector needs a public HTTPS URL. Run the server over HTTP:
mvg-mcp --transport streamable-http --host 0.0.0.0 --port 8000Then expose it, for example with a Cloudflare Tunnel or a small VPS behind a reverse proxy. Add https://<your-host>/mcp under Settings → Connectors → Add custom connector. The server has no authentication, so don't leave the URL publicly open long term.
Development
pip install -e ".[dev]"
pytestThe tests mock the MVG API with respx. To smoke-test against the live API:
python -c "import asyncio; from mvg_mcp.client import MvgClient; c=MvgClient(); print(asyncio.run(c.find_stations('Marienplatz')))"Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
DB Rail MCP — German + European rail and public transport, keyless.
Swiss Transport MCP — wraps Transport Open Data API (free, no auth)
Journeys, departures, line courses, disruptions in Germany; nearby sharing as currently reported.
MBTA MCP — Boston real-time transit via the MBTA v3 API (api-v3.mbta.com)
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server for querying German public transport information, including station search, live departures/arrivals, and journey planning.51-
- AlicenseAqualityDmaintenanceProvides access to Deutsche Bahn's timetable data through MCP, enabling real-time train schedules, station search, and change tracking for German railway stations.469 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for real-time German public transport data (HAFAS/VBN network). Enables querying departures, arrivals, journeys, and nearby stops using natural language.ISC
- AlicenseNot gradedqualityCmaintenanceEnables querying Swiss public transport data (stations, departures, connections) from the Transport Open Data API via natural language through an MCP gateway.79 npmMIT