loading…
Search for a command to run...
loading…
An MCP server that provides access to the Koleo API for Polish train timetables, including station information, departures, and arrivals. It allows users to sea
An MCP server that provides access to the Koleo API for Polish train timetables, including station information, departures, and arrivals. It allows users to search for connections, view train routes, and access real-time timetable data and seat occupancy statistics.
MCP server for the Koleo Polish train timetable API.
It exposes 14 tools you can call from Claude Desktop (or any MCP client) to search stations, departures/arrivals, connections, train routes, seat data, and realtime timetable.
pipgit clone https://github.com/MBratkowski/koleo-mcp.git
cd koleo-mcp
python3 -m pip install -e .
python3 server.py
If server.py starts without crashing, the server is ready.
Run the MCP inspector:
mcp dev server.py
Then in the inspector UI call these tools:
tool_search_stations with:query: Krakowtool_get_departures with:station: Krakow Glownytool_search_connections with:start: Krakowend: Warszawalength: 3tool_get_brandstool_get_realtime_timetable with:train_id: any integer (for example 12345)Each tool returns JSON with at least:
datasummarykoleo_urlOn errors you also get an error key.
Add this to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"koleo": {
"command": "python3",
"args": ["/absolute/path/to/koleo-mcp/server.py"]
}
}
}
Replace /absolute/path/to/koleo-mcp/server.py with your real path.
Restart Claude Desktop.
Create ~/.config/koleo-mcp/config.json:
{
"email": "[email protected]",
"password": "yourpassword"
}
You can override the config path with KOLEO_MCP_CONFIG.
If auth is missing, tool_get_realtime_timetable returns a friendly auth_required error.
| Tool | Description |
|---|---|
tool_search_stations |
Search stations by name |
tool_get_station_info |
Station address, opening hours, facilities |
tool_get_departures |
Departures from a station |
tool_get_arrivals |
Arrivals at a station |
tool_get_all_trains |
All trains (departures + arrivals) at a station |
tool_search_connections |
Find connections A->B |
tool_get_train_route |
Train route by brand + number |
tool_get_train_by_id |
Train route by Koleo train ID |
tool_get_train_calendar |
Operating dates for a train |
tool_get_realtime_timetable |
Live timetable (auth required) |
tool_get_seat_stats |
Seat occupancy stats on a route |
tool_get_seat_availability |
Raw seat map by connection ID |
tool_get_brands |
List train brands |
tool_get_carriers |
List carriers |
ModuleNotFoundError: run python3 -m pip install -e . again.auth_required for realtime tool: add ~/.config/koleo-mcp/config.json as shown above.Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"koleo-mcp-server": {
"command": "npx",
"args": []
}
}
}