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 app.py
Running Options
- Default stdio mode:
python app.py - SSE mode (port 8000):
python app.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
Metadata
Release files for hkopenai.hk-environment-mcp-server 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hkopenai_hk_environment_mcp_server-0.1.8.tar.gz | 6.1 kB | Without provenance | Details for hkopenai_hk_environment_mcp_server-0.1.8.tar.gz |
Release files / hkopenai_hk_environment_mcp_server-0.1.8.tar.gz
| Download URL | hkopenai_hk_environment_mcp_server-0.1.8.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abab295e5547fb42bf52d15640518afe477c8ebeca52e082818108d5039b73b4
|
|
BLAKE2b-256 checksum How to use checksums |
7bb1f11758f0ce5e33520f5e739b33ac7bc6b1a7ec4e21fad21d5caf54ad0f2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for hkopenai.hk-environment-mcp-server 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.