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.
Overview
The SNCF API MCP Server is a modular Python wrapper for the SNCF API, designed to facilitate intelligent journey planning and train information retrieval across France.
To use the SNCF API MCP Server, clone the repository, install the required dependencies, and configure it with your SNCF API key. Then, integrate it with Claude Desktop for seamless interaction.
- Intelligent journey planning between cities in France. - Comprehensive details about train stations, including transport options and nearby places. - Real-time schedules for departures and arrivals. - Monitoring of service disruptions. - Smart station finding by city name or coordinates.
- Planning train journeys between major cities in France.
- Retrieving detailed information about train stations.
- Checking for current service disruptions affecting train travel.
Add to your AI client
Use these steps to connect SNCF API MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-sncf-kryzo": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sncf-kryzo"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-sncf-kryzo": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sncf-kryzo"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-sncf-kryzo": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sncf-kryzo"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-sncf-kryzo": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sncf-kryzo"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-sncf-kryzo": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sncf-kryzo"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-sncf-kryzo": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sncf-kryzo"
]
}
}
}