Regiojet MCP
An MCP server for RegioJet trains and buses that lets AI assistants find stations, search connections, inspect prices and free seats, and—with an account token—book, pay for and cancel tickets.
Find locations: resolve city/station names (any language, diacritics optional) to ids usable in searches
Search routes: connections between two locations on a date, with prices, travel time, transfers, free seats, and cursor-based pagination
Get route detail: sections (lines, platforms, transfers) and price per seat class
Get free seats: per vehicle/deck availability for a seat class, optionally with individual seat numbers and single seats
Reference data: tariffs, seat classes, vehicle standards, carriers and promo action prices
Look up tickets: fetch a ticket by account code + ticket id
Account info: name, default tariff and credit balance
Manage my tickets: list reservations/tickets (filterable by state) and inspect one in detail (seats, price, unpaid amount, cancel conditions)
Book: create a reservation, optionally with chosen seats, UNPAID until paid or until it expires
Pay: pay UNPAID tickets from RegioJet account credit (spends real money)
Cancel: cancel reservations or paid tickets, optionally refunding to the original payment card instead of credit
Resources: tariff and seat-class reference data exposed as MCP resources
Transports: runs over stdio by default or HTTP on 127.0.0.1:8000
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., "@Regiojet MCP find trains from Prague to Vienna tomorrow and show the cheapest seats"
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.
Regiojet MCP
An MCP server that lets AI assistants search, book and cancel RegioJet train and bus tickets.
What is this?
A FastMCP server for the RegioJet Affiliate API. It finds stations, searches connections and shows routes, prices and free seats. If you give it an account token, it can also book tickets, pay for them from your RegioJet credit and cancel them.
Related MCP server: YHT Bilet MCP Server
Quick Start
Run it from PyPI with uvx. You don't need a checkout.
Claude Code
claude mcp add regiojet -- uvx regiojet-mcp
# with account tools (booking, payment, cancellation):
claude mcp add regiojet -e REGIOJET_API_KEY=<token> -- uvx regiojet-mcpOther MCP clients (Claude Desktop, Cursor, ...)
{
"mcpServers": {
"regiojet": {
"command": "uvx",
"args": ["regiojet-mcp"],
"env": { "REGIOJET_API_KEY": "<token>" }
}
}
}Leave out env if you only need the read-only tools.
Standalone
uvx regiojet-mcp # stdio
REGIOJET_MCP_TRANSPORT=http uvx regiojet-mcp # http on 127.0.0.1:8000Tools
Search and reference data
These tools are read-only and don't need a token.
Tool | Description |
| Resolve city/station names (any language, diacritics optional) to ids |
| Connections between two locations on a date, paginated via |
| Sections (lines, platforms, transfers) and price per seat class |
| Free seats per vehicle and deck for a seat class, with |
| Reference data (cached) |
| Existing ticket by account code + ticket id |
Account
These tools need REGIOJET_API_KEY.
Tool | Description |
| Name, default tariff, credit balance |
| Tickets on the account, filterable by state |
| Reserve seats (UNPAID until paid, expires at |
| Pay UNPAID tickets from account credit (spends money) |
| Cancel a reservation or paid ticket (cancel charges may apply) |
Resources
regiojet://tariffs, regiojet://seat-classes
Booking flow
flowchart LR
A[find_locations] --> B[search_routes]
B --> C[get_route_detail]
C -->|price_source per seat class| D[get_free_seats]
D --> E[create_reservation]
E --> F[pay_ticket_with_credit]
E --> G[cancel_ticket]
F --> GConfiguration
When you run it with uvx, set variables through your MCP client's env. When you run it from a checkout with uv run,
you can put them in a .env file in the server's working directory instead.
Env var | Default | Notes |
| unset | RegioJet customer account token (sent as Bearer). Enables account tools |
| unset | HTTP Basic auth for affiliate accounts. Ignored when |
|
| |
|
| |
|
| |
|
| Seconds |
|
|
Development
uv sync # install with dev dependencies
uv run regiojet-mcp # run from source (stdio)
REGIOJET_MCP_TRANSPORT=http uv run regiojet-mcp # run from source (http)
uv run fastmcp dev inspector server.py # MCP Inspector in the browser
uv run pytest # testsTo use a local checkout in Claude Code:
claude mcp add regiojet -- uv run --directory /path/to/regiojet-mcp regiojet-mcpProject structure
regiojet-mcp/
├── src/
│ └── regiojet_mcp/
│ ├── __init__.py # entry point, transport selection
│ ├── client.py # async HTTP client for the RegioJet API
│ ├── config.py # settings from environment
│ └── server.py # MCP tools and resources
├── tests/
│ └── test_tools.py
├── fastmcp.json # FastMCP project config
├── LICENCE
├── pyproject.toml
├── server.py # entry point for `fastmcp run` / `fastmcp dev`
└── uv.lockLicense
MIT © Petr Václavek
Available Tools
16 toolscancel_ticketCancel TicketADestructive
Cancel a reservation or a paid ticket. Paid tickets may incur cancel_charge (see get_my_ticket). Confirm with the user first.
Inputs: ticket_id (required), lang, refund_to_original_source. Returns: object
create_reservationCreate ReservationA
Reserve seats on the logged-in account. The reservation is UNPAID and expires at expiration_date unless paid (pay_ticket_with_credit, or in the RegioJet app/web) or cancelled first.
Inputs: route_id (required), sections (required), seat_class (required), price_source (required), +3 more. Returns: result
find_locationsFind LocationsARead-only
Find RegioJet cities and stations by name. Use returned id+type as from/to in search_routes.
Prefer CITY ids for searching (covers all stations in the city); STATION ids are needed for route detail/seats.
Inputs: query (required), lang, limit, station_type. Returns: result
get_accountGet AccountARead-only
Get the logged-in RegioJet account: name, default tariff and credit balance.
Inputs: lang. Returns: object
get_free_seatsGet Free SeatsARead-only
Get free seats per vehicle (carriage/bus) offering the given seat class, for each section of a route.
Double-decker buses are one vehicle with several decks; seats are listed per deck.
Inputs: sections (required), seat_class (required), lang, tariffs, +1 more. Returns: result
get_my_ticketGet My TicketARead-only
Get one ticket of the logged-in account: state, seats, price, unpaid amount, cancel conditions.
Inputs: ticket_id (required), lang, currency. Returns: object
get_route_detailGet Route DetailBRead-only
Get a route's sections (trains/buses, lines, platforms, transfers) and price per seat class.
Inputs: route_id (required), to_station_id (required), from_station_id (required), lang, +2 more. Returns: object
get_ticketGet TicketARead-only
Get an existing ticket by account code and ticket id.
Inputs: ticket_id (required), account_code (required), lang, currency. Returns: object
list_action_pricesList Action PricesCRead-only
List marketing actions / promo prices.
Inputs: lang, active_only. Returns: result
list_carriersList CarriersBRead-only
List carriers operating RegioJet connections.
Inputs: lang. Returns: result
list_my_ticketsList My TicketsARead-only
List tickets and reservations on the logged-in account, newest first.
Inputs: lang, limit, offset, states, +1 more. Returns: result
list_seat_classesList Seat ClassesBRead-only
List seat classes (Low cost, Standard, Relax, Business, ...) with descriptions.
Inputs: lang. Returns: result
list_tariffsList TariffsBRead-only
List passenger tariffs (adult, child, student, senior, ...). Use key in tariffs arguments.
Inputs: lang. Returns: result
list_vehicle_standardsList Vehicle StandardsBRead-only
List vehicle standards (e.g. YELLOW, FUN_AND_RELAX) with descriptions.
Inputs: lang. Returns: result
pay_ticket_with_creditPay Ticket With CreditADestructive
Pay UNPAID tickets from the account's RegioJet credit. Spends real money: confirm with the user first.
Inputs: ticket_ids (required), lang. Returns: result
search_routesSearch RoutesBRead-only
Search RegioJet connections between two locations on a date. Returns route ids for get_route_detail.
Inputs: to_id (required), from_id (required), to_type (required), from_type (required), +6 more. Returns: cursor, routes, currency
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools have clear, distinct roles: location lookup, route search/detail, seat availability, reference lists, and the account/ticket lifecycle are well separated. The one weak spot is the trio get_ticket / get_my_ticket / list_my_tickets, where the boundary between retrieving 'an existing ticket by account code' and 'one ticket of the logged-in account' requires careful reading of descriptions.
All names are snake_case verb_noun (get_ticket, search_routes, list_seat_classes, create_reservation, cancel_ticket), with consistent get_/list_/find_/search_/create_/cancel_/pay_ prefixes. Exceptions like pay_ticket_with_credit still fit the verb-first convention and remain readable.
16 tools is at the upper bound but justified by the domain: five cheap list_* reference lookups (tariffs, seat classes, vehicle standards, carriers, action prices) support the core search/book/pay flow. A couple of the list endpoints (carriers, vehicle standards) are marginally useful, so it is slightly over-scoped rather than well-scoped.
The booking lifecycle is well covered end-to-end: locate stations, search routes, inspect detail/seats, reserve, pay with credit, and cancel, plus account and ticket retrieval. The main gap is the absence of a modify/update-reservation operation, forcing users to cancel and recreate; there is also no explicit passenger-detail handling visible in the surface.
Maintenance
Related MCP Connectors
Search and book train tickets, Interrail passes and seat reservations across Europe.
Omio MCP server for ChatGPT, Claude and any AI agent: search trips, find the cheapest day and start booking in your own Omio account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Omio yourself; Cotlet does not store your password and you need no Omio API key. About the official Omio API: Omio has no public API for your own account (checked 24 Oct 2026). Its affiliate programme lists a Search API for partners, and its app in ChatGPT searches trips; Your Bookings, saved travelers and checkout work only on omio.com and in the Omio app. Setup and FAQ: https://cotlet.dev/integrations/omio-api-mcp-server
Kiwi.com MCP server for ChatGPT, Claude and any AI agent: search flights, list my bookings, add baggage, request refund and check in in your own Kiwi.com account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Kiwi.com yourself; Cotlet does not store your password and you need no Kiwi.com API key. About the official Kiwi.com API: Kiwi.com has no public API for managing your own bookings (checked 11 Oct 2026). Its official MCP server has one tool, search-flight, which returns flights with a booking link for each and does not manage trips, and new Tequila API partnerships have been by invitation only since May 2024. Setup and FAQ: https://cotlet.dev/integrations/kiwi-com-api-mcp-server
The Ferryhopper MCP server is a connector for LLMs and AI Agents in maritime travel that exposes ferry routes, schedules, and booking options. It enables AI assistants to search ports and connections across 33 countries and 190+ ferry operators, provide real-time ferry itineraries with indicative prices, and assist users with planning island-hopping or multi-leg journeys by processing natural language queries about ferry times, passenger counts, and travel durations.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables searching for train connections, stations, and ticket pricing on the Czech railway network via the official České dráhy API. It supports retrieving detailed connection information and passenger discount categories for travel planning.55MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching Turkish high-speed train (YHT) tickets via TCDD API. Supports real-time availability, station name resolution, date formatting, and passenger count.MIT
- FlicenseAqualityDmaintenanceConnects AI assistants to Swiss Federal Railways (SBB/CFF/FFS) data: train schedules, station search, ticket prices, and direct ticket purchase links.678 npm-
- AlicenseAqualityBmaintenanceEnables AI agents to search Polish public transport timetables — trains, PKS/regional buses, and optionally urban transit in ~20 cities — by planning journeys with transfers, checking departures with platforms, and tracking live delays, cancellations and full trip details, all from open GTFS data without an API key. Station lookup tolerates typos and missing Polish diacritics, and endpoints can be a stop, a whole city, or coordinates.666 npm37MIT