Skip to main content
Glama
io.github.mohammad-abbasi-sh/flixtrain-mcp

io.github.mohammad-abbasi-sh/flixtrain-mcp

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

flixtrain_search_trains

Search FlixTrain-only departures between two cities on a date: times, stations, duration, price & seats — from_city, to_city, date (DD.MM.YYYY), limit 1..20, sort (departure/price)

flixtrain_search_cities

Find cities (with train stations) by name for the train search — query, limit 1..10

flixtrain_health

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/ -q

License

MIT


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

Available Tools

3 tools
flixtrain_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

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      9
      60 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 npm
      MIT