SNCF API MCP Server
@Kryzo
About 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.
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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.
More Developer Tools MCP servers
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
test
cloudwegoThe ultimate LLM/AI application development framework in Go.
Deepwiki MCP Server
regenrek📖 MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors
test
harlancA simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Comments