io.github.mohammad-abbasi-sh/flixtrain-mcp
Click on "Deploy 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., "@io.github.mohammad-abbasi-sh/flixtrain-mcp find FlixTrain options from Berlin to Munich on 15.07.2026 sorted by price"
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.
flixtrain-mcp 🚆
mcp-name: io.github.mohammad-abbasi-sh/flixtrain-mcp
Unofficial read-only MCP server for global.api.flixbus.com (FlixBus shop search API) — FlixTrain times & prices from the FlixBus shop search API (free, no key, no login): train-only departures between German cities, with stations, duration, price and seat availability. No key, no login.
Built by Mohammad Abbasi as part of the "Germany MCP factory". Not affiliated with global.api.flixbus.com (FlixBus shop search API).
For AI agents
Add to your MCP client config (stdio):
{
"mcpServers": {
"flixtrain": {
"command": "uvx",
"args": ["flixtrain-mcp==0.1.0"]
}
}
}Or run locally: python -m flixtrain_mcp.server (needs mcp<2, httpx).
Related MCP server: DB Timetable MCP Server
Tools
Tool | Description |
| Search FlixTrain-only departures between two cities on a date: times, stations, duration, price & seats — |
| Find cities (with train stations) by name for the train search — |
| Reachability probe (ok / blocked / error) — one polite request |
Development
python3 -m venv .venv && .venv/bin/pip install "mcp<2" httpx pytest
.venv/bin/pip install -e .
.venv/bin/python -m pytest tests/ -qLicense
MIT
Built by Mohammad Abbasi — Almanibama · mabbasi.ir
Available Tools
3 toolsflixtrain_healthA
Check whether the FlixBus search API is reachable right now.
Returns status ok (HTTP 200), blocked (HTTP 403/429 — bot wall or rate limit) or error, plus the HTTP status and the probed URL. One polite request; it does not fetch any listings.
Inputs: no named parameters. Returns: result
flixtrain_search_citiesA
Find cities by name (with train-station flag) for the train search. query: e.g. Berlin, Köln, München. limit: 1..10 (default 10).
Inputs: query (required), limit. Returns: result
flixtrain_search_trainsA
Search FlixTrain-only departures between two cities on a date. from_city / to_city: city names, e.g. Berlin, Hamburg, Köln (Cologne). date: DD.MM.YYYY, e.g. 11.11.2026. limit: 1..20 (default 10). sort: departure (default) or price.
Inputs: date (required), to_city (required), from_city (required), sort, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a clearly distinct concern: train departure search, city lookup, and API health probing. There is no overlap in inputs or outputs, and the fed relationship (cities → train search) is obvious from the descriptions.
All names share the `flixtrain_` prefix and mostly follow verb_noun (search_trains, search_cities). `flixtrain_health` drops the verb form, a minor deviation that is still unambiguous.
Three tools is on the thin side but each earns its place for a read-only search integration. Nothing extraneous, though a slightly richer surface (e.g. station/connection detail) would feel less minimal.
Discovery (cities), the core search, and a diagnostic health check form a coherent lifecycle for a search-only server. Gaps like no journey detail/price breakdown endpoint or deeper filtering exist, but agents can work around them with the search result payload.
Maintenance
Related MCP Connectors
Read-only public transit departures, stop search, and city coverage for bus and train users.
Journeys, departures, line courses, disruptions in Germany; nearby sharing as currently reported.
Search minibus trips between Ukraine, Germany and Switzerland. Read-only.
Cached UK train departures and qualified platforms, powered by National Rail Enquiries.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides unified access to Deutsche Bahn APIs for real-time railway data, station information, timetables, disruptions, parking, and accessibility services.26-
- AlicenseAqualityDmaintenanceProvides access to Deutsche Bahn's timetable data through MCP, enabling real-time train schedules, station search, and change tracking for German railway stations.467 npmMIT
- AlicenseAqualityBmaintenanceEnables MCP clients to access live Deutsche Bahn timetable data, including connections, departure and arrival boards, platforms, delays, fares, and disruptions, by querying bahn.de directly with no API key.960 PyPI1MIT

mcp-db-railofficial
AlicenseNot gradedqualityBmaintenanceEnables keyless access to German and European rail and public transport data, including station search, live departures and arrivals, and multi-leg journey planning with real-time updates.116 npmMIT