TfNSW Realtime Alerts MCP Server

A Model Context Protocol (MCP) server for TfNSW's realtime alerts API

Local serverstdioTypeScript

What is the TfNSW Realtime Alerts MCP Server?

A Model Context Protocol (MCP) server for TfNSW's realtime alerts API

What the server does

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.

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get-transport-alertsRetrieve current transport alerts

How to install the TfNSW Realtime Alerts MCP Server

{
  "mcpServers": {
    "tfnsw-realtime-alerts": {
      "command": "npx",
      "args": [
        "-y",
        "tfnsw-realtime-alerts-mcp-server"
      ],
      "env": {
        "NSW_TRANSPORT_API_KEY": "your_api_key_here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
NSW_TRANSPORT_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use TfNSW Realtime Alerts to get-transport-alerts.”
  • “Use TfNSW Realtime Alerts to Resources.”
  • “Use TfNSW Realtime Alerts to Tools.”

Frequently asked questions

You must register for a free API key at the TfNSW Open Data Hub and set it as the `NSW_TRANSPORT_API_KEY` environment variable.