Italia Rail MCP Server
This is an MCP (Model Context Protocol) server for Italia Rail.
Available Tools
- search_stations - Search for train stations by city or station name
- validate_stations - Validate a departure/arrival station pair
- search_journeys - Search for available train journeys
- get_journey_segments - Get detailed segment information for a journey
- validate_journey - Validate a selected journey with fares
- evaluate_journey - Evaluate journey with passenger details
- add_to_cart - Add the journey to the shopping cart
- fetch_configuration - Get Italia Rail configuration
Connection
Connect to this MCP server using Streamable HTTP at: http://localhost:3001/api/mcp
Cursor ~/.cursor/mcp.json
Local: http://localhost:3001/api/mcp. After deploying to Vercel: https://<your-app>.vercel.app/api/mcp
{
"italia-rail": {
"url": "http://localhost:3001/api/mcp"
}
}For Cursor/Claude Desktop (via mcp-remote)
{
"italia-rail": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:3001/api/mcp"
]
}
}