hkopenai/hk-environment-mcp-server
If you are the rightful owner of hk-environment-mcp-server 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 Hong Kong Government Environment MCP Server provides access to environmental data, specifically focusing on the Air Quality Health Index (AQHI) in Hong Kong, through a FastMCP interface.
Hong Kong Government Environment MCP Server
This is an MCP server that provides access to Hong Kong government environment data through a FastMCP interface.
Features
- Air Quality Health Index (AQHI): Retrieve current AQHI data from general and roadside air quality monitoring stations across Hong Kong. The AQHI is reported on a scale of 1 to 10 and 10+, grouped into five health risk categories with corresponding health advice.
Data Source
- Hong Kong Environmental Protection Department (EPD): For AQHI and other environmental data.
Prompt Examples
Here are some example prompts you can use to interact with this MCP server through Cline or other compatible interfaces:
- AQHI Data: "What is the current Air Quality Health Index in Hong Kong?"
Setup
- Clone this repository to your local machine.
- 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-environment": {
"disabled": false,
"timeout": 3,
"type": "stdio",
"command": "uvx",
"args": [
"hkopenai.hk-environment-mcp-server"
]
}
}
This configuration allows Cline to communicate with the server and utilize its tools for data retrieval.
Testing
Tests are available in the tests/
directory. Run with:
pytest