TfNSW Realtime Alerts 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 Realtime Alerts MCP Servershow me current train disruptions in Sydney"
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 Realtime Alerts MCP Server
A Model Context Protocol server for Transport for NSW's (TfNSW) Realtime Alerts API. This server provides tools to access and interact with real-time transport alerts and information via Large Language Models.
Overview
This TypeScript-based MCP server implements integration with Transport for NSW's Realtime Alerts system. It enables AI assistants to access up-to-date information about transport disruptions, planned works, and other important alerts across the NSW transport network.
Related MCP server: KMB Bus MCP Server
Features
Resources
List and access transport alerts via
nsw-transport://URIsFilter alerts by transport mode (buses, trains, ferries, etc.)
Plain text format for easy consumption by AI assistants
Tools
get-transport-alerts- Retrieve current transport alertsFilter by transport mode
Returns formatted alert information including affected routes, time periods, and impact details
Prompts
transport-disruption-summary- Generate a summary of current transport alertsIncludes relevant alert details as embedded resources
Returns structured prompt for LLM summarisation of major disruptions
Transport Modes
The following transport modes are supported:
all- All transport modesbuses- Sydney Metro and Outer Metro Bus servicesferries- Sydney Ferries and Newcastle Transport ferrieslightrail- Light Rail servicesmetro- Sydney Metronswtrains- NSW Trains regional trains and coachesregionbuses- Regional Bus servicessydneytrains- Sydney Trains suburban and intercity network
Authentication
This server requires authentication with the TfNSW Open Data API. You will need to register for an API key at the TfNSW Open Data Hub.
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"tfnsw-realtime-alerts": {
"command": "npx",
"args": [
"-y",
"tfnsw-realtime-alerts-mcp-server"
],
"env": {
"NSW_TRANSPORT_API_KEY": "your_api_key_here"
}
}
}
}Replace "your_api_key_here" with your TfNSW API key from the TfNSW Open Data Hub.
Development
Configure your API key as an environment variable in your .env file:
NSW_TRANSPORT_API_KEY="your_api_key_here"Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchDebugging
You can use the MCP Inspector for debugging, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
The Ferryhopper MCP server is a connector for LLMs and AI Agents in maritime travel that exposes ferry routes, schedules, and booking options. It enables AI assistants to search ports and connections across 33 countries and 190+ ferry operators, provide real-time ferry itineraries with indicative prices, and assist users with planning island-hopping or multi-leg journeys by processing natural language queries about ferry times, passenger counts, and travel durations.
Provide real-time transportation data including bus arrivals, train service alerts, carpark availa…
The Mobile Text Alerts SMS MCP server enables your AI to send SMS messages & manage contacts
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceThis server facilitates the invocation of AI models from providers like Anthropic, OpenAI, and Groq, enabling users to manage and configure large language model interactions seamlessly.236 PyPI13MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides real-time access to Hong Kong's KMB and Long Win Bus route information and arrival times, enabling Language Models to answer user questions about bus routes, stops, and ETAs.54Apache 2.0
- AlicenseBqualityDmaintenanceMCP server that integrates with the transport12 API to provide tools for searching stops, routes, arrivals, and vehicle forecasts, enabling natural language interaction with public transport data.174 npmMIT
- AlicenseAqualityBmaintenanceAn MCP server exposing Greater Helsinki public transport data from Digitransit, enabling LLM hosts to answer live transit queries, plan journeys, and fetch stop departures via natural language.36 npmMIT