NSW Transport
Sydney and NSW trip planning, live departures, service alerts and Park&Ride availability
NSW Transport is an open-source MCP server for maps and travel. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.3.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add nsw-transport --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- uvx mcp-au-nswAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"nsw-transport": {
"command": "uvx",
"args": [
"mcp-au-nsw"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add nsw-transport --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- uvx mcp-au-nswOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.nsw-transport]
command = "uvx"
args = ["mcp-au-nsw"]
env = { NSW_TRANSPORT_API_KEY = "<NSW_TRANSPORT_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"nsw-transport": {
"command": "uvx",
"args": [
"mcp-au-nsw"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
NSW_TRANSPORT_API_KEYTfNSW Open Data Hub API token: https://opendata.transport.nsw.gov.au (profile -> API Tokens)Required
About NSW Transport
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.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
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_departuresName suggests: reads
- Next departures from a stop
- get_service_alertsName suggests: reads
- Current disruptions and trackwork
- find_stopsName suggests: reads
- Search stations, stops and wharves
- get_car_park_availabilityName suggests: reads
- Live Park&Ride free spaces
- get_car_park_historyName suggests: reads
- Hourly Park&Ride occupancy for a day
What it does
- 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
Pricing
Open source
Free TfNSW Open Data Hub API token required
NSW Transport 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.