Connector guide4-minute read3 MCP tools7 languages

Connect Trenitalia to Microsoft Copilot via MCP

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

HCBy HelpCode teamUpdated 4 min read Open-source on GitHub

Open source · AGPL-3.0 · runs on your own server

Trenitalia

Trenitalia

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

tools

3

Region

INTL

Category

Travel

Authentication

Public API

Self-host with Docker

Open source · AGPL-3.0 · runs on your own server

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Try asking

Example prompts for Trenitalia

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Trenitalia · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

Self-hosted only. Trenitalia refuses requests from datacenter IP addresses, and AnythingMCP Cloud runs in a datacenter, so this connector is not available on AnythingMCP Cloud. It works on an AnythingMCP instance you run yourself on a computer or server with a regular home or office internet connection.

Trenitalia + Microsoft Copilot

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

(none — public API)

Step 1 — Get credentials

This connector wraps the Trenitalia Le Frecce mobile app's internal API (app.lefrecce.it, channel Channels.Mobile.BFF).

Setup: nothing. The endpoints exposed here are the same the Le Frecce iOS app uses for trip discovery.

What it does NOT do: complete bookings. The booking flow requires a logged-in session and the Trenitalia payment hub. Use this connector to find trains and prices; book in the Le Frecce app or trenitalia.com.

…(continued in the in-app connector instructions)

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
  1. Open http://localhost:3000 and register. The first account becomes the admin.
  2. Open the connector store (http://localhost:3000/connectors/store), pick Trenitalia, fill in the credentials it asks for (some connectors need none) and install it.
  3. Under MCP Servers, create a server and assign the Trenitalia connector to it. On the server's page, copy the MCP endpoint (http://localhost:4000/mcp/<server-id>) and generate a key under API keys.

The quickstart listens on localhost only. For an instance that other people or cloud-based AI clients can reach, clone the repository and run ./setup.sh, which sets up a domain, HTTPS and OAuth (deployment guide).

Step 3 — Add the Trenitalia connector to Microsoft Copilot

Copilot Studio connects to MCP servers from Microsoft's cloud, so it cannot reach the localhost endpoint of the quickstart. To use Trenitalia in Microsoft Copilot you need an AnythingMCP instance with a public HTTPS address (see ./setup.sh above) on a connection Trenitalia accepts. In Copilot Studio, open your agent, go to Tools → Add a tool → New tool → Model Context Protocol, paste the instance's MCP endpoint and choose API key with the header X-API-Key. Then publish the agent to the Microsoft 365 and Microsoft Teams channel.

If a public instance is not an option, use a client that runs on your computer instead: Claude Code, Cursor or Gemini CLI reach localhost directly.

Available tools

ToolWhat it does
trenitalia_search_tripsSearch Trenitalia trains between two stations on a date
trenitalia_get_home_alertsGet current service alerts and mobility info from Trenitalia's home feed — strikes, delays, line-wide notices
trenitalia_get_mobility_infoGet general mobility info — strikes (scioperi), planned outages, network status — from Trenitalia's home info feed

FAQ

Why isn't Trenitalia available on AnythingMCP Cloud? Trenitalia refuses requests from datacenter IP addresses. AnythingMCP Cloud runs in a datacenter, so every call would fail. An AnythingMCP instance on a home or office connection usually works.

Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.

What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.

The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.

Next steps

Was this guide helpful?

Your Trenitalia agent is one click away.

Install the connector, paste the key, prompt Microsoft Copilot. Free for 7 days, no credit card.

Related guides

Connectors

Connect Trenitalia to Meta Muse via MCP

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Connectors

Connect Trenitalia to ChatGPT via MCP

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Connectors

Connect Trenitalia to Claude via MCP

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Connectors

Connect Trenitalia to Cursor via MCP

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Connectors

Connect Trenitalia to Gemini CLI via MCP

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.

Connectors

Trenitalia MCP Server: Trains, Prices and Alerts

Search Italian high-speed and regional trains via Trenitalia's Le Frecce mobile API. Find trips by origin/destination/date, read offers and prices, see live home alerts and mobility info. 3 tools, no auth — reverse-engineered from the Le Frecce iOS app.