hko-weather-mcp-server-ts

tedckh/hko-weather-mcp-server-ts

3.2

If you are the rightful owner of hko-weather-mcp-server-ts and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The HKO Weather MCP Server provides weather information from the Hong Kong Observatory using the Model Context Protocol.

Tools
1
Resources
0
Prompts
0

HKO Weather MCP Server

This project is a Model Context Protocol (MCP) server that provides weather information from the Hong Kong Observatory (HKO).

Getting Started

Prerequisites

  • Node.js
  • npm
  • Docker (optional)

Installation

  1. Clone the repository:
    git clone https://github.com/tedckh/hko-weather-mcp-server-ts.git
    
  2. Install the dependencies:
    cd hko-weather-mcp-server-ts
    npm install
    

Running the server

You can run the server in two ways:

1. Using npm:

npm run dev

This will start the server in development mode using ts-node. The server will be available at http://localhost:3036/hko-weather-mcp.

2. Using Docker:

docker-compose up

This will build the Docker image and run the server in a container. The server will be available at http://localhost:3036/hko-weather-mcp.

Available Tools

get_current_weather

This tool retrieves the current weather report from the Hong Kong Observatory.

Input:

  • lang (optional): The language for the weather report. Can be en (English), tc (Traditional Chinese), or sc (Simplified Chinese). Defaults to en.

Output:

A summary of the current weather conditions, including temperature, humidity, and UV index.