# NSW Transport

> NSW Transport is an open-source MCP server for maps and travel. Sydney and NSW trip planning, live departures, service alerts and Park&Ride availability. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/fisher98kim/mcp-au-nsw
- **MCP Registry name:** io.github.fisher98kim/nsw-transport
- **Categories:** [maps and travel](https://ai-powered.com/categories/maps-and-travel)
- **Listing updated:** 2026-11-23

## About

This is the transport server from the mcp-au-nsw package. It draws on the Transport for NSW Open Data Hub, so you need a free API token created under your Hub profile, the same one the roads server uses. It runs locally over stdio with uvx and covers trains, metro, buses, light rail and ferries.

Six tools handle journeys, departures, disruption notices, stop search and car parks. Trip plans include legs, platforms, real-time delays and alerts, and can work backwards from an arrive-by time. Park&Ride tools report live free spaces and how full a car park was across a past day, including when it filled. Places can be named, given as stop IDs or as coordinates, and ambiguous names return candidates rather than a guess, such as the two UNSW light rail stops.

Calls fetch live data with no caching and times use Sydney local time.

## Features

- **Trip planning:** A-to-B journeys with platforms, delays and alerts.
- **Live departures:** Next services from a station or stop.
- **Service alerts:** Disruptions and trackwork by mode, line or stop.
- **Stop search:** Find stations, stops and wharves by name.
- **Park&Ride availability:** Live free spaces by car park.
- **Occupancy history:** Hourly occupancy and when a car park filled.

## Good for

- Plan a trip to arrive by a set time
- Check whether the T1 line has problems
- Find the next train from a station
- See if a Park&Ride has spaces left

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add nsw-transport --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- uvx mcp-au-nsw
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add nsw-transport --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- uvx mcp-au-nsw
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.nsw-transport]
command = "uvx"
args = ["mcp-au-nsw"]
env = { NSW_TRANSPORT_API_KEY = "<NSW_TRANSPORT_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' nsw-transport uvx -- mcp-au-nsw

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "nsw-transport": {
      "command": "uvx",
      "args": [
        "mcp-au-nsw"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 of 6 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `plan_trip`: Plan an A-to-B journey
- `get_departures` (name suggests: reads): Next departures from a stop
- `get_service_alerts` (name suggests: reads): Current disruptions and trackwork
- `find_stops` (name suggests: reads): Search stations, stops and wharves
- `get_car_park_availability` (name suggests: reads): Live Park&Ride free spaces
- `get_car_park_history` (name suggests: reads): Hourly Park&Ride occupancy for a day

## FAQ

### What key is needed?

A free Transport for NSW Open Data Hub API token.

### Which modes are covered?

Trains, metro, buses, light rail and ferries.

### Can NSW Transport show past car park use?

Yes, get_car_park_history gives hourly occupancy for a day.

### How is NSW Transport run?

With uvx mcp-au-nsw transport.

### Is NSW Transport free?

Yes. NSW Transport is open source, so you can use and self-host it for free.

### How do I add NSW Transport to Claude Code?

Run this command in your terminal: claude mcp add nsw-transport --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- uvx mcp-au-nsw

### What are the best alternatives to NSW Transport?

The closest alternatives to NSW Transport are Atli, CAD2GIS, Japan Weather Warnings MCP, Google Maps Reviews Scraper — New Review Alerts and Supersurf.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Atli](https://ai-powered.com/mcp/atli): Atli is a free MCP server for maps and travel.
- [CAD2GIS](https://ai-powered.com/mcp/cad2gis): CAD2GIS is an open-source MCP server for engineering simulation.
- [Japan Weather Warnings MCP](https://ai-powered.com/mcp/japan-weather-warnings-mcp): Japan Weather Warnings MCP is a freemium MCP server for maps and travel.
- [Google Maps Reviews Scraper — New Review Alerts](https://ai-powered.com/mcp/google-maps-reviews-scraper-new-review-alerts): Google Maps Reviews Scraper — New Review Alerts is a paid MCP server for web search and scraping.
- [Supersurf](https://ai-powered.com/mcp/supersurf): Supersurf is an MCP server for maps and travel.
- [Flight Price Watch — Google Flights Fare Alerts](https://ai-powered.com/mcp/flight-price-watch-google-flights-fare-alerts): Flight Price Watch — Google Flights Fare Alerts is an MCP server for maps and travel.
- [Map Maker](https://ai-powered.com/mcp/map-maker): Map Maker is an MCP server for design and media.
- [GoThere Japan Transit & Travel](https://ai-powered.com/mcp/gothere-japan-transit-and-travel): GoThere Japan Transit & Travel is an MCP server for maps and travel.

---
Source: https://ai-powered.com/mcp/nsw-transport
