mcp-sncf-navitia
Allows querying French railway data via the Navitia API, including searching for stations, planning journeys, and getting departure boards.
mcp-sncf-navitia
MCP server for French railway queries via the Navitia API (SNCF coverage). Search for French stations, plan journeys, and get departure boards — powered by SNCF data.
Status: Ready
Prerequisites
Related MCP server: swiss-rail-mcp
Install
git clone git@github.com:McCullonas/mcp-sncf-navitia.git
cd mcp-sncf-navitia
bun installConfiguration
Variable | Required | Description |
| Yes | Your Navitia API token |
Register for free at navitia.io. The free tier provides access to SNCF data across France.
Available Tools
sncf_search_places
Search for French railway stations and places by name.
Parameters:
query— Station or place name (e.g."Paris Gare du Nord","Lyon Part-Dieu")count(optional) — Max results (default 5)
Returns: place name, ID, type, and coordinates.
sncf_get_journeys
Get train journey options between two locations.
Parameters:
from— Origin place ID (fromsncf_search_places)to— Destination place IDdatetime(optional) — ISO 8601 departure datetime (default: now)count(optional) — Number of journey options (default 3)
Returns: routes, legs, transfers, duration, walking segments, departure/arrival times.
sncf_get_departures
Get upcoming departures from a station.
Parameters:
stopId— Stop area ID (fromsncf_search_places)datetime(optional) — ISO 8601 datetime (default: now)count(optional) — Number of departures (default 10)
Returns: line info, direction, departure time, network info.
MCP Client Configuration
Add to your settings.json:
{
"mcpServers": {
"sncf-navitia": {
"command": "bun",
"args": ["run", "/path/to/mcp-sncf-navitia/src/index.ts"],
"env": {
"NAVITIA_API_KEY": "your-key-here"
}
}
}
}Development
NAVITIA_API_KEY=your-key bun run src/index.ts
bun build src/index.ts --outdir dist --target nodeData Source
Queries the Navitia API with SNCF coverage, which includes intercity, regional (TER), and high-speed (TGV/Inoui) services across France. Navitia is operated by Kisio Digital, an SNCF subsidiary.
Licence
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/McCullonas/mcp-sncf-navitia'
If you have feedback or need assistance with the MCP directory API, please join our Discord server