NSW Fuel MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NSW Fuel MCP ServerWhere's the cheapest diesel near UNSW?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-au-nsw
MCP servers for NSW Government APIs. Ask Claude (or any MCP client) things like "How do I get from UNSW to Circular Quay right now?", "Any crashes on the M4?", "Is electrician licence 241132C current?" or "Where's the cheapest diesel near Parramatta?" and get live answers.
Server | What it covers | Data source | Key |
| Trip planning, real-time departures, service alerts (trains, metro, buses, light rail, ferries), Park&Ride car parks | TfNSW key | |
| Live traffic hazards (crashes, roadworks, floods, fires, events) and toll costs | TfNSW key (same one) | |
| Licence checks on 15 NSW public registers (tradespeople, property agents, security, liquor, pharmacies, WHS licences, ...) | One API.NSW key per register | |
| Live fuel prices for NSW & TAS | API.NSW key |
Each server is a separate subcommand, so you only add the ones you need.
Quick start
1. Get API keys (free)
TfNSW Open Data Hub (for transport and roads; one key covers both)
Register: https://opendata.transport.nsw.gov.au/data/user/register
Log in: https://opendata.transport.nsw.gov.au/data/user/login
Click your profile icon → API Tokens, enter a name and click Create API Token.
Copy the token right away; it can't be viewed again. This is your
NSW_TRANSPORT_API_KEY.
Official guide: https://opendata.transport.nsw.gov.au/developers/userguide
API.NSW (for fuel and licences)
Register: https://api.nsw.gov.au/Account/Register (log in: https://api.nsw.gov.au/Account/Login)
Go to My Apps → Add new app: https://api.nsw.gov.au/DeveloperApp/AppCreate and attach one API product. Each app can have only one API product, so create one app per API you want (e.g. one for the Fuel API, one for the Trades register).
Copy each app's API Key and API Secret into the matching environment variables (
NSW_FUEL_API_KEY/NSW_FUEL_API_SECRET,NSW_TRADES_API_KEY/NSW_TRADES_API_SECRET, ...; see thelicencessection for the full list). The free plan allows 2,500 calls per month per app.
2. Install uv (if you don't have it)
curl -LsSf https://astral.sh/uv/install.sh | sh3. Add the servers to your MCP client
Claude Code
claude mcp add nsw-transport -e NSW_TRANSPORT_API_KEY=your-tfnsw-key -- uvx mcp-au-nsw transport
claude mcp add nsw-roads -e NSW_TRANSPORT_API_KEY=your-tfnsw-key -- uvx mcp-au-nsw roads
claude mcp add nsw-fuel -e NSW_FUEL_API_KEY=your-key -e NSW_FUEL_API_SECRET=your-secret -- uvx mcp-au-nsw fuel
claude mcp add nsw-licences -e NSW_TRADES_API_KEY=your-key -e NSW_TRADES_API_SECRET=your-secret -- uvx mcp-au-nsw licencesFor licences, pass the key pair of every register you subscribed to; registers without keys are simply unavailable.
Claude Desktop / Cursor / other clients: add the servers you want to the MCP config file (claude_desktop_config.json, .cursor/mcp.json, etc.):
{
"mcpServers": {
"nsw-transport": {
"command": "uvx",
"args": ["mcp-au-nsw", "transport"],
"env": { "NSW_TRANSPORT_API_KEY": "your-tfnsw-key" }
},
"nsw-roads": {
"command": "uvx",
"args": ["mcp-au-nsw", "roads"],
"env": { "NSW_TRANSPORT_API_KEY": "your-tfnsw-key" }
},
"nsw-fuel": {
"command": "uvx",
"args": ["mcp-au-nsw", "fuel"],
"env": { "NSW_FUEL_API_KEY": "your-key", "NSW_FUEL_API_SECRET": "your-secret" }
},
"nsw-licences": {
"command": "uvx",
"args": ["mcp-au-nsw", "licences"],
"env": {
"NSW_TRADES_API_KEY": "your-key", "NSW_TRADES_API_SECRET": "your-secret",
"NSW_PROPERTY_API_KEY": "your-key", "NSW_PROPERTY_API_SECRET": "your-secret"
}
}
}
}uvx caches the version it first downloads. To pick up a new release, use uvx mcp-au-nsw@latest ... or run uv cache clean mcp-au-nsw.
Related MCP server: gasolineras-mcp
How the servers behave
Places by name. Tools that take a place accept names ("Town Hall", "17 High St Kensington", "Sydney Opera House"), stop IDs, or
lat,lng.No guessing. If a name matches several places about equally well (e.g. "UNSW" has two light rail stops, "Sydney Airport" has domestic and international stations), the tool returns the candidates instead of picking one, so the assistant can ask you.
Live data, no caching. Every call fetches fresh data. Responses include stable IDs (stop IDs, station codes) so you can build your own lookups for analysis.
Sydney local time. All times are
YYYY-MM-DD HH:MMin Sydney time.
transport server
Tool | What it does |
| A-to-B journeys with legs, platforms, real-time delays and alerts. Supports arrive-by times and limiting modes |
| Next departures from a station or stop, with real-time delays and platforms |
| Current disruptions and trackwork, filtered by mode, line ( |
| Search stations, stops and wharves by name; returns stop IDs and modes |
| Live free spaces at Transport Park&Ride car parks, by name or distance from a place |
| How full a Park&Ride car park was through a given day: hourly occupancy, peak, and when it filled up |
Example prompts:
"How do I get from UNSW to Circular Quay right now?"
"I need to be at Manly Wharf by 6pm. When should I leave Martin Place?"
"When's the next train from Town Hall?"
"Any problems on the T1 today?"
"Are there any spaces left at the Tallawong Park&Ride?"
"What time did the Tallawong P1 car park fill up yesterday?"
roads server
Tool | What it does |
| Crashes, breakdowns, roadworks, floods, fires, alpine conditions and major events. Filter by area/road name or distance from a place |
| Toll cost (AUD) and motorways used between two places, compared with the quickest toll-free route |
Example prompts:
"Anything happening on the M4 right now?"
"Any roadworks or events near Parramatta this weekend?"
"How much are the tolls from Parramatta to Sydney International Airport, and how much time do they save?"
Toll amounts are estimates from Transport for NSW and may differ from what is actually charged.
licences server
Checks licences on NSW public registers. All registers work the same way: look up a licence number, search by person or business name, and get the full public record.
Tool | What it does |
| Check a licence number: status (Current/Expired/...), expiry, licence type and holder |
| Find licences by person or business name (partial names work), current ones first |
| Full record: licence classes (what work it covers), conditions, history, premises, associated people and licences, and compliance actions (disciplinary actions, suspensions, prosecutions, public warnings, insurance claims) |
| Which registers exist, what they cover, and which are configured |
Register ( | Covers | Environment variables | Subscribe |
| Building contractors and tradespeople |
| |
| Real estate agents, property and strata managers |
| |
| Security guards and businesses |
| |
| Liquor licences and premises |
| |
| Motor dealers, repairers, recyclers |
| |
| Conveyancers |
| |
| Trade promotion lotteries and games of chance |
| |
| Owner builder permits |
| |
| Home building compensation certificates |
| |
| Design and building practitioners, engineers |
| |
| Asbestos removal and demolition licences |
| |
| High risk work licences (forklifts, cranes, ...) |
| |
| Construction induction and traffic control cards |
| |
| Registered training organisations |
| |
| Pharmacy premises and financial interest holders |
|
NSW_X_API_* means NSW_X_API_KEY and NSW_X_API_SECRET.
Example prompts:
"Is electrician licence 241132C current, and does it cover electrical work?"
"Check whether my builder, Smith Constructions, holds a current licence and has any disciplinary actions."
"Is this real estate agent licensed?"
Records come straight from the public registers and can include the names, roles and addresses of licence holders and associated people.
fuel server
Tool | What it does | API calls |
| Cheapest (or nearest) stations for a fuel type around a suburb, postcode or coordinates | 1 (2 with a suburb/postcode) |
| All current prices at one station | 1 |
| Find stations by name, brand, suburb or postcode | 1 |
| Fuel type codes (U91, E10, P98, DL, ...) | 1 |
Prices are in cents per litre.
Example prompts:
"Where's the cheapest diesel near UNSW?"
"What are the prices at BP Redfern right now?"
Development
git clone https://github.com/fisher98kim/mcp-au-nsw
cd mcp-au-nsw
uv sync
uv run pytest
# run a server locally with keys from .env
uv run --env-file .env mcp-au-nsw transportTo try local changes in Claude Code:
claude mcp add nsw-transport-dev -e NSW_TRANSPORT_API_KEY=... \
-- uv run --directory /path/to/mcp-au-nsw mcp-au-nsw transportReleasing
Bump
versioninpyproject.tomland in everyregistry/*.json(a test checks they match).Create a GitHub Release tagged
v<version>. The workflow publishes to PyPI, then updates the MCP Registry entries (one per server).
License
MIT. Not affiliated with or endorsed by the NSW Government or Transport for NSW. Data is provided by API.NSW and the TfNSW Open Data Hub under their own terms of use.
This server cannot be deployed
Maintenance
Related MCP Connectors
Gas and fuel prices by station and area, as structured data via a hosted MCP server.
Live official fuel station prices for France, Spain, Italy and Western Australia in one schema.
Australian Bureau of Statistics (ABS) Data API MCP.
Transport for NSW MCP — journey planning, live departures, service alerts
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP service for interacting with Transport NSW's API that enables users to find transport stops around locations and retrieve information about transport alerts and disruptions.3MIT
- AlicenseAqualityBmaintenanceProvides real-time fuel prices at gas stations in Spain using the government's public API. Enables users to find the cheapest fuel in a municipality or list stations sorted by price.2MIT
- AlicenseAqualityCmaintenanceMCP server for UK fuel prices, enabling queries for cheapest stations, nearby forecourts, and area price summaries using official government open data.441MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to look up official Brazilian fuel station information from a hosted service, paying per query with prepaid credits, across any MCP-compatible client.MIT