Skip to main content
Glama

hko-mcp

A Streamable HTTP MCP server for Hong Kong Observatory open data, built with Bun.

Run

bun install
bun run start

The MCP endpoint is:

http://localhost:3000/mcp

Set a custom port with:

PORT=8787 bun run start

Related MCP server: Hefeng QWeather MCP Server

Tools

  • get_weather_information: HKO weather forecast, current report, warnings, warning details, and special weather tips.

  • get_earthquake_information: quick earthquake messages and locally felt earth tremor reports.

  • get_open_data: climate and weather open-data datasets such as tides, sun/moon events, lightning counts, visibility, daily temperatures, and weather/radiation reports.

  • get_lunar_date: Gregorian to lunar date conversion.

  • get_hourly_rainfall: past-hour rainfall from automatic weather stations.

  • list_supported_datasets: dataset codes, languages, and station groups.

Example Requests

{
  "dataType": "rhrread",
  "lang": "en"
}
{
  "dataType": "LTMV",
  "rformat": "json",
  "lang": "en"
}
{
  "date": "2026-06-20"
}

The implementation follows HKO Open Data API documentation version 1.12, dated November 2024.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Enables access to Hong Kong government's official open data portal (DATA.GOV.HK) through natural language queries. Supports searching datasets, browsing categories, and retrieving detailed information about Hong Kong's public data resources.
    8
    8
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides comprehensive weather data including forecasts, air quality, weather alerts, historical data, and astronomical information through the Hefeng Weather API. Supports real-time weather, multi-day forecasts, hourly predictions, and specialized data like sunrise/sunset times and precipitation forecasts.
    4
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Provides access to Hong Kong Observatory weather data APIs, enabling retrieval of forecasts, earthquake info, tide data, and more via natural language.
    20
    2
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Provides access to Hong Kong government environment data, including the current Air Quality Health Index (AQHI) from monitoring stations across Hong Kong.
    1
    1
    MIT