TfNSW Trip Planner 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., "@TfNSW Trip Planner MCP Server When's the next train from Central to Parramatta?"
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.
TfNSW Trip Planner MCP Server
This project lets you ask Claude (Anthropic's AI assistant) about real-time NSW public transport — things like trip planning, live departures, and service alerts — by connecting it to the Transport for NSW Open Data APIs.
It works as an MCP server, which is a way to give Claude access to external tools and data sources.
What can it do?
Once set up, you can ask Claude things like:
"When is the next train from Central to Parramatta?"
"Are there any service alerts on the T1 line?"
"What buses leave from Town Hall in the next 30 minutes?"
"Plan a trip from Bondi Junction to Circular Quay"
"What stops are near me?" (using coordinates)
Behind the scenes, Claude uses these tools:
Tool | What it does |
| Searches for stops, stations, and places by name |
| Plans a journey between two locations |
| Shows the live departure board for a stop |
| Shows current service disruptions and alerts |
| Finds stops near a geographic coordinate |
Related MCP server: TfNSW Trip Planner MCP Server
Prerequisites
Node.js (version 18 or higher) — download here if you don't have it. To check, run
node --versionin your terminal.Claude Desktop or Claude Code — you'll connect the server to one of these.
Setup
Get a free TfNSW API key
You need an API key to access Transport for NSW data. It's free.
Click Sign up (top-right) and create an account
Once logged in, click your username in the top-right header
Click the API tokens tab
Copy your API key — you'll use it below
Add to Claude
Choose one of the options below depending on which Claude app you use. Replace your_key with the API key you copied above.
Option A: Claude Code (terminal)
claude mcp add tfnsw-tripplanner -s user -e TFNSW_API_KEY=your_key -- npx tfnsw-tripplanner-mcpOption B: Claude Desktop (app)
Open the Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following (replace your_key with your actual API key):
{
"mcpServers": {
"tfnsw-tripplanner": {
"command": "npx",
"args": ["tfnsw-tripplanner-mcp"],
"env": {
"TFNSW_API_KEY": "your_key"
}
}
}
}Restart Claude Desktop after saving the file.
That's it — no need to clone or build anything. npx will download and run the server automatically.
Available Tools
5 toolstfnsw_coord_requestA
Find public transport stops and stations near a geographic coordinate in NSW. Returns nearby locations with names, distances, and available transport modes.
Inputs: latitude (required), longitude (required), type, radius.
tfnsw_departuresA
Get real-time departure board for a specific public transport stop in NSW. Shows upcoming services with line numbers, destinations, and real-time delays. Use tfnsw_stop_finder first to get the stop ID.
Inputs: stopId (required), date, time, limit.
tfnsw_service_alertsA
Get current service alerts and disruptions for NSW public transport. Shows planned works, delays, cancellations, and other disruptions. Can filter by date or stop.
Inputs: date, stopId.
tfnsw_stop_finderA
Search for public transport stops, stations, platforms, or points of interest in NSW by name or keyword. Returns matching locations with IDs (needed for other tools), coordinates, and available transport modes.
Inputs: query (required), maxResults.
tfnsw_tripA
Plan a public transport journey between two locations in NSW. Returns trip options with detailed legs including real-time departure/arrival times, line numbers, transfers, and walking directions.
Inputs: origin (required), destination (required), date, time, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The five tools have mostly distinct purposes: trip planning, departure boards, service alerts, and two location lookup modes. The main overlap is between tfnsw_stop_finder and tfnsw_coord_request, but their descriptions clearly distinguish name/keyword search from coordinate-based nearby search.
All tools use a consistent tfnsw_ prefix and snake_case, making the set predictable. However, the suffixes mix noun phrases and action-like forms (tfnsw_trip, tfnsw_departures, tfnsw_coord_request), so the pattern is not as uniform as verb_noun.
Five tools is well-scoped for a transit trip-planning server. Each tool covers a distinct transit need without excessive surface area.
Core workflows are covered: finding stops by name or coordinate, planning trips, checking real-time departures, and viewing service alerts. Minor gaps remain around fares, accessibility details, or deeper trip metadata, but the essential lifecycle is present.
Maintenance
Related MCP Connectors
tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).
Teamfight Tactics data & AI coaching for Claude and ChatGPT — 19 tools, built-in Riot key.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language queries for Porto Alegre's public transport system, including route planning, stop search, and route information via Claude Desktop or any MCP-compatible client.MIT
- AlicenseAqualityCmaintenanceEnables LLM clients to search stops, plan journeys, check live departures, service alerts, nearby locations, and vehicle positions using Transport for NSW open data, with per-request API key authentication.101MIT
- FlicenseBqualityCmaintenanceEnables Claude AI to access real-time Transport for London data for line status, journey planning, arrivals, bus routes, fares, and disruptions through natural language.13-
- AlicenseNot gradedqualityCmaintenanceEnables journey planning, live departures, service alerts, and commuter car-park occupancy for Sydney and New South Wales across trains, metro, buses, ferries, and light rail, accessible via natural language queries.67 npmMIT