A Model Context Protocol (MCP) server that provides real-time Munich public transport information through the MVG (Münchner Verkehrsgesellschaft) API. This server enables AI assistants to help users with public transport queries, departure times, and station information for Munich's public transportation network.
- Real-time Departures: Get live departure information from any Munich public transport location
- Station Search: Find stations by name or location query
- Station Details: Retrieve detailed information about specific stations
- Complete Station List: Access all available stations in the Munich transport network
Get departure information from a location query.
Parameters:
query(string): Location name or address to search forlimit(integer): Maximum number of departures to returnoffsetInMinutes(integer): Time offset in minutes from now
Returns: List of departures from the nearest station to the queried location.
Get departure information from a specific station ID.
Parameters:
stationId(string): The unique station identifierlimit(integer): Maximum number of departures to returnoffsetInMinutes(integer): Time offset in minutes from now
Returns: List of departures from the specified station.
Retrieve all available stations in the Munich transport network.
Parameters: None
Returns: Complete list of all Munich public transport stations.
Get detailed information about a specific station.
Parameters:
stationId(string): The unique station identifier
Returns: Detailed station information including name, location, and available transport types.
- Java 21 or higher
- Gradle build system
- Clone the repository:
git clone [your-repository-url]
cd [repository-name]- Build the project:
gradle build- Run the MCP server:
gradle runAdd the following configuration to your Claude Desktop claude_desktop_config.json file:
{
"mcpServers": {
"muc-transport": {
"command": "java",
"args": [
"-jar",
"/path/to/your/muc-transport-mcp-server.jar"
],
"env": {}
}
}
}Once configured with Claude Desktop, you can ask questions like:
- "When is the next U-Bahn from Marienplatz?"
- "Show me departures from Hauptbahnhof in the next 30 minutes"
- "What stations are available in Munich?"
- "Get details for station with ID de:09162:6"
This server relies on the MVG (Münchner Verkehrsgesellschaft) public API to provide real-time transport information. The server includes an MVGClient that handles all communication with the MVG backend services.
The server works with the following main data types:
- Departure: Contains departure time, line information, destination, and delay data
- Station: Represents a transport station with ID, name, location, and available transport modes
- Location: General location data that can represent stations or other points of interest
This server uses the MVG API which is not intended for commercial use. The MVG API is provided for informational purposes and personal use only. Please refer to the official MVG terms of service for detailed usage guidelines and restrictions.
By using this MCP server, you acknowledge that:
- The MVG API is not meant for commercial applications
- Data accuracy and availability are subject to MVG's service terms
- You are responsible for complying with MVG's usage policies
For issues related to:
- MCP Server: Create an issue in this repository
- MVG API: Check the official MVG developer documentation
- Claude Desktop Integration: Refer to the Anthropic MCP documentation
- MVG (Münchner Verkehrsgesellschaft) for providing the public transport API
- Anthropic for the Model Context Protocol specification