# Public Transport

Public Transport connects your assistant to live European transit data, covering departures, routes, and station lookup across several countries.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 3245 installs · ★ 9 repo stars
- Author: mirodn
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mirodn/mcp-server-public-transport
- Updated: 2026-10-27
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/public-transport

## What it 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.

## Requirements
- Remote server: `https://mcp-server-public-transport--mirodn.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp-server-public-transport https://mcp-server-public-transport--mirodn.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add public-transport --url https://mcp-server-public-transport--mirodn.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "public-transport": {
            "url": "https://mcp-server-public-transport--mirodn.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "public-transport": {
            "type": "http",
            "url": "https://mcp-server-public-transport--mirodn.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http public-transport https://mcp-server-public-transport--mirodn.run.tools
```

## When to use it
- 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
- 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.

## Similar
- [rozklad-mcp](https://affpapa.org/en/nevibecode/mcp/rozklad-mcp.md) — MCP server · ★ 37 repo stars
- [public-graphql-api-design](https://affpapa.org/en/nevibecode/skills/public-graphql-api-design.md) — skill · 10100 installs
- [Malaysia Transit MCP](https://affpapa.org/en/nevibecode/mcp/malaysia-transit-mcp.md) — MCP server · 7889 installs
- [PakBus](https://affpapa.org/en/nevibecode/mcp/pakbus.md) — MCP server
- [On va où ? Routing API](https://affpapa.org/en/nevibecode/mcp/on-va-ou-routing-api.md) — MCP server
- [mcp-transport-guide](https://affpapa.org/en/nevibecode/skills/mcp-transport-guide.md) — skill · 1 install

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
