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

Local serverstdioPython

What is the 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

The short version

The SNCF MCP Server provides a comprehensive interface to the French National Railway's (SNCF) API services, allowing you to:

  • Intelligent Journey Planning — Plan trips between any cities in France with automatic station selection
  • Comprehensive Station Details — Get detailed information about stations including:
  • Available transport types (trains, buses, trams)
  • Nearby places and points of interest
  • Coordinates and accessibility information
  • Real-time Schedules — Access up-to-date departure and arrival information

What it needs from you

  • Python 3.6+ - pip (Python package manager)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
plan_journey_by_city_names
get_station_details
get_station_schedule
check_disruptionsCheck for current disruptions in the SNCF transport network.

How to install the SNCF API MCP Server

{
  "mcpServers": {
    "sncf": {
      "command": "uvx",
      "args": ["requests"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.6+ - pip (Python package manager)

Example prompts to try

  • “Use SNCF API to Prerequisites.”
  • “Use SNCF API to plan journey by city names.”
  • “Use SNCF API to get station details.”

Frequently asked questions

You need an SNCF API key obtained from the Navitta service on the SNCF API Portal. The key is a UUID string.