Serveur MCP

HK Transit Cost — MTR fares and the government fare subsidy

app.rowb.hk-transit/fares
Voyage et hôtellerie Public et accessible MCP 2026-07-28

Ce que fait ce MCP

Looks up Hong Kong MTR fares, records public transport trips, and calculates monthly fare subsidy estimates.

log_trip
Record one public transport trip (date, from, to, fare, mode, which account paid) so it counts towards a monthly total and the subsidy estimate. Writes to your own ledger; a bearer API key is required and the call counts against the same monthly allowance as the REST endpoint.
Schéma d’entrée
{'type': 'object', 'required': ['date', 'from', 'to', 'fare', 'mode', 'paid_with'], 'properties': {'to': {'type': 'string', 'description': 'Destination, e.g. "Tsim Sha Tsui".'}, 'date': {'type': 'string', 'description': 'Travel date, YYYY-MM-DD.'}, 'fare': {'type': 'number', 'description': 'Fare paid in HKD, e.g. 10.6'}, 'from': {'type': 'string', 'description': 'Origin, e.g. "Central".'}, 'mode': {'enum': ['mtr', 'bus', 'ferry', 'minibus', 'tram'], 'type': 'string', 'description': 'Transport mode.'}, 'paid_with': {'enum': ['octopus', 'alipayhk'], 'type': 'string', 'description': 'Which account paid the fare.'}}, 'additionalProperties': False}
monthly_summary
Totals for one month from the trips you recorded: trip count, total fare, breakdown by mode and by payment account, and the subsidy estimate computed separately for the Octopus and AlipayHK accounts. Requires a bearer API key.
Schéma d’entrée
{'type': 'object', 'required': [], 'properties': {'month': {'type': 'string', 'description': 'Month as YYYY-MM. Defaults to the current month.'}}, 'additionalProperties': False}
mtr_fare
Look up the published MTR fare between two stations in Hong Kong, by station name or MTR station id. Returns the Octopus adult/student/JoyYou-sixty/child/elderly/PWD fares and the single-journey adult fare in HKD, with the open-data source URL. Deterministic: same input, same answer. Read-only. No key required.
Schéma d’entrée
{'type': 'object', 'required': ['from', 'to'], 'properties': {'to': {'type': 'string', 'description': 'Destination station name (e.g. "Tsim Sha Tsui") or MTR station id (e.g. "3").'}, 'from': {'type': 'string', 'description': 'Origin station name (e.g. "Central") or MTR station id (e.g. "1").'}}, 'additionalProperties': False}
subsidy_amount
Compute the Hong Kong Public Transport Fare Subsidy Scheme amount for one month, from the expenses recorded under an Octopus account and an AlipayHK account. Rule taken verbatim from the Government page: one-third of the monthly public transport expenses in excess of a $500 threshold, capped at $400 per month per account; the two accounts are never combined. Returns both the truncated whole-dollar figure and the exact one-third figure. Deterministic arithmetic only. Read-only. No key required.
Schéma d’entrée
{'type': 'object', 'required': [], 'properties': {'alipay': {'type': 'number', 'description': 'Public transport expenses in HKD recorded under the AlipayHK account this month (0 if none).'}, 'octopus': {'type': 'number', 'description': 'Public transport expenses in HKD recorded under the Octopus account this month (0 if none).'}}, 'additionalProperties': False}
Ajouté
monthly_summary
4 October 2026 02:40
Ajouté
log_trip
4 October 2026 02:40
Ajouté
subsidy_amount
4 October 2026 02:40
Ajouté
mtr_fare
4 October 2026 02:40