Koleo MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Koleo MCP ServerFind connections from Krakow to Warsaw for tomorrow morning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
koleo-mcp
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.
Requirements
Python 3.12+
pip
Quick start (copy/paste)
git clone https://github.com/MBratkowski/koleo-mcp.git
cd koleo-mcp
python3 -m pip install -e .
python3 server.pyIf server.py starts without crashing, the server is ready.
How to test the server (easy mode)
Run the MCP inspector:
mcp dev server.pyThen in the inspector UI call these tools:
tool_search_stationswith:query:Krakow
tool_get_departureswith:station:Krakow Glowny
tool_search_connectionswith:start:Krakowend:Warszawalength:3
tool_get_brandstool_get_realtime_timetablewith:train_id: any integer (for example12345)
Each tool returns JSON with at least:
datasummarykoleo_url
On errors you also get an error key.
How to use with Claude Desktop
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.
Authentication (optional, needed for realtime tool)
Create ~/.config/koleo-mcp/config.json:
{
"email": "your@email.com",
"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.
Available tools
Tool | Description |
| Search stations by name |
| Station address, opening hours, facilities |
| Departures from a station |
| Arrivals at a station |
| All trains (departures + arrivals) at a station |
| Find connections A->B |
| Train route by brand + number |
| Train route by Koleo train ID |
| Operating dates for a train |
| Live timetable (auth required) |
| Seat occupancy stats on a route |
| Raw seat map by connection ID |
| List train brands |
| List carriers |
Troubleshooting
ModuleNotFoundError: runpython3 -m pip install -e .again.SSL certificate errors on macOS/Python.org builds: install certificates for your Python installation and retry.
auth_requiredfor realtime tool: add~/.config/koleo-mcp/config.jsonas shown above.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MBratkowski/koleo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server