Koleo MCP Server
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.
README
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.py
If server.py starts without crashing, the server is ready.
How to test the server (easy mode)
Run the MCP inspector:
mcp dev server.py
Then 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 |
|---|---|
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 |
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.