Hong Kong transportation MCP Server providing transportation data tools
Project description
Hong Kong transportation Data MCP Server
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
- Clone this repository
- Install Python dependencies:
pip install -r requirements.txt
- 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:
- 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_hk_transportation_mcp_server-0.3.0.tar.gz.
File metadata
- Download URL: iflow_mcp_hk_transportation_mcp_server-0.3.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c123aad3f9ee3be67c10a0ec6f7887531e3e88b0e383c92ad853bc8a8833bf28
|
|
| MD5 |
f71c9b8a21f0740c2a0894611578433a
|
|
| BLAKE2b-256 |
99d80763840f25c922fba655fab6c4b00997eea2a311761e5816c265a268db9c
|
File details
Details for the file iflow_mcp_hk_transportation_mcp_server-0.3.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_hk_transportation_mcp_server-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35845c4a4911c38546e2816893f400aa96bbc8d5eabed922b9aca131c36073a1
|
|
| MD5 |
1dfbb6c785bb8be01e65a96e34c6e187
|
|
| BLAKE2b-256 |
7f8df432510b29b0a07e20c306683debb539a20748b254ee2ce49ac65b47231b
|