SNCF API MCP Server
@Kryzo
SNCF API MCP Server について
This project provides a modular Python wrapper for the SNCF API, with an MCP server interface that integrates seamlessly with Claude Desktop for intelligent journey planning and train information retrieval across France.
基本情報
設定
ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is SNCF API MCP Server?
A modular Python wrapper for the SNCF API that provides an MCP server interface for Claude Desktop, enabling intelligent journey planning and train information retrieval across France.
How to use SNCF API MCP Server?
Clone the repository, install dependencies (pip install -r requirements.txt), obtain an SNCF API key from the Navitia service on the SNCF portal, then configure Claude Desktop by adding the server to its claude_desktop_config.json with the path to sncf_server.py and the API key. Once configured, Claude can invoke MCP tools via natural language prompts.
Key features of SNCF API MCP Server
- Intelligent journey planning between French cities
- Comprehensive station details (transport types, nearby places, coordinates)
- Real-time departure and arrival schedules
- Disruption monitoring across the SNCF network
- Smart station lookup by city, name, or coordinates
- Fallback hardcoded coordinates for major cities
Use cases of SNCF API MCP Server
- Plan a train journey from Paris to Lyon and get departure/arrival times
- Check available transport types at a specific station (e.g., Gare de Lyon)
- View the next five departures from a station in real time
- Monitor current disruptions affecting a route (e.g., Paris to Marseille)
- Find nearby points of interest around a train station
FAQ from SNCF API MCP Server
What API key is required?
You need an SNCF API key obtained from the Navitta service on the SNCF API Portal. The key is a UUID string.
What are the runtime dependencies?
Python 3.6+ and the packages requests, pandas, and mcp. Also requires the train_stations_europe.csv file in the correct location.
Where does station location data come from?
The server uses a CSV database (train_stations_europe.csv) and hardcoded coordinates for major French cities as a fallback when the API search fails.
What should I do if I get "No stations found for city"?
Try a more specific city name. For smaller cities, use the name of a nearby larger city. The system’s hardcoded coordinates for major French cities should work reliably.
How do I fix a "Failed to connect to SNCF API" error?
Check your internet connection, verify the API key is valid and not expired, and try again later as the SNCF API may be experiencing downtime.
「開発者ツール」の他のコンテンツ
test
prysmaticlabsGo implementation of Ethereum proof of stake

Sentry
modelcontextprotocolModel Context Protocol Servers
test
harlancA simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
コメント