Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

FlixTrain — train times, stations & prices between German cities

@mohammad-abbasi-shMCP server · External

Unofficial read-only MCP server for FlixTrain — train times, stations & prices.

Public transportv0.1.0Python
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

Not assessed yet.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

PyPIflixtrain-mcpv0.1.0

Run

uvx flixtrain-mcp

MCP client config

{
  "mcpServers": {
    "flixtrain-train-times-stations-prices-between-german-cities": {
      "command": "uvx",
      "args": [
        "flixtrain-mcp"
      ]
    }
  }
}
README1 min read

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):

json
{
  "mcpServers": {
    "flixtrain": {
      "command": "uvx",
      "args": ["flixtrain-mcp==0.1.0"]
    }
  }
}

Or run locally: python -m flixtrain_mcp.server (needs mcp<2, httpx).

Tools

ToolDescription
flixtrain_search_trainsSearch 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_citiesFind cities (with train stations) by name for the train search — query, limit 1..10
flixtrain_healthReachability probe (ok / blocked / error) — one polite request

Development

bash
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

PolyForm Noncommercial 1.0.0 — free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

Similar modules

Browse Public transport