Skip to main content

Hong Kong transportation MCP Server providing transportation data tools

Project description

Hong Kong transportation Data MCP Server

GitHub Repository License: MIT

This is an MCP server that provides access to transportation related data in Hong Kong through a FastMCP interface.

Features

Passenger Traffic Statistics

  • Get daily passenger traffic statistics at Hong Kong control points. Filter data by date ranges. Breakdown statistics by visitor types (Hong Kong Residents, Mainland Visitors, Other Visitors)

Real time Arrival Data of Kowloon Motor Bus and Long Win Bus Services

  • Get all bus routes of Kowloon Motor Bus (KMB) and Long Win Bus Services. Filter by language (English, Traditional Chinese, Simplified Chinese)

Land Boundary Control Points Waiting Times

  • Fetch current waiting times at land boundary control points in Hong Kong. Filter by language (English, Traditional Chinese, Simplified Chinese)

Data Source

  • Passenger traffic data from Hong Kong Immigration Department
  • Bus route data from Kowloon Motor Bus and Long Win Bus Services

Examples

  • How many hong kong arrival yesterday through high speed railway.
  • Get all KMB/LWB bus routes in Traditional Chinese.
  • What are the current waiting times at Hong Kong land boundary control points?

Setup

  1. Clone this repository
  2. Install Python dependencies:
    pip install -r requirements.txt
    
  3. Run the server:
    python server.py
    

Running Options

  • Default stdio mode: python server.py
  • SSE mode (port 8000): python server.py --sse

Cline Integration

To connect this MCP server to Cline using stdio:

  1. Add this configuration to your Cline MCP settings (cline_mcp_settings.json):
{
  "hk-transportation": {
    "disabled": false,
    "timeout": 3,
    "type": "stdio",
    "command": "uvx",
    "args": [
      "hkopenai.hk-transportation-mcp-server"
    ]
  }
}

Testing

Tests are available in the tests/ directory. Run with:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_hk_transportation_mcp_server-0.2.9.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_hk_transportation_mcp_server-0.2.9.tar.gz
Algorithm Hash digest
SHA256 a03573a292e187a56da9b29eef0d1246ae2ef9e5786f786bf143ee3f1cf1f21e
MD5 a59b72c8235970c10247a83e5d153d99
BLAKE2b-256 7699c9704504d8631e71bc6c2cd60e12c610253db78d046698cfceba2dc5f2b8

See more details on using hashes here.

File details

Details for the file iflow_mcp_hk_transportation_mcp_server-0.2.9-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_hk_transportation_mcp_server-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9b019e8b5c5d4951545d2f77633c8aaae15d159ed510017c3df40739a204c615
MD5 ddf900edde00d9347f30a5ada8e1efd9
BLAKE2b-256 c27c091426d7fe2566a823808eb4e1f2fdc20a43349014db8223f8912fd80b47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page