mcp-hko
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-hkowhat's the current weather in Hong Kong?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-hko (Hong Kong Observatory MCP Server)
This MCP server provides access to Hong Kong Observatory weather data APIs. It implements various tools that allow clients to retrieve weather forecasts, earthquake information, tide data, and other meteorological information through the Model Context Protocol.
Available Weather Data Tools
9-day Weather Forecast (fnd)
Current Weather Report (rhrread)
Local Weather Forecast (flw)
Weather Warning Information (warningInfo)
Weather Warning Summary (warnsum)
Special Weather Tips (swt)
Quick Earthquake Messages (qem)
Locally Felt Earth Tremor Report (feltearthquake)
Tide Information (HHOT, HLT)
Astronomical Data (SRS, lunardate)
Lightning and Visibility Data (LHL, LTMV)
Temperature Records (CLMTEMP, CLMMAXT, CLMMINT)
Radiation Level Reports (RYES)
Rainfall Data (hourlyrainfall)
Related MCP server: China Weather MCP Server
Usage Examples
Get 9-day weather forecast
prompt:
what is the weather in next Wed ?
Get current weather report
prompt:
what is the weather now ?
Development Setup
Install dependencies:
npm installStart the MCP development server:
npm run inspectBuild the MCP server:
npm run buildRun tests:
npm testRun tests in watch mode:
npm run test:watchComprehensive tests have been created for all API functions. See docs/TESTING.md for details.
Configuration (Claude Desktop)
{
"mcpServers": {
"mcp-hko": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"github:louiscklaw/mcp-hko"
]
}
}
}Configuration (docker)
{
"mcpServers": {
"mcp-hko-docker": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp-hko:latest"],
"name": "mcp-hko (Docker)",
}
}
}Project Structure
src/- Server source codesrc/lib/- API implementation modulesdocumentation/- API documentation and test casesscripts/- Development utilitiessrc/tests/- Test files
Server Architecture
The MCP server is built on the FastMCP framework and implements various tools that correspond to Hong Kong Observatory APIs. The architecture is shown in two diagrams for better readability:
Server Overview
Detailed Tool Structure
REQ01xx: Weather Forecasts & Warnings
flowchart TD
subgraph REQ01xx[Weather Forecasts & Warnings]
direction BT
B1[9-day Forecast]
B2[Current Weather]
B3[Local Forecast]
B4[Warning Info]
B5[Warning Summary]
B6[Special Weather Tips]
endREQ02xx: Earthquake Information
flowchart TD
subgraph REQ02xx[Earthquake Information]
C1[Quick Earthquake]
C2[Felt Earthquake]
endREQ03xx: Tides, Astronomy & Climate
flowchart TD
subgraph REQ03xx[Tides, Astronomy & Climate]
D1[Tide: HHOT]
D2[Tide: HLT]
D3[Sunrise/Sunset: SRS]
D4[Lightning: LHL]
D5[Visibility: LTMV]
D6[Temperature: CLMTEMP]
D7[Max Temperature: CLMMAXT]
D8[Min Temperature: CLMMINT]
D9[Radiation: RYES]
endREQ04xx: Lunar Calendar
flowchart TD
subgraph REQ04xx[Lunar Calendar]
E1[Lunar Date]
endREQ05xx: Rainfall
flowchart TD
subgraph REQ05xx[Rainfall]
F1[Hourly Rainfall]
endCredits:
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables 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.Last updated85MIT
- Flicense-qualityDmaintenanceEnables querying weather forecasts (1-7 days) and meteorological warnings for Chinese cities using the QWeather API. Supports detailed weather data including temperature, humidity, wind, precipitation, UV index, and real-time weather alerts.Last updated1
- Alicense-qualityDmaintenanceProvides read-only access to Taiwan's Central Weather Administration (CWA) Open Data API, offering 36 tools across 7 categories including weather forecasts, observations, earthquakes, and astronomy.Last updatedMIT
- Alicense-qualityDmaintenanceProvides access to Hong Kong climate and weather data from the Hong Kong Observatory, including current conditions, forecasts, warnings, tides, and more.Last updated6MIT
Related MCP Connectors
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/louiscklaw/mcp-hko'
If you have feedback or need assistance with the MCP directory API, please join our Discord server