Listed from the MCP registry; nobody on Odel publishes it.
Italian bus and train searches with live prices, availability and status.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
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).
Run
npx -y italian-travel-search
MCP client config
{
"mcpServers": {
"italian-travel-search-mcp-server": {
"command": "npx",
"args": [
"-y",
"italian-travel-search"
]
}
}
}An unofficial, read-only TypeScript service for live Italian coach and train searches through HTTP and Model Context Protocol interfaces.
The project hides provider-specific station catalogs, request formats, fare structures, and multi-leg responses behind one shared application core. Italo pricing initializes an anonymous technical session and temporary planning resource; customer login, fare selection, seat reservation, and payment are excluded.
Important
This project is not affiliated with or endorsed by Itabus, Autoservizi Salemi, Autolinee Federico, MarinoBus, or FlixBus. Provider names and trademarks belong to their owners. Before enabling a live adapter, confirm that your use complies with the provider's terms, applicable law, and any required authorization. This repository does not grant data-extraction or redistribution rights.
/mcp, with backward-compatible bus tools and separate rail tools.| Provider ID | Operator | Integration | Locations | Journeys |
|---|---|---|---|---|
itabus | Itabus | Demandware endpoints | Live | Live |
salemi | Autoservizi Salemi | Albatross tenant | Live | Live |
federico | Autolinee Federico | Albatross tenant | Live | Live |
marinobus | MarinoBus | Albatross tenant | Live | Live |
flixbus | FlixBus | Global FlixBus search API | Live | Live |
Public provider behavior and limitations are documented in the bus and train API guides below.
Train stations, journeys, prices and availability come directly from Trenitalia and Italo booking APIs. No timetable download, dataset, storage volume or initialization command is required. If one operator fails, its error is reported alongside the other operator's results. ViaggiaTreno and Italo live boards/standalone status remain independent; Italo quote sessions are cleaned up best-effort.
git clone https://github.com/Alexxanddr/italian-travel-search.git
cd italian-travel-search
npm install
cp .env.example .env
npm start
The server listens on http://127.0.0.1:3000 by default.
curl http://127.0.0.1:3000/health
curl http://127.0.0.1:3000/providers
curl http://127.0.0.1:3000/train-providers
curl 'http://127.0.0.1:3000/locations?query=Roma&provider=marinobus'
For journey searches, use today or a future date in Europe/Rome:
curl 'http://127.0.0.1:3000/journeys?origin=Roma&destination=Milano&date=YYYY-MM-DD&adults=1&children=0&provider=marinobus'
YYYY-MM-DD is a placeholder and must be replaced before running the command.
The dark, Italian-language Binario interface lives in frontend/ in this repository. It searches bus and train journeys through the HTTP API, with a single origin/destination/date form, progressive results, stable snapshot pagination and official booking links. It has no account, payment, AI model or direct provider/MCPHub access in the browser.
From the repository root:
npm ci
npm ci --prefix frontend
npm start
# In another terminal, from the same repository root:
npm run web:dev
# Open http://127.0.0.1:5173
The local frontend proxy defaults to the API at http://127.0.0.1:3000. Optional local configuration belongs in ignored frontend/.env.local; copy frontend/.env.example if needed. Never use browser-exposed VITE_* variables for credentials.
npm run build:all
# Install Chromium once before running browser tests:
cd frontend
npx playwright install chromium
cd ..
npm run check:all
npm run build and npm run check retain their existing backend behavior. The frontend shares domain types and keeps its own build lockfile. The existing root Dockerfile builds both parts into one image: Node serves the UI at /, the browser API at /api/*, the existing HTTP endpoints and MCP at /mcp, all on port 3000. No NGINX or second container is needed. The npm package remains API/MCP-focused and excludes frontend assets/tooling. See the frontend guide, single-image Docker packaging, and publication review. Publishing source code does not require hosting a live website.
The published image is multiarch: linux/amd64 and linux/arm64 share the same tag, and Docker selects the matching architecture automatically.
docker build -t italian-travel-search:local .
docker run --rm -p 127.0.0.1:3000:3000 italian-travel-search:local
# UI: http://127.0.0.1:3000/
# API: http://127.0.0.1:3000/api/providers (also /providers)
# MCP: http://127.0.0.1:3000/mcp
Without Docker, npm run build:all followed by node dist/index.js serves the same combined application. npm run web:dev remains the optional development server with live rebuilding.
| Method | Path | Purpose |
|---|---|---|
GET | /health | Process liveness |
GET | /providers | Adapter status and operational reason |
GET | /train-providers | Train operators and configured schedule/price/live capabilities |
GET | /locations | Provider location search |
GET | /journeys | Normalized one-way journey search |
GET | /train-locations | Trenitalia/Italo station search |
GET | /train-journeys | Live rail journeys, availability and nullable prices |
GET | /train-status | Standalone live status where enabled |
GET | /station-board | Live arrivals/departures where enabled |
POST | /mcp | Stateless MCP Streamable HTTP endpoint |
/locations and /journeys accept an optional provider parameter. Without it, all providers are queried independently and successful data is preserved alongside provider-scoped errors.
The complete contract is split into the Bus API and Train API, with shared behavior indexed in HTTP API.
The simplest MCP configuration runs the published package directly with npx:
{
"mcpServers": {
"italian-travel-search": {
"command": "npx",
"args": ["-y", "italian-travel-search@latest"]
}
}
}
Alternatively, build and start the local stdio server:
npm run build
npm run mcp:built
The existing list_providers, search_locations, and search_journeys bus tools remain compatible. Location and journey searches accept optional offset/limit; increment offset by limit until truncated is false to retrieve every page. Rail adds list_train_providers, search_train_locations, search_train_journeys, get_train_status, and get_station_board. Trenitalia and Italo price and live adapters are enabled; Italo live tools retain date-unverified semantics.
For exhaustive journey searches, start with snapshot: true and continue
with only the returned searchId, offset and limit. This keeps
prices, errors, order and totals identical across pages. Expired IDs require
a new search. The same opt-in flow exists over HTTP; see
stable pagination.
{
"mcpServers": {
"italian-travel-search": {
"command": "node",
"args": ["/absolute/path/to/italian-travel-search/dist/mcp/stdio.js"]
}
}
}
For a container or remote MCPHub deployment, start the HTTP process and point the client to http://italian-travel-search:3000/mcp. The container image is ghcr.io/alexxanddr/italian-travel-search:latest. No dataset initialization or persistent volume is needed.
See MCP interface for the authoritative tool contract, limits, errors, and development command.
The application has four layers:
SearchService orchestrate searches and partial results;Provider adapters implement one shared interface, so callers do not know whether a result came from Itabus Demandware or an Albatross tenant. See Architecture for modules, seams, data flow, caches, and test strategy.
npm run dev
npm run mcp
npm run check
npm run check runs the complete offline test suite, TypeScript type checking, and the configured lint check. To add an operator, follow Adding a provider; do not infer a new integration from HTML alone or copy credentials into fixtures.
The default server deliberately binds to loopback and keeps rate-limit and cache state in process memory. Read Operations before placing it behind a reverse proxy or running multiple replicas.
timetableSource is retained for compatibility.Always complete and confirm a purchase on the official provider site linked by bookingUrl.
Contributions are welcome; start with CONTRIBUTING.md. Report vulnerabilities privately according to SECURITY.md, not through a public issue.
Source code is available under the MIT License. The license covers this repository's code, not third-party data, provider trademarks, or access rights to upstream systems.
Search Cosenza directly: the backend preserves native connections via Paola, including Italo services followed by a Trenitalia regional train when offered by the booking API. Results include both legs, their operators, the interchange and the combined passenger fare when fully available. The destination is never silently replaced with Paola. See Train API.