The SNCF API MCP Server provides a comprehensive interface to the French National Railway's (SNCF) API services, enabling Claude to plan train journeys, retrieve station information, check schedules, and monitor service disruptions across France. Created by Christian Delage, it combines a modular Python wrapper for the SNCF API with an intelligent station-finding system that uses both API queries and a CSV database of European train stations with coordinates. The implementation includes fallback mechanisms with hardcoded coordinates for major French cities, ensuring reliability even when API searches fail, and is particularly valuable for travel planning, transportation research, and real-time transit monitoring without leaving the conversation interface.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Plan a journey between two cities in France. Parameters: from_city (string), to_city (string), datetime (optional string), datetime_represents (optional string: 'departure' or 'arrival', default: 'departure'), include_station_details (boolean)
Get comprehensive details about train stations in a city. Parameters: city_name (string), station_name (optional string), station_id (optional string), include_transport_types (boolean), include_nearby_places (boolean), nearby_distance (optional integer), nearby_count (optional integer)
Get departure and arrival schedules for a station. Parameters: city_name (string), station_name (optional string), station_id (optional string), count (optional integer), datetime (optional string), duration (optional integer), data_freshness (optional string: 'realtime' or 'base_schedule')
Check for current disruptions in the SNCF transport network. Parameters: coverage (optional string, default: 'sncf'), count (optional integer), station_id (optional string), line_id (optional string), since (optional string), until (optional string), fetch_train_details (boolean)