Transport NSW

by danhussey

Not rated
GitHub

About

Integrates with Transport NSW API to provide real-time public transportation data, including nearby stops, service alerts, and disruptions across trains, buses, and ferries throughout New South Wales.

Details

Author
danhussey
Repository
danhussey/transportnsw-mcp
License
MIT License
Categories
AI, Design, Developer Tools, Search, Infrastructure, Knowledge Base, Project Management

- Stop Finder API: Find transport stops by name or coordinates
- Alerts API: Get information about transport alerts and disruptions
- Departure Monitor API: Get real-time departure information for transport stops
- MCP Implementation: Structured as a Model Context Protocol service

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Transport NSW
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Clone this repository
2. Install dependencies using uv (fast Python package manager):

   uv venv
uv sync

3. Create a .env file with your API key:
   OPEN_TRANSPORT_API_KEY=your_api_key_here

4. (Optional) Run the MCP Inspector:
   uv run mcp dev api.py

And visit the server at http://localhost:5173 (port might be different).

MCP Examples coming soon. Standard Python examples below:

find_transport_stops

Find transport stops by name or coordinates. Parameters: stop_name (string, optional), coord (string, optional), radius (integer, optional)

get_transport_alerts

Get information about transport alerts and disruptions. Parameters: date (string, optional), mot_type (integer, optional)

get_departure_monitor

Get real-time departure information for transport stops. Parameters: stop_id (string), time (string, optional), mot_type (integer, optional)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "transport nsw": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

Transport NSW API Client (MCP Implementation)

Tests

A Claude MCP for interacting with the Transport NSW API using direct HTTP requests.

About

This project implements a Model Context Protocol (MCP) service for Transport NSW's API.

Setup

1. Clone this repository
2. Install dependencies using uv (fast Python package manager):

   uv venv
uv sync

3. Create a .env file with your API key:
   OPEN_TRANSPORT_API_KEY=your_api_key_here

4. (Optional) Run the MCP Inspector:
   uv run mcp dev api.py

And visit the server at http://localhost:5173 (port might be different).

Features

- Stop Finder API: Find transport stops by name or coordinates
- Alerts API: Get information about transport alerts and disruptions
- Departure Monitor API: Get real-time departure information for transport stops
- MCP Implementation: Structured as a Model Context Protocol service

Usage Examples

MCP Examples coming soon. Standard Python examples below:

Find Transport Stops

```python
from api import find_transport_stops

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.