MCP server for public transport
Give an AI assistant stops, live departures, trip planning and disruptions from the operators' data, as Model Context Protocol tools.
Four tools
| Tool | What it does |
|---|---|
search_stops | Find stops by name (French or English) or around a point. |
next_departures | Next departures from a stop, with realtime where published. |
plan_trip | Itineraries between two stops, names or coordinates. |
get_alerts | Active disruptions by line, by stop or by network. |
They return the same JSON as the REST API, sources included, and their descriptions ask the agent to cite the attribution.
Connect over HTTP
The server speaks MCP over Streamable HTTP at https://dromovia.com/mcp, with your API key in the X-API-Key header. With Claude Code:
claude mcp add --transport http transit https://dromovia.com/mcp --header "X-API-Key: $TRANSIT_API_KEY"
Connect over stdio
For desktop clients that start a local process, run the stdio entry from a checkout of the project; it is a thin client of the REST API:
{
"mcpServers": {
"transit": {
"command": "node",
"args": [
"/absolute/path/to/dromovia/src/mcp/stdio.ts"
],
"env": {
"TRANSIT_API_URL": "https://dromovia.com",
"TRANSIT_API_KEY": "<your key>"
}
}
}
}
What an assistant can then answer
- "When is the next metro from Jean Jaurès in Toulouse?" (
search_stops, thennext_departures) - "How do I get from the airport to Capitole tomorrow at 9?" (
plan_trip) - "Is anything disrupted on line A?" (
get_alerts)
MCP calls count against your plan's limits like any other request.
Related
- /getting-started#mcp — step-by-step setup
- Journey planner API — what plan_trip returns
- Departures API — what next_departures returns