Public Transport — Claude Code MCP server: what it does
Public Transport connects your assistant to live European transit data, covering departures, routes, and station lookup across several countries.
MIT 3,245 installs ★ 9 updated 2026-10-27
claude mcp add --transport http mcp-server-public-transport https://mcp-server-public-transport--mirodn.run.toolsWhat Public Transport does
The server links AI clients with public transit APIs in the United Kingdom, Switzerland, Belgium, Norway, Berlin/Brandenburg, and Portugal. It handles station searches, spots stops near specific coordinates, and calculates transit connections. Departure boards and journey results return a unified compact JSON structure with delay details rather than bulky upstream payloads.
Queries for British train timetables require UK_TRANSPORT_APP_ID and UK_TRANSPORT_API_KEY. Other integrations like Transitous for Lisbon and Porto run without credentials under fair-use terms. If you need untouched provider payloads, pass raw: true to the tool call.
What it helps with
- look up live train departure boards with delay information
- plan transit trips with walking legs and connections
- find nearby transit stations using coordinates
- retrieve vehicle details for Belgian transit
Example prompts for the agent
- Check departure times and delays for trains leaving Zürich HB.
- Plan a journey from Brussels Central to Ghent departing around 14:00.
- Find transit stops near latitude 59.91 and longitude 10.75 in Oslo.
How to install Public Transport
Platform CLI: remote server
claude mcp add --transport http mcp-server-public-transport https://mcp-server-public-transport--mirodn.run.toolsPlatform CLI: remote server
codex mcp add public-transport --url https://mcp-server-public-transport--mirodn.run.toolsConfig file
{
"mcpServers": {
"public-transport": {
"url": "https://mcp-server-public-transport--mirodn.run.tools"
}
}
}Config file
{
"servers": {
"public-transport": {
"type": "http",
"url": "https://mcp-server-public-transport--mirodn.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http public-transport https://mcp-server-public-transport--mirodn.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Public Transport
How to install Public Transport in Claude Code?
Run claude mcp add --transport http public-transport https://mcp-server-public-transport--mirodn.run.tools in your terminal.
What does the Public Transport MCP server do?
It gives your assistant access to live departure boards, journey planning, and nearby station searches across European public transit networks.
Are API keys required to use this MCP server?
Only UK transport lookups require UK_TRANSPORT_APP_ID and UK_TRANSPORT_API_KEY, while services for Switzerland, Belgium, Norway, Berlin, and Portugal operate without credentials.