Sign inTry it

Trenitalia MCP server: let your AI agent search Italian train trips

Wield is an MCP server that gives your AI agent one Trenitalia tool, lefrecce.it/search-trains. It searches trains between two Italian stations from a departure time, using Trenitalia's own booking site, lefrecce.it. Results include times, changes, train names, the lowest available price in euros and whether a train can still be bought. No login is needed.

Updated

Live recipelefrecce.it/search-trainsv2

Trenitalia (Le Frecce) Find Trenitalia trains and prices between two Italian stations

Read-only, no loginFailed the last daily check

Parameters (9)
adultsinteger
childreninteger
departurestringrequiredEarliest departure, Italian local time, e.g. '2027-01-14T08:00'
direct_onlybooleanNo changes
frecce_onlybooleanOnly high-speed Frecce trains
fromstringrequiredStation or city, e.g. 'Roma', 'Milano Centrale', 'Firenze S. M. Novella'
limitinteger
regional_onlyboolean
tostringrequiredStation or city
Use it with your agent

What your agent gets

RecipeWhat it doesLoginStatus (7 Nov 2026)
lefrecce.it/search-trainsTrains between two stations or cities from a departure time, with arrival, duration, changes, train names, lowest price and whether it can still be boughtNoOK, 5 of 5 checks, about 2.9 s

The recipe is read only. It searches and does not book. It does not add anything to a cart.

How the tool works

The tool takes a departure and an arrival station, an earliest departure time in Italian local time, and optional filters. It looks up each station name once, then runs one search. A status check on 7 November 2026 for Roma to Milano used three requests and finished in about 2.9 seconds.

ParamRequiredWhat it is
fromyesDeparture station or city, such as Roma, Milano Centrale or Firenze S. M. Novella
toyesArrival station or city
departureyesEarliest departure in Italian local time, such as 2027-01-14T08:00
adultsnoNumber of adults. Default 1
childrennoNumber of children. Default 0
frecce_onlynoOnly high-speed Frecce trains. Default false
regional_onlynoOnly regional trains. Default false
direct_onlynoOnly trains with no changes. Default false
limitnoHow many trains to return. Default 10

The result has from, to, a trains list and a book_at field. Each train shows its departure and arrival, duration, origin and destination, number of changes, the train names and numbers, and the train types. It also shows price_eur, price_indicative and for_sale. Check for_sale before you rely on a price, because it shows whether the train can still be bought.

An unknown station name fails at the lookup step, before any search runs.

Example prompts

  • "Find Trenitalia trains from Roma to Milano Centrale on 14 January 2027 from 8 in the morning, Frecce only, and show the price."
  • "Search trains from Firenze S. M. Novella to Venezia for two adults, direct trains only."
  • "Show regional trains from Milano Centrale to Torino Porta Nuova this Friday, and list the changes for each one."

What leaves your computer

The recipe calls one host, www.lefrecce.it. Wield logs each request on your computer, with method, host, path, status and timing. It never logs bodies or query values. Telemetry is off by default. Wield never reads, copies or sends your cookies or passwords.

Trenitalia's terms, in plain words

We have not reviewed lefrecce.it's terms yet, so please read them yourself. The site's robots.txt only bans a few named crawlers. Each run looks up each station once and searches once, using the same requests the booking form makes. The recipe does not book and does not add to a cart. This is not legal advice. Check the site's terms before you automate anything else.

Limits

  • Read only. The tool never books. Buying happens on lefrecce.it.
  • Italian station names. Write the station as the site knows it, or use a city name.
  • Prices can change. The lowest available price is what the search returns at that moment. Check for_sale before you rely on it.
  • Run limits apply. A run has at most 12 steps, 40 requests, 5 MB per response and 60 seconds.

FAQ

Can my agent buy a ticket?

No. The tool does not book or add to a cart. Buy on lefrecce.it.

Can it show only regional trains?

Yes. Set regional_only to true. Set frecce_only for high-speed trains only.

Do I need a Trenitalia login?

No. The search needs no account.

Which AI apps work with it?

Any MCP client. npx -y wield-mcp init sets up Claude Desktop, Claude Code, Cursor and Codex. Other MCP clients work with the standard stdio config. Claude Desktop also has a one-click bundle on wield.run/install.